[opencog-dev] Anyone has experience to set up Eclipse for Scheme?

2018-02-27 Thread Shujing Ke
Hi, Anyone use Eclipse for Scheme? I installed the Scheme plug-in for Eclipse from http://s48.org/sdt/ . And set the interpreter as 'guile'. Guile is able to launch in Eclipse. But it doesn't really preload the .guile so that it doesn't recognize any Atomese syntax. It recognize standard Scheme sy

Re: [opencog-dev] Anyone has experience to set up Eclipse for Scheme?

2018-02-27 Thread Linas Vepstas
scheme48 is not the same as guile. Both are schemes, but are different implementations. Scheme has more than 50 "popular" implementations, and even more obscure ones. As a language, it is so simple and basic, that a typical homework assignment for college CS students is "write a compiler/interpret

Re: [opencog-dev] Anyone has experience to set up Eclipse for Scheme?

2018-02-28 Thread Shujing Ke
Thanks Linas, I tried Racket as well but couldn't get it to work with Atomese. Guess it is the same problem as you explained. Is there anything you know that works with guile and has an convenient debugger? Shujing On Tue, Feb 27, 2018 at 11:44 PM, Linas Vepstas wrote: > scheme48 is not the sa

Re: [opencog-dev] Anyone has experience to set up Eclipse for Scheme?

2018-02-28 Thread Cassio Pennachin
Emacs with Geiser? On Wed, Feb 28, 2018 at 12:54 PM, Shujing Ke wrote: > Thanks Linas, > > I tried Racket as well but couldn't get it to work with Atomese. Guess it > is the same problem as you explained. > Is there anything you know that works with guile and has an convenient > debugger? > > Sh

Re: [opencog-dev] Anyone has experience to set up Eclipse for Scheme?

2018-02-28 Thread Amirouche Boubekki
On Wednesday, February 28, 2018 at 4:54:57 PM UTC+1, shujingke wrote: > > > Is there anything you know that works with guile and has an convenient > debugger? > FWIW, I use pk aka. peek stuff to debug, it takes a variable list of argument and return the last. For instance: (define my-variabl

Re: [opencog-dev] Anyone has experience to set up Eclipse for Scheme?

2018-02-28 Thread Linas Vepstas
On Wed, Feb 28, 2018 at 1:39 PM, Amirouche Boubekki < amirouche.boube...@gmail.com> wrote: > AFAIK, there is not step debugger in Guile like gdb where you can inspect > values at runtime etc... > except if you do live coding and embed an REPL in you app, but I am not sure > this is supported by op

Re: [opencog-dev] Anyone has experience to set up Eclipse for Scheme?

2018-02-28 Thread Shujing Ke
Thanks. If there is no any real time debugger for scheme with inspector, then I would just try to use spacemacs as Nil recommended. I debug c++ code with qt creator by attaching to debugger to process. Shujing On Wed, Feb 28, 2018 at 9:01 PM, Linas Vepstas wrote: > > > On Wed, Feb 28, 2018 at

Re: [opencog-dev] Anyone has experience to set up Eclipse for Scheme?

2018-02-28 Thread 'Nil Geisweiller' via opencog
I've just realized an open source branch of Visual Studio exists, VSCode. I've tried it, it's surprisingly good, it's lean, not tones of junk getting in your way (unlike the old versions of VS I remember). I was able to install some scheme extension and it got my scheme files highlighted. I don

Re: [opencog-dev] Anyone has experience to set up Eclipse for Scheme?

2018-02-28 Thread 'Nil Geisweiller' via opencog
I've just tried Spacemacs, and as awesome as it looks it's still hard to approach, I can see that if I were not familiar with Emacs I would be utterly lost. The online help is pretty good though, but it does require to take the time to go through it, while VSCode is intuitive at first use. I s

Re: [opencog-dev] Anyone has experience to set up Eclipse for Scheme?

2018-03-02 Thread Shujing Ke
Awesome! I installed VSCode and immediately like it! Which Scheme extension did you install? Is it this one: https://marketplace.visualstudio.com/items?itemName=sjhuangx.vscode-scheme Thanks, Shujing On Thu, Mar 1, 2018 at 8:47 AM, Nil Geisweiller wrote: > I've just tried Spacemacs, and as aw

Re: [opencog-dev] Anyone has experience to set up Eclipse for Scheme?

2018-03-02 Thread 'Nil Geisweiller' via opencog
On 03/02/2018 01:42 PM, Shujing Ke wrote: Awesome! I installed VSCode and immediately like it! Which Scheme extension did you install? Is it this one: https://marketplace.visualstudio.com/items?itemName=sjhuangx.vscode-scheme Yes, that's the one I tried. It doesn't seem to provide much more tha

Re: [opencog-dev] Anyone has experience to set up Eclipse for Scheme?

2018-03-03 Thread Shujing Ke
Hi Nil, Have you got the debugger work in VScode? I tried to debug URE C++ code with it but it doesn't work for me yet. The same way works in QT creator that when I launch guile in command line then I can attach the guile process to Qt debugger and the break points I places inside URE code are abl

Re: [opencog-dev] Anyone has experience to set up Eclipse for Scheme?

2018-03-05 Thread 'Nil Geisweiller' via opencog
Hi Shujing, On 03/03/2018 07:14 PM, Shujing Ke wrote: or bc from command line. But when I tried to do the same thing in VSCode, it always couldn't attach to the process and complains that "attach: program path 'enter program name, for example /home/rainkekeke/atomspace/a.out' does not exist".