newlisp-tk on windows

Machine-specific discussion
Unix, Linux, OS X, OS/2, Windows, ..?
Locked
jsmall
Posts: 26
Joined: Mon Sep 20, 2004 1:44 am

newlisp-tk on windows

Post by jsmall »

I installed the newlisp 8.2 on windows. When I start the IDE
I get this error message which doesn't seem to effective anything
else negatively.

Error sourcing /freewrap/newlisp-tk.tcl: couldn't change
working directory to "c:/newlisp/": no such file or directory

I installed newlisp in a directory different from "c:/newlisp".

Can I safely ignore this error message?

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

Post by Lutz »

Short answer: you can ignore the message.

But here an explanation what it means:

newLISP-tk is trying to goto an initial directory, which will be used when you do a "File/Load" from the main menu, or which would be the current directory for any other operations you do with files. newLISP-tk gets this directory from a specification in 'newlisp-tk.config'. This file is in your intsallation directory and contains the following spec:

set Ide(initialDir) "c:/newlisp/"

You can edit this with notepad.exe or any other plain text editor to a directory of your liking, i.e. the installation directory, because that is also the place where all the demo programs are.

Lutz

ptdecker
Posts: 4
Joined: Fri Apr 29, 2005 8:26 pm
Contact:

Post by ptdecker »

I was able to correct this problem by editting the newlisp-tk.config file and replacing the incorrect for Windows "/" directory delimiters with "\"; however, newLisp seems to interprute "\" as an escape code as in C, so I actually had to use "\\", e.g. "C:\\Program Files\\newlisp". This works like a charm. Seems the "Save Settings" option within tk doesn't handle the path delimiter properly for Windows.

P. Todd

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

Post by Lutz »

Actually forward slashes on Windows are allowed as long as they don't come after a drive letter. The newlisp-tk.conf file is Tcl and is sourced by newlisp-tk.tcl on startup.

In the current development release 8.5.5 when doing Options/Save-settings specs are written put with {,} braces and backslashes will appear single. I have been fighting with that stuff, to get it right on all platforms Linux/Win32/MacOSX, for some time/versions now. I hope that in the lates development release it is fine on all of them. Please let me know if there is anything left to do.

Lutz

ptdecker
Posts: 4
Joined: Fri Apr 29, 2005 8:26 pm
Contact:

Post by ptdecker »

Thank you, Lutz! Don't we all just love Windows! BTW--Everything works fine as far as I can tell under OS X on my Mac.

Locked