-
-
Notifications
You must be signed in to change notification settings - Fork 297
PDEX error #132
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
It's probably that android.jar needs to be added to the list of library JARs so that the error checker service is aware of it. Check out the recent change I made to the main PDE so the result of |
I'm not getting it. |
Were you able to find out why the classPath object is not getting
|
@omerjerk @Manindra29 I still get "Cannot find "android.view" library. Line 1 in tab sketch_150817b", but not NPE after merging PR #134 |
I'm also getting this. |
see my last comment in #134 |
I found the cause of the NPE bug. It's because of a race condition. The classPath variable (which was null here) is initialised in ASTGenerator.loadJars(), which is called from ErrorCheckerService.prepareCompilerClasspath() in a separate thread. Due to a race condition, when a sketch is just being loaded, classPath is sometimes accessed before it has even been initialised and thus the NPE is thrown. |
I can add a null check as a stopgap fix, but this probably needs a second look. Added fix in processing/processing@cfe5187 |
Whenever I open the above sketch, I get the following error :
Any idea what does it mean ?
Is there a problem with Android mode ?
The text was updated successfully, but these errors were encountered: