Workaround for failed error location in multiple tabs

edited January 2018 in Using Processing

I'm getting an error "java.lang.ArrayIndexOutOfBoundsException: -1" citing a line number that does not exist in any of the tabs.

I'm guessing this line number refers to a concatenation of the tab files made by Processing for java.

Some such errors correctly locate in source, but some don't.

Any workaround?

Comments

  • edited January 2018

    look in the temp files for the pre-processed file.

    (on my linux box

    ls -ltr /tmp
    
    (long list of directories, most recent at the bottom, 
    you probably want the last but one 
    (the last one is full of class files))
    
    nl /tmp/sketch_yymmddxxxxxxxxxtmp/sketch_name.java
    

    where yymmdd is the date, xxxxxx is random and sketch_name is the name of the sketch)

    alternatively, export the project and look in the created files, there will be a java one in there.

Sign In or Register to comment.