-
Notifications
You must be signed in to change notification settings - Fork 194
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
NullPointerException on RemoteProject #1283
Comments
Thanks for submitting this issue. Is there a simple way that I could test this out? I do not have a remote system to connect to. Can you provide a sample or is this something that I can recreate through the Local Files section of Remote Systems? |
Yes, Please extract attached project anywhere on local file system, than find this project in Local Files View and than right-click on directory and choose Create Remote Project on localRemoteNPEProject Directory. Restart Eclipse and try Open project and open Test.groovy file and try open Groovy compiler preference page of project. Attachment contains one of possibile sample solution to this problem - this solution creates temporary files on local bundle metadata directory and return local file URL as result of files scanning. Maybe this helps you to solve this problem ;) |
Thanks for the details and the patch. I managed to get some of this going yesterday. I think there is a means through I'm not sure what your overall goal is here. The NPEs definitely get in the way of just viewing files and the prefs page. But in terms of building a project that is hosted remotely, I don't think JDT is quite capable of that. I tried with a very basic project and it couldn't even delete the compiled class files. |
THanks localJavaProject.zip Remote Groovy project is very usefull in some specific scenarios - groovy scripts hosted remotly on server (DEV or TEST) on file system. Server is continously checking for changes and reload scripts if change is detected (live reload). Very nice and important feature is Custom AST Transformation annotation - we can add features ito system that can be enabled only with one anotation. |
I think we can get to a working editor. I will stop short of a working builder because that will require a lot of effort that is not widely beneficial. |
Proposed solution (working Code Editor and disabled builder for remote project) is absolutely good enough. I'm waiting for release with fix ;) |
ready to test |
It works perfectly ;) Thanks. |
GroovyClassLoader is not bootstraped on Remote Project (created with Remote System Explorer plugin) with included libraries.
When project is opened (or Groovy COmpiler poperty tab is opened) exception is thrown:
Steps to reproduce error:
Eclipse 4.20
Remote System Explorer (latest 3.5.0)
GroovyEclipse (latest 4.2.0.RELEASE)
There are 2 errors:
The text was updated successfully, but these errors were encountered: