Bug - works only in default dir

Machine-specific discussion
Unix, Linux, OS X, OS/2, Windows, ..?
Locked
Kazimir Majorinc
Posts: 388
Joined: Thu May 08, 2008 1:24 am
Location: Croatia
Contact:

Bug - works only in default dir

Post by Kazimir Majorinc »

I tried to instal Newlisp in

C:\Newlisp

but editor doesn't work although Newlisp itself works. It works well if installed in default directories. It is minor bug, however, maybe it is worth reporting. It happens on XP 32 bit and Vista 64 bit.

Lutz
Posts: 5289
Joined: Thu Sep 26, 2002 4:45 pm
Location: Pasadena, California
Contact:

Post by Lutz »

Yes, this is a know problem and not trivial to fix :(. In your case, after installing in c:\newlisp directory, before running newLISP, set the environment variable NEWLISPDIR to c:\newlisp:

Code: Select all

c:\> set NEWLISPDIR=c:\newlisp
Now you can do:

Code: Select all

c:\> newlisp newlisp-edit.lsp
or run any other newLISP-GS program.

There will still be a problem running the installed demo programs out of the editor, because Windows and Java do not pass on the changed NEWLISPDIR environment variable setting to the newLISP process running in the monitor window.

But if you change the load line for guiserver.lsp at the beginning of each installed program to an explicit coded path for guiserver.lsp, it will work. The same with your own newLISP-GS programs, if you want to run them from the newLISP-GS editor you have to hard code the path to loading guiserver.lsp to the changed c:\newlisp\guiserver.lsp. Or you set the environment variable and run them from the command line.

Lutz
Posts: 5289
Joined: Thu Sep 26, 2002 4:45 pm
Location: Pasadena, California
Contact:

Post by Lutz »

This is fixed for 9.3.15, which will allow non-default install directories (will require rebooting, only tested on XP).

Locked