(load "trusted file.lsp") results in nil...

(load "trusted file.lsp") results in nil...

MRummler
Contributor Contributor
323 Views
3 Replies
Message 1 of 4

(load "trusted file.lsp") results in nil...

MRummler
Contributor
Contributor

It lets me load the file from the IDE, but when I try to load it through the load function, it does not work. it is pathed in the same place where I have other files loading just fine.
Does anybody have a solution?

MRummler_0-1663712165735.png

 

0 Likes
Accepted solutions (1)
324 Views
3 Replies
Replies (3)
Message 2 of 4

paullimapa
Mentor
Mentor

nil does not mean the file did not load. you can test by entering lisp functions / commands that are stored in the lined duct.lsp file after loading.


Paul Li
IT Specialist
@The Office
Apps & Publications | Video Demos
0 Likes
Message 3 of 4

MRummler
Contributor
Contributor
Accepted solution

I figured it out... I had an extra file (blank) with the same name (no idea where it came from). I deleted it and now its pulling the right file.
I expected the result of the load function to result in the last defined function in the file, which is why I knew nil wasnt right...

0 Likes
Message 4 of 4

Sea-Haven
Mentor
Mentor

In some of my code I have a (princ "\nTo run type xxxx ") so can see it did load etc. Just add as last line. Or (alert "To run again type BUB") this is inside the defun, but the defun auto runs on load.

 

(Alert "To run again type BUB")
(princ)
) ; end of defun
; run on load
(C:BUB) 

 

0 Likes