I closed all open files and configured it to show IDE-specific traces with unlimited output in the console.
I can post the exact logs here if my summary is insufficient. What I see though is this…the output appears to be the same as above until this line:
Starting local-only issue database from /home/paul/.sonarlint/xodus-local-only-issue-store11148847430082896865
Then there are around 36,000 entries that all look the same:
[DefaultSonarLintProjectAdapter#files] Try get file of resource 'X/PROJECTNAME/PATH' -> 'X/PROJECTNAME/PATH' could not be adapted to 'org.sonarlint.eclipse.core.resource.ISonarLintFile'
where:
- X is either L, F or P. L appears to be used when PATH references a file, F for a directory, and P for a project (PATH is empty)
- PROJECTNAME is the name of one of my projects (the output cycles through all of the open projects)
- PATH is the directory path from the project to either a file or directory
Some of these entries are followed by:
File 'PATH' excluded by 'JavaProjectConfiguratorExtension'
I have file exclusions in place to ignore some types of file, and some files below certain directories, like .git and build.
Immediately after the above, with no intervening output, it says this:
Unexpected error occurred in scheduled task
java.util.concurrent.CompletionException: org.eclipse.lsp4j.jsonrpc.ResponseErrorException: Internal error.
at java.base/java.util.concurrent.CompletableFuture.reportJoin(CompletableFuture.java:413)
at java.base/java.util.concurrent.CompletableFuture.join(CompletableFuture.java:2118)
at org.sonarsource.sonarlint.core.fs.ClientFileSystemService.initializeFileSystem(ClientFileSystemService.java:116)
at org.sonarsource.sonarlint.core.commons.SmartCancelableLoadingCache.lambda$newValueAndScheduleComputation$2(SmartCancelableLoadingCache.java:99)
at org.sonarsource.sonarlint.core.commons.DebounceComputer.lambda$scheduleComputationAsync$0(DebounceComputer.java:83)
at java.base/java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1768)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642)
at java.base/java.lang.Thread.run(Thread.java:1570)
Caused by: org.eclipse.lsp4j.jsonrpc.ResponseErrorException: Internal error.
at org.eclipse.lsp4j.jsonrpc.RemoteEndpoint.handleResponse(RemoteEndpoint.java:220)
at org.eclipse.lsp4j.jsonrpc.RemoteEndpoint.consume(RemoteEndpoint.java:204)
at org.sonarsource.sonarlint.core.rpc.protocol.SingleThreadedMessageConsumer.lambda$new$0(SingleThreadedMessageConsumer.java:51)
at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:572)
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:317)
... 3 common frames omitted
Synchronizing new configuration scopes: [file:/home/paul/workspace/Exprodo-markdown-docs, file:/home/paul/workspace/mobile-calpendo, file:/home/paul/workspace/Bracket_Indenter, file:/home/paul/workspace/messageViewer, file:/home/paul/workspace/ExprodoTestAutomation, file:/home/paul/workspace/Calpendo, file:/home/paul/workspace/bug/MyWebApp, file:/home/paul/workspace/Teleprompter, file:/home/paul/workspace/scoreboard, file:/home/paul/workspace/idserver, file:/home/paul/workspace/gignovarc, file:/home/paul/workspace/billiards, file:/home/paul/workspace/hellofx, file:/home/paul/workspace/ServerBuild, file:/home/paul/workspace/Countdown]
Looking for node in the PATH
Execute command '/usr/bin/which node'...
Command '/usr/bin/which node' exited with 0
stdout: /usr/local/bin/node
Found node at /usr/local/bin/node
Checking node version...
Execute command '/usr/local/bin/node -v'...
Command '/usr/local/bin/node -v' exited with 0
stdout: v20.14.0
Detected node version: 20.14.0
Auto-detected Node.js path set to: /usr/local/bin/node (version 20.14.0)
Loaded 8 plugins
* Python Code Quality and Security 4.19.0.15616 (python)
* Java Code Quality and Security 8.0.1.36337 (java)
* HTML Code Quality and Security 3.16.0.5274 (web)
* XML Code Quality and Security 2.10.0.4108 (xml)
* PHP Code Quality and Security 3.36.0.11813 (php)
* Text Code Quality and Security 2.12.1.2905 (text)
* Java Advanced Code Quality Analyzer 8.0.1.36337 (javasymbolicexecution)
* JavaScript/TypeScript/CSS Code Quality and Security 10.14.0.26080 (javascript)
Creating container for module 'file:/home/paul/workspace/Exprodo-markdown-docs'
Creating container for module 'file:/home/paul/workspace/mobile-calpendo'
Creating container for module 'file:/home/paul/workspace/Bracket_Indenter'
Creating container for module 'file:/home/paul/workspace/messageViewer'
Creating container for module 'file:/home/paul/workspace/ExprodoTestAutomation'
Creating container for module 'file:/home/paul/workspace/Calpendo'
Creating container for module 'file:/home/paul/workspace/bug/MyWebApp'
Creating container for module 'file:/home/paul/workspace/Teleprompter'
Creating container for module 'file:/home/paul/workspace/scoreboard'
Creating container for module 'file:/home/paul/workspace/idserver'
Creating container for module 'file:/home/paul/workspace/gignovarc'
Creating container for module 'file:/home/paul/workspace/billiards'
Creating container for module 'file:/home/paul/workspace/hellofx'
Creating container for module 'file:/home/paul/workspace/ServerBuild'
Creating container for module 'file:/home/paul/workspace/Countdown'
Project at 'Exprodo-markdown-docs' changed ready status for analysis to: true
Project at 'mobile-calpendo' changed ready status for analysis to: true
Project at 'Bracket_Indenter' changed ready status for analysis to: true
Project at 'messageViewer' changed ready status for analysis to: true
Project at 'ExprodoTestAutomation' changed ready status for analysis to: true
Project at 'Calpendo' changed ready status for analysis to: true
Project at 'issue9757' changed ready status for analysis to: true
Project at 'Teleprompter' changed ready status for analysis to: true
Project at 'scoreboard' changed ready status for analysis to: true
Project at 'idserver' changed ready status for analysis to: true
Project at 'gignovarc' changed ready status for analysis to: true
Project at 'billiards' changed ready status for analysis to: true
Project at 'hellofx' changed ready status for analysis to: true
Project at 'ServerBuild' changed ready status for analysis to: true
Project at 'Countdown' changed ready status for analysis to: true
Extracting standalone rules metadata
4,000 lines into the 36,000 line section is this line:
Starting SonarLint for Eclipse 10.4.0.82051
There are no other types of line within the 36,000 other than those of the type I’ve mentioned.
So the way I read this, there’s no context in this log to say why this task failed - unless it’s to do with all those “could not be adapted” messages.
Just to be clear: the above error showed when starting Eclipse with no files displayed at all. On loading a file, it appends this to the log file:
Trigger: EDITOR_OPEN
Analysis started with the engines being ready
SonarLint processing file /Calpendo/src/main/com/springsolutions/timeRepeating/server/RepeatableHandler.java...
Computing file exclusion for uri 'file:/home/paul/workspace/Calpendo/src/main/com/springsolutions/timeRepeating/server/RepeatableHandler.java'
Unable to find client file for uri file:/home/paul/workspace/Calpendo/src/main/com/springsolutions/timeRepeating/server/RepeatableHandler.java
Error during execution of SonarLint analysis
java.lang.IllegalStateException: java.util.concurrent.ExecutionException: org.sonarsource.sonarlint.shaded.org.eclipse.lsp4j.jsonrpc.ResponseErrorException: Internal error.
at org.sonarlint.eclipse.core.internal.jobs.AnalyzeProjectJob.run(AnalyzeProjectJob.java:307)
at org.sonarlint.eclipse.core.internal.jobs.AnalyzeProjectJob.doRun(AnalyzeProjectJob.java:155)
at org.sonarlint.eclipse.core.internal.jobs.AbstractSonarJob.run(AbstractSonarJob.java:37)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
Caused by: java.util.concurrent.ExecutionException: org.sonarsource.sonarlint.shaded.org.eclipse.lsp4j.jsonrpc.ResponseErrorException: Internal error.
at java.base/java.util.concurrent.CompletableFuture.reportGet(CompletableFuture.java:396)
at java.base/java.util.concurrent.CompletableFuture.get(CompletableFuture.java:2096)
at org.sonarlint.eclipse.core.internal.utils.JobUtils.waitForFutureInJob(JobUtils.java:74)
at org.sonarlint.eclipse.core.internal.jobs.AnalyzeProjectJob.run(AnalyzeProjectJob.java:293)
... 3 more
Caused by: org.sonarsource.sonarlint.shaded.org.eclipse.lsp4j.jsonrpc.ResponseErrorException: Internal error.
at org.sonarsource.sonarlint.shaded.org.eclipse.lsp4j.jsonrpc.RemoteEndpoint.handleResponse(RemoteEndpoint.java:220)
at org.sonarsource.sonarlint.shaded.org.eclipse.lsp4j.jsonrpc.RemoteEndpoint.consume(RemoteEndpoint.java:204)
at org.sonarsource.sonarlint.core.rpc.protocol.SingleThreadedMessageConsumer.lambda$new$0(SingleThreadedMessageConsumer.java:51)
at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:572)
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:317)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642)
at java.base/java.lang.Thread.run(Thread.java:1570)