SonarLint - SonarLint Issues Location

Please provide

  • Operating system: Windows10
  • IDE name and flavor/env: IBM IDz 14.2.2
  • SonarLint plugin version: 6.2.0
  • Is connected mode used:
    • Connected to SonarCloud or SonarQube (and which version): SonarQube (8.9.6)

And a thorough description of the problem / question:
I’m using SonarLint to analyze Cobol modules. When i try using the “SonarLint Issues Location” feature, i was getting the error message “Unsupported Node Type”. Below is the message from the error log. Please help.

Problems occurred when invoking code from plug-in: "org.eclipse.jface".
java.lang.IllegalStateException: Unsupported node type
                at org.sonarlint.eclipse.ui.internal.views.locations.IssueLocationsView.onTreeNodeSelected(IssueLocationsView.java:435)
                at org.sonarlint.eclipse.ui.internal.views.locations.IssueLocationsView.lambda$0(IssueLocationsView.java:405)
                at org.sonarlint.eclipse.ui.internal.views.locations.IssueLocationsView$$Lambda$111.00000000100440C0.selectionChanged(Unknown Source)
                at org.eclipse.jface.viewers.StructuredViewer$3.run(StructuredViewer.java:878)
                at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
                at org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:50)
                at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:173)
                at org.eclipse.jface.viewers.StructuredViewer.firePostSelectionChanged(StructuredViewer.java:875)
                at org.eclipse.jface.viewers.StructuredViewer.handlePostSelect(StructuredViewer.java:1244)
                at org.eclipse.jface.viewers.StructuredViewer$5.widgetSelected(StructuredViewer.java:1270)
                at org.eclipse.jface.util.OpenStrategy.firePostSelectionEvent(OpenStrategy.java:265)
                at org.eclipse.jface.util.OpenStrategy.access$5(OpenStrategy.java:259)
                at org.eclipse.jface.util.OpenStrategy$1.lambda$1(OpenStrategy.java:431)
                at org.eclipse.jface.util.OpenStrategy$1$$Lambda$1113.0000000021C514B0.run(Unknown Source)
                at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)
                at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:182)
                at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:4211)
                at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3827)
                at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$4.run(PartRenderingEngine.java:1124)
                at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:336)
                at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:1025)
                at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:150)
                at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:693)
                at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:336)
                at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:610)
                at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:148)
                at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:138)
                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:90)
                at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:55)
                at java.lang.reflect.Method.invoke(Method.java:508)
                at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:673)
                at org.eclipse.equinox.launcher.Main.basicRun(Main.java:610)
                at org.eclipse.equinox.launcher.Main.run(Main.java:1519)
                at org.eclipse.equinox.launcher.Main.main(Main.java:1492)

Hi, Please help me with the above issue in the SonarLint - Issues Location view.

Hi @Ramapriya

Can you update to latest SonarLint version first? This should be version 7.3.1. Let me know if you still have the problem.

If you still have it, can you please let us know what is the version of the Eclipse platform IDz 14.2.2 is based on? I guess the info should be available in the “Help → About → Installation Details” dialog.

@Julien_HENRY ,

SonarLint version 6.2.0 is the highest version that is compatible with the IDE (IBM IDz - 14.2.2). The version of the Eclipse Platform is 4.6.3.v20170301-0400

Eclipse 4.6 (Neon) was released in 2016, so this is difficult for us to provide support for such an old version.

In fact this issue has already been fixed in SonarLint 7.1: [SLE-479] "Unsupported node type" error on "empty" issues location view - SonarSource

Can’t you get an updated version of IDz based on a more recent version of Eclipse?

@Julien_HENRY Thanks a lot Julien for checking on the issue. The next version of IDz is based on Eclipse version 4.8.0. Will check for the possibilities from my end. Thanks again

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.