Java: OpenJDK 64-Bit Server VM by JetBrains s.r.o. 17.0.10+1-b1087.17 amd64
OS: Windows 10 amd64
IDE: IntelliJ IDEA 2023.3.4 (Ultimate Edition)
SonarLint: 10.4.0.77904
I get the following exception on every analysis SonarLint tries to do, so I can’t use the plugin anymore:
Internal error: java.nio.charset.UnsupportedCharsetException: NATIVE_TO_ASCII_ISO-8859-1
Error running SonarLint analysis
java.util.concurrent.CompletionException: org.eclipse.lsp4j.jsonrpc.ResponseErrorException: Internal error.
at java.base/java.util.concurrent.CompletableFuture.encodeThrowable(CompletableFuture.java:332)
at java.base/java.util.concurrent.CompletableFuture.completeThrowable(CompletableFuture.java:347)
at java.base/java.util.concurrent.CompletableFuture$UniAccept.tryFire(CompletableFuture.java:708)
at java.base/java.util.concurrent.CompletableFuture.postComplete(CompletableFuture.java:510)
at java.base/java.util.concurrent.CompletableFuture.completeExceptionally(CompletableFuture.java:2162)
at org.eclipse.lsp4j.jsonrpc.RemoteEndpoint.handleResponse(RemoteEndpoint.java:209)
at org.eclipse.lsp4j.jsonrpc.RemoteEndpoint.consume(RemoteEndpoint.java:193)
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:539)
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
at java.base/java.lang.Thread.run(Thread.java:840)
Caused by: org.eclipse.lsp4j.jsonrpc.ResponseErrorException: Internal error.
... 8 more
The stack trace is complete, I had the verbose logging enabled. I don’t know what else I could provide.
I tried to reproduce the error now and it’s suddenly different:
The error sometimes appears in IntelliJ and the idea.log, but the stack trace is no longer printed to the SonarLint log tab. But the message Internal error: java.nio.charset.UnsupportedCharsetException: NATIVE_TO_ASCII_ISO-8859-1 appears quite frequently. But analysis works all of a sudden?!
For people encountering this problem, we made a custom build that should fix the problem. Could somebody in this thread install it and verify the fix works? This will help us prepare the bugfix release. Thank you