• Industries
  • Products
  • Buy
  • Services & Support
  • Communities
  • Visual LISP, AutoLISP and General Customization

    Reply
    Contributor
    m.pepin
    Posts: 16
    Registered: ‎07-09-2010

    Loading a lisp file in vlisp editor

    141 Views, 3 Replies
    09-04-2012 11:32 AM

    Does someone has a clue, when I load a file in the vlisp editor this is what I get in the console window:

    _$
    ; error: bad argument type: numberp: nil

    Please help

     

    Please use plain text.
    *Expert Elite*
    Posts: 1,220
    Registered: ‎12-17-2004

    Re: Loading a lisp file in vlisp editor

    09-04-2012 01:19 PM in reply to: m.pepin

    Try this:

    in vlisp editor, menu debug and break on error,

    then load your code,

    go to menu debug and last break source, to see what is causing the error.

     

    Henrique

    Please use plain text.
    *Expert Elite*
    dgorsman
    Posts: 3,295
    Registered: ‎10-12-2006

    Re: Loading a lisp file in vlisp editor

    09-04-2012 04:11 PM in reply to: m.pepin

    Incidental to the problem, this means something is executing by loading the file.  If this is not intended behavior, then you likely have mismatched parenthesis in the code.  If it is intended behavior, I recommend you disable the execute-on-load behavior during development - it will make debugging easier.

    ----------------------------------
    If you are going to fly by the seat of your pants, expect friction burns.
    Adopt. Adapt. Overcome. Or be overcome.


    Please use plain text.
    Contributor
    m.pepin
    Posts: 16
    Registered: ‎07-09-2010

    Re: Loading a lisp file in vlisp editor

    09-05-2012 05:14 AM in reply to: m.pepin

    Thank you, indeed it was mismatch parenthesis. I was puzzled because when I mismatch parenthesis I got another error message than numberp nil. thank you again.

    Please use plain text.