[Schemeway-user] how to configure Chicken Scheme?
Brought to you by:
schemeway
From: Dominique B. <sch...@sy...> - 2005-12-20 23:35:11
|
Hi Brandon, > I'm trying to get SchemeScript 1.1.4 working with Eclipse 3.1.0 on > Windows 2000 with Chicken Scheme 2.207. First of all, you will have to make sure that you can start Chicken from within SchemeScript. To do that, open the "Scheme/External Interpreter" preference page and set the interpreter command-line to: D:\lang\chicken\mingw\bin\csi.exe -:c The option '-:c' is VERY important on Windows. Otherwise, you won't be able to interact with Chicken. Also, leave the "Error Regexp" empty and put set to "-1" all the "* group"s. Apply your changes, close the preference page, select the "Embedded interpreter" in the Scheme menu, and start the interpreter. Does that work? > I have no idea how I might get this to work. I have read the docs; they > show a picture of cryptic "filename group, line number group, and error > link group" numbers and I haven't the slightest clue what these do. When an error occurs, most interpreters prefix the error message with the filename, the column number where the error occurred, etc. The regexp can be used to detect such lines in the console and convert these error messages to hyperlinks. In regexp parlance, a group is simply a sub-regexp inside a set of matching parentheses. When you match a regexp against a string, the group numbers can be used to retrieve the substring matching the given sub-regexp. Group numbers are determined by counting the number of opening parentheses from the start of the regexp. For example, in the following regexp: (file:)(([a-zA-Z]:)?[^:]*):([0-9]+):([0-9]+): (.*) there are six groups, numbered from 1 to 6: 1 = (file:), 2 = (([a-zA-Z]:)?[^:]*), 3 = ([a-zA-Z]:), 4 = ([0-9]+), 5 = ([0-9]+), 6 = (.*) > I honestly can't understand why anyone would design a UI that way, unless > there's something about Eclipse development in general that's supposed > to make this self-explanatory that I simply don't know. Well, I don't claim to be a good UI designer (in fact, it's rather the contrary... ;-). I'm always open to suggestions/contributions/constructive feedback. > Also I'm a regexp dummy. I tried > (file:)(([a-zA-Z]:)?[^:]*):([0-9]+):([0-9]+): (.*) just based on some > random thing some PLT guy was using, but it didn't magically solve > anything. I was hoping that leaving it blank would be ok for starters, > but since nothing's working, I do have a paranoia about whether a > correct regexp is required. The regexp you will set in the preference page is specific to your Scheme system (in your case, Chicken). Don't use the one for PLT. But, AFAIK, Chicken does not include source information in its error messages. So the regexp is useless. > > Also, when I select "embedded Kawa" for my interpreter and then hit > "Start Interpreter," nothing happens, so I'm wondering if my Eclipse > setup is problematic. Does starting the interpreter open an empty "Console window"? If so, enter an expression in the window and press return. You should now see the prompt and the returned value. It seems that the console window does not detect the initial prompt. I should note that in the release notes. Hope this helps! -- Dominique Boucher The Scheme Way Project http://schemeway.sourceforge.net |