Thread: [Schemeway-user] how to configure Chicken Scheme?
Brought to you by:
schemeway
From: Brandon J. V. E. <bva...@gm...> - 2005-12-19 21:05:39
|
I'm trying to get SchemeScript 1.1.4 working with Eclipse 3.1.0 on Windows 2000 with Chicken Scheme 2.207. 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. 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. I Googled around all over the place for answers but found nothing. Dominique has even told me how to configure something in the past, but I couldn't find that, and maybe it was Bigloo. I tried "2, 3, 1" for kicks but it didn't work. I decided I could either ask here or directly examine the source code. This seems like less work at the moment, so here it is. 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. 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. Shouldn't this just do something, like bring up an interpreter window? I have several older Schemeway plugins in my Eclipse environment. I thought Eclipse was smart enough to resolve those, but could they be interfering? Here's what does work. I have Chicken Scheme installed in D:\lang\chicken\mingw\bin. I won't quite pronounce it a "known good" build, as we've been developing a new CMake-based build, but it does seem to be working. I have my PATH set properly and I can invoke the interpreter "csi" from any command prompt. I'd be happy for help, and I'd be happy to document what's necessary, in general, for people to get their stuff working. If only someone can point me at the proper source of such information in the first place. Cheers, Brandon Van Every "The pioneer is the one with the arrows in his back." - anonymous entrepreneur |
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 |
From: Brandon V. E. <bva...@gm...> - 2005-12-22 07:19:19
|
On 12/20/05, Dominique Boucher <sch...@sy...> wrote: > > Brandon wrote: > > > > 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. No, nothing happens at all. No window, no prompts, no empty windows, absolutely nothing at all. This is on a completely different machine, usin= g a fresh install of Eclipse 3.1.1 and only SchemeScript 1.1.4 added to this fresh install. So perhaps this is not a Chicken problem after all. Any ideas? Any logfiles I might look at somewhere? Cheers, Brandon Van Every |
From: Brandon J. V. E. <bva...@gm...> - 2006-01-03 20:39:17
|
Dominique Boucher wrote: >Brandon, > > No, nothing happens at all. No window, no prompts, no empty windows, > > absolutely nothing at all. This is on a completely different machine, using > > a fresh install of Eclipse 3.1.1 and only SchemeScript 1.1.4 added to this > > fresh install. So perhaps this is not a Chicken problem after all. Any > > ideas? Any logfiles I might look at somewhere? > >Open the "PDE Runtime/Error log" view. Maybe there is something >there. SchemeScript logs its exceptions there. > > Nothing there. I'm getting no response from SchemeScript at all, anywhere. How can I verify that the plugin is actually talking to Eclipse? I've got SchemeScript menus and configurations available, obviously, but trying to change / start / restart any interpreter does nothing. Cheers, Brandon Van Every "The pioneer is the one with the arrows in his back." - anonymous entrepreneur |