Open stayprivates opened 6 years ago
Thanks for the report. Do you have an example for which code this happens? There is probably already a marker present (green circle with a star) at the location causing the issue.
The code base contains lots of files. I will attempt to narrow it down.
Here is simplify version of the project. It basically only consists of code from the jpeg lib. Hopefull I've been successfull in removing all external dependencies. I don't beleive you will be able to compile it and you might have to add you compiler's include path to keep the indexer happy.
I'v also note that if the Elevate Project option is selected without having any file open. An exception is generated. The IDE itself is silent.
java.lang.NullPointerException
at com.cevelop.elevator.refactoring.ElevateProjectAction.run(ElevateProjectAction.java:16)
at org.eclipse.ui.internal.PluginAction.runWithEvent(PluginAction.java:247)
at org.eclipse.ui.internal.WWinPluginAction.runWithEvent(WWinPluginAction.java:219)
at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:565)
at org.eclipse.jface.action.ActionContributionItem.lambda$4(ActionContributionItem.java:397)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:86)
at org.eclipse.swt.widgets.Display.sendEvent(Display.java:5348)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1348)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4602)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:4183)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$5.run(PartRenderingEngine.java:1150)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:336)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:1039)
at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:153)
at org.eclipse.ui.internal.Workbench.lambda$3(Workbench.java:680)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:336)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:594)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:148)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:151)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:134)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:104)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:388)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:243)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:653)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:590)
at org.eclipse.equinox.launcher.Main.run(Main.java:1499)
at org.eclipse.equinox.launcher.Main.main(Main.java:1472)
Thanks for the supplied files. I'm still trying to reproduce the exact same issue. I cannot provoke the IllegalArgumentException yet. I get overlapping text edits though. And a ton of formatter issues from CDT. I'll further check for the project configuration. Maybe I missed a required symbol.
I could resolve the second issue, when no project is selected. We should disable the action in such a case, in order to prevent the invocation at all. This should reduce confusion.
Side-note: Elevator is not tailored for C elevation as far as I know. We should check and update compatibility for this plug-in.
Thanks. Could be because it's missing some header files that are outside the project although I tried to make sure it did not. Or because the C/C++ header file are from the QNX operating system and they contain something specific that trigger the issue.
Expected Behavior
Elevation ;-)
Actual Behavior
An exception after launching "Elevator"
Cevelop Version, Operating System and Compiler
1.9.1 on Ubuntu 17, Compiler is a gcc4.8.3 for cross compilation for QNX exectuables.
Eclipse Pluging :