Page 1 of 1

Problems installing on Vista

Posted: Sun Dec 05, 2010 11:24 pm
by electrifiedspam
I have installed newlisp on other vista computers without problems.

How ever it does not seem to like installing on this one.

I am running Vista.
I download the installer and run it.
I open the link on my desktop and the IDE starts.

But I get ERR: No working directory found.
Newlisp will not run in the IDE.

New lisp runs on my machine and I have been able to work with it through the command line just not through the IDE.

Is there a System variable that I need to set in order to get it to run?

Re: Problems installing on Vista

Posted: Mon Dec 06, 2010 6:53 am
by HPW
You may check if you have a directory c:\Temp
If not create it and try again.
The needed enviroment vars should be created by the installer.

Re: Problems installing on Vista

Posted: Mon Dec 06, 2010 1:08 pm
by Lutz
Like Hans-Peter says, it is probably the missing c:\temp directory. If you don't like to use c:\temp, you can set the environment variable TEMP to the directory, you want to use.

Also, at least one of the following environment variables must be defined: either HOME, USERPROFILE or DOCUMENT_ROOT. The directory specified in there is used as a working directory for the secondary newLISP process and as a place where to store user settings.

Re: Problems installing on Vista

Posted: Tue Dec 07, 2010 3:23 am
by electrifiedspam
Well,
There was a C:\temp

AND I have changed the TEMP system and user variable to C:\temp. So far all to no avail. I will try a reboot but I am doubting that it will bring any changes.

Re: Problems installing on Vista

Posted: Tue Dec 07, 2010 4:19 am
by electrifiedspam
Rebooting didn't help.

Re: Problems installing on Vista

Posted: Tue Dec 07, 2010 4:19 am
by electrifiedspam
Rebooting didn't help.

Re: Problems installing on Vista

Posted: Tue Dec 07, 2010 12:56 pm
by Lutz
Try to start the IDE from the command prompt:

Code: Select all

newlisp "c:\Program Files\newlisp\newlisp-edit.lsp"
or any other demo program:

Code: Select all

newlisp "c:\Program Files\newlisp\guiserver\button-demo.lsp"
Do you have a Java runtime environment (JRE) installed?

Ps: after any failed attempts, make sure using taskmgr, that no javaw.exe or newlisp.exe is still running and blocking ports.

Re: Problems installing on Vista

Posted: Wed Dec 08, 2010 2:53 am
by electrifiedspam
When I run 'newlisp-edit' from the command line I get:

"Cannot find newlisp. Make sure that you typed the name correctly and try again."

Furthermore when I type in 'newlisp' into the terminal I get the standard "Newlisp is not recognized as a batch command...."

Re: Problems installing on Vista

Posted: Wed Dec 08, 2010 2:59 am
by electrifiedspam
What should

(env "NEWLISPDIR") return?

I get

"C:\\Program Files\\newlisp" which is where my directory is installed.

--------------------------------------------------------------------------

(set 'userSettingsDir (string
(or (env "APPDATA") (env "HOME") (env "USERPROFILE") (env "DOCUMENT_ROOT")) "/newLISP"))

I am assuming that these should return 'C:\Program Files\newlisp' I have installed Emacs on this machine and it is utilizing the 'HOME' variable. I guess the 'or' means that as long as one environment variable returns the newlisp directory, then it ignores the others?

Re: Problems installing on Vista

Posted: Wed Dec 08, 2010 4:09 am
by electrifiedspam
OK

I read up on 'or'.

According to what I read, it returns the first thing that is not nil. Emacs was already using the home variable and the others were set to other things left over from projects past...

I edited the newlisp-edit.lsp and had it check the DOCUMENT_ROOT variable first. I set that variable to C:\Program Files\newlisp and it seems to work.

IF there are better fixes, please let me know, but this has me up and running for now.

Thank you!!

PS

I made a math program for my son that tests his multiplication skills for all numbers up to 13. My goal for him was to either learn is multiplication OR reprogram the computer to say that he got it all right.

Either way we both win.

Re: Problems installing on Vista

Posted: Mon Apr 11, 2011 4:09 pm
by Fritz
I got similar problems on Window 7: my settings directory contained russian letters and was therefore unvisible for newlisp-edit. There was an error:

ERR: problem saving in function save: "C:\\Users\\\241\232\233\232\\Appdata\\Roaming/newlisp/newlisp-edit.config"

So I have added these strings into newlisp-edit.lsp to circumvent the problem:

Code: Select all

(set 'userSettingsDir "c:/TEMP")
(set 'userSettingsPath (append userSettingsDir "/newlisp-edit.config"))
(set 'recentFilesPath (append userSettingsDir "/newlisp-edit-recent"))
Now I can enjoy newLISP on my Windows 7.