newLISP-GS IDE has 'ERR: no working directory found' (VISTA)

Machine-specific discussion
Unix, Linux, OS X, OS/2, Windows, ..?
Locked
biffsnot
Posts: 3
Joined: Sat Dec 12, 2009 5:39 am

newLISP-GS IDE has 'ERR: no working directory found' (VISTA)

Post by biffsnot »

Hello all.

This may be something stupid - who knows. When I open newLISP IDE I see 'ERR: no working directory found' at the bottom, and no program will show any output - though I do believe they run. I know you pass the working directory to newLISP itself - but I cant seem to figure this IDE thing out.

EDIT: Programs WILL run through the command line with no issue - only the IDE itself seems problematic.

Thanks in advance.

Vista 64bit with recently updated Java.

biffsnot
Posts: 3
Joined: Sat Dec 12, 2009 5:39 am

Small error found in newlisp-edit.lsp affects windows users

Post by biffsnot »

I am new to LISP in general, but I think I found a very simple thing that was botching IDE up, not running newlisp at the bottom of the window like it should. Kept telling me no working directory found. So I tried installing it on my iMac - and it worked without a hitch. So I opened newlisp-edit.lsp and saw:

Code: Select all

(define (start-newlisp-shell)
	(if (= ostype "Win32")
		(gs:run-shell 'OutputArea 
			(string newlispDir "/newlisp.exe " currentExtension " -C -w \"" $HOME "\""))
		(gs:run-shell 'OutputArea 
			(string "/usr/bin/newlisp " currentExtension " -C -w " $HOME))
	)
)
When I changed the outputarea slashes by $HOME to

Code: Select all

(string newlispDir "/newlisp.exe " currentExtension " -C -w /"" $HOME "/""))
the problem went away. I can now run programs in the IDE and the working directory stuff went away.

I am not sure if this is a Vista issue, or a windows issue in general, but it may affect others besides me.

Anyway I am looking forward to learning newLISP as it seems the best option for modern application programming (meaning windowing, graphics, and such since most of the free LISP compilers out there really do console only apps) with a LISP dialect under the thousand dollar range :)

Thanks.

m35
Posts: 171
Joined: Wed Feb 14, 2007 12:54 pm
Location: Carifornia

Re: Small error found in newlisp-edit.lsp affects windows users

Post by m35 »

biffsnot wrote:

Code: Select all

(string newlispDir "/newlisp.exe " currentExtension " -C -w /"" $HOME "/""))
That is very odd. The characters in red are the strings:
(string newlispDir "/newlisp.exe " currentExtension " -C -w /"" $HOME "/"")

So $HOME is not being evaluated, but that '/' is, producing a string such as this:

newlispDir/newlisp.exe currentExtension -C -W / $HOME / <40E1C7>
biffsnot wrote:Anyway I am looking forward to learning newLISP as it seems the best option for modern application programming (meaning windowing, graphics, and such since most of the free LISP compilers out there really do console only apps) with a LISP dialect under the thousand dollar range :)
Welcome to the party!

biffsnot
Posts: 3
Joined: Sat Dec 12, 2009 5:39 am

Re: Small error found in newlisp-edit.lsp affects windows users

Post by biffsnot »

m35 wrote:
biffsnot wrote:

Code: Select all

(string newlispDir "/newlisp.exe " currentExtension " -C -w /"" $HOME "/""))
That is very odd. The characters in red are the strings:
(string newlispDir "/newlisp.exe " currentExtension " -C -w /"" $HOME "/"")

So $HOME is not being evaluated, but that '/' is, producing a string such as this:

newlispDir/newlisp.exe currentExtension -C -W / $HOME / <40E1C7>
Yeah thats what I sort of figured. LISP syntax is still a bit foreign to me but I had noticed the quotes positions as I do have experience with other languages. The only change I made was those slashes and it works like a charm though so until I dig a bit deeper into the language I guess I will just be happy it works and runs like a champ lol :)
biffsnot wrote:Anyway I am looking forward to learning newLISP as it seems the best option for modern application programming (meaning windowing, graphics, and such since most of the free LISP compilers out there really do console only apps) with a LISP dialect under the thousand dollar range :)
Welcome to the party!
Thank you - I really seem to feel the depth and power looking at some of this demo code. I checked out a quick Brainf**k (an esoteric language) interpreter someone whipped up and tons of conditionals and case-style statements were just streamlined into so damn few actual statements. It was a bit amazing. Nice to see a powerful older language being presented in a way that would bring people to it for use in modern applications.

Fritz
Posts: 66
Joined: Sun Sep 27, 2009 12:08 am
Location: Russia

Re: newLISP-GS IDE has 'ERR: no working directory found' (VISTA)

Post by Fritz »

Thank you very much! I just realized, that I can open newlisp-edit.lsp and add there regexp search, parameters save, higher search fields and other functions I miss so!

Locked