SonarLint Plugin Initialisation Error in Eclipse IDE

I have recently installed SonarLint plugin in Eclipse IDE on one of my workstation.

However, while initialising the plugin, I am getting below error.

Illegal character in path at index 16

because of which the plugin is not working as it fails while initialisation only.

I have used SonarLint frequently on other desktops as well, but I have never encountered such issue before.

Note: Username has been intentionally masked in the folder path shown in the screenshot below.

image

Error stack trace:

Unable to load plugin bundleentry://945.fwk697742350/plugins/sonar-html-plugin-3.6.0.3106.jar
java.net.URISyntaxException: Illegal character in path at index 16: file:/C:/Program Files/eclipse/../../Users/ABC/.eclipse/org.eclipse.platform_4.17.0_1709980481_win32_win32_x86_64/plugins/org.sonarlint.eclipse.core_7.2.1.42550/plugins/sonar-html-plugin-3.6.0.3106.jar
at java.base/java.net.URI$Parser.fail(URI.java:2913) at java.base/java.net.URI$Parser.checkChars(URI.java:3084) 
at java.base/java.net.URI$Parser.parseHierarchical(URI.java:3166) 
at java.base/java.net.URI$Parser.parse(URI.java:3114) 
at java.base/java.net.URI.<init>(URI.java:600) 
at java.base/java.net.URL.TOURI(URL.java:1061) 
at org.sonarlint.eclipse.core.internal.engine.StandaloneEngineFacade.topath(StandaloneEngineFacade.java:96) 
at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:195) 
at java.base/java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1655) 
at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:484) 
at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:474)
at java.base/java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:913) 
at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234) 
at java.base/java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:578) 
at org.sonarlint.eclipse.core.internal.engine.StandaloneEngineFacade.getOrCreateEngine(StandaloneEngineFacade.java:64) 
at org.sonarlint.eclipse.core.internal.engine.StandaloneEngineFacadewithEngine(StandaloneEngine Facade.java:104) 
at org.sonarlint.eclipse.core.internal.engine.StandaloneEngineFacade.runAnalysis(StandaloneEngineFacade.java:115) 
at org.sonarlint.eclipse.core.internal.jobs.AnalyzeStandaloneProjectJob.runAnalysis(AnalyzeStandaloneProjectJob.java:62) 
at org.sonarlint.eclipse.core.internal.jobs.AnalyzestandaloneProjectJob.runAnalysis(AnalyzeStandaloneProjectJob.java:1) 
at org.sonarlint.eclipse.core.internal.jobs.AbstractAnalyzeProjectJob.run(AbstractAnalyzeProjectJob.java:393) 
at org.sonarlint.eclipse.core.internal.jobs.AbstractAnalyzeProjectJob.runAnalysisAndUpdateMarkers(AbstractAnalyzeProjectjob.java:201) 
at org.sonarlint.eclipse.core.internal.jobs.AbstractAnalyzeProjectJob.doRun(AbstractAnalyzeProjectjob.java:157) 
at org.sonarlint.eclipse.core.internal.jobs.AbstractsonarProjectJob.run(AbstractSonarProjectJob.java:45) 
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)

Any solution for this issue?

Hi,

This is going to be fixed in the next release, that should come hopefully today.

This is the ticket: [SLE-501] Unable to load analyzers when Eclipse installation dir contain a space - SonarSource

Thanks for the update.

FYI SonarLint for Eclipse 7.3 has been released with a fix for this issue.

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