Community
Participate
Working Groups
Starting 2020-06 I get a NPE when opening a shell script in Eclipse. It still opens the system editor, but a dialog pops up and the following exception is logged: ~~~ java.lang.NullPointerException at org.eclipse.epp.internal.mpc.ui.discovery.DiscoverFileSupportJob.orderNodesByTagSubExtensionCount(DiscoverFileSupportJob.java:126) at org.eclipse.epp.internal.mpc.ui.discovery.DiscoverFileSupportJob.run(DiscoverFileSupportJob.java:87) at org.eclipse.epp.internal.mpc.ui.discovery.DiscoverFileSupportJob.run(DiscoverFileSupportJob.java:70) at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63) ~~~
Same error when trying o open a .spec file.
Thanks for the report. Does this happen for any file with those extensions? Could you give me a concrete file name? It looks like we get search results from the server that have no tags at all, let alone the ones indicating .sh/.spec editor capabilities. In any case, I can see where the NPE happens and will have a fix in one of the upcoming builds.
As a workaround until a fix is available, you can set an editor association explicitly to suppress the Marketplace lookup for the affected file type: - Right-click on a file with the affected extension in the Project/Package Explorer - Choose "Open with... / Other..." - Select an editor to use - Check the "Use it for all *.ext files" or "Use this editor for all Name.ext files"
*** Bug 565161 has been marked as a duplicate of this bug. ***
FYI: MPC 1.8.4 with the fix has been released. You should be able to get the update via the Marketplace Client UI's update banner.