-
Notifications
You must be signed in to change notification settings - Fork 15
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
NPE with unknown launch types #37
Comments
Could you come up with a small demo of the problem? If I simply put 2 Java launch configs in a project, open one of them and change it to |
I was able to reduce it to a single file only. And you are right, setting arbitrary values does NOT cause the exception. But this file causes the exception:
It is stored as someproject/.externalToolBuilders/org.epic.perleditor.perlbuilder.launch, and I'm not even sure what externalToolBuilders means there. It's not listed in the Builders tab of the project properties, so I'm slightly confused myself. Since this seems to be related to running a Perl builder from the Epic plugin, I can probably also get rid of it completely, as long as there is no fix available. |
Strange - I will paste this here and perform some tests :) |
If I paste this exact launch configuration in my test workspace, the launch immediately appears in the Launch Configurations View. So I assume that it may have something to do with another plugin installed in your IDE... not really sure which one though. Edit: Nevertheless I can still guard against the NPE in this case. The launch configuration will silently not be shown in this case as we cannot determine its parent for some reason.. |
This seems to have been fixed at some point. At least I can see the null check at the same line in the code that lives at eclipse now. |
Have a stored launch config (.launch, not .lc) in your workspace that is unknown to all the plugins in the current IDE. In that case the launch view is completely unusable because of NPE during creation of the tree. The view needs to filter out all launches where the container cannot be calculated.
In our case this happens because we declare own launch config types and have serialized launches for these types in our example and test models. And of course those runtime-only launch types are unknown to the IDE.
The text was updated successfully, but these errors were encountered: