LISP COMPILE ERROR

LISP COMPILE ERROR

dominique.vdwesthuizen
Contributor Contributor
1,422 Views
9 Replies
Message 1 of 10

LISP COMPILE ERROR

dominique.vdwesthuizen
Contributor
Contributor

Hi Guys i have a lisp file and everytime i make changes to it i compile it and share with the rest of my team. The lsip is working perfectly but i am getting an error when i try to compile it. what would cause this error? i have tested the lisp file over and over but it fails when compiling

0 Likes
Accepted solutions (1)
1,423 Views
9 Replies
Replies (9)
Message 2 of 10

komondormrex
Mentor
Mentor

hi,

what kind of error proper?

0 Likes
Message 3 of 10

dominique.vdwesthuizen
Contributor
Contributor

to many arguments......

 

THe lisp file does not have to many arguments. i have tested this... even when trying to add a simple setvar function the compile fails

0 Likes
Message 4 of 10

komondormrex
Mentor
Mentor

if you compile in command line check accuracy of command and its arguments.

0 Likes
Message 5 of 10

dominique.vdwesthuizen
Contributor
Contributor

I AM COMPILING INSIDE VLIDE.

 

I have tested this Several times. i  run it as is and no issues. i run it again with a simple (setvar "cmdecho" 1) and it fails right away. no matter where i put the setvar

0 Likes
Message 6 of 10

My_Civil_3D
Advocate
Advocate
Accepted solution

How long is the Lisp File, You can also have compile errors once the Lisp File Becomes to long

Civil 3D Certified Professional
0 Likes
Message 7 of 10

Moshe-A
Mentor
Mentor

@dominique.vdwesthuizen  hi,

 

this is what we call degugging 😀

if you can share the source we will quickly solve your problem - if not?

i am supprised you say it runs but getting "to many arguments" at complie cause this error means a function is called with extra arguments. 

 

go to command line and manually load the file i am pretty sure you will also see the error there.

start by putting in comment the core\main of the program and leave the code lines above and bellow and try loading it untill you get success, than step by step start releasing more pieces of code untill you reach the error.

 

Moshe

 

 

0 Likes
Message 8 of 10

Sea-Haven
Mentor
Mentor

Use the VLIDE and run the code hopefully the break point will show where the error is.

0 Likes
Message 9 of 10

dominique.vdwesthuizen
Contributor
Contributor

I Can confirm that this is the case, lisp was starting to get to long, removed other functions and put in the code that was giving the error. Sorted now

0 Likes
Message 10 of 10

Moshe-A
Mentor
Mentor

@dominique.vdwesthuizen  hi,

 

long???

 

what do you mean by that?

 

you have 1 lsp file?  you have more lsp files?

 

how many code lines?

 

Moshe

 

0 Likes