VS Code Extension cannot connect to SonarQube Cloud

Please provide

  • Operating system: Ubuntu 24.04
  • SonarQube for VS Code plugin version: 4.27.0
  • Programming language you’re coding in: C#, typescript
  • Is connected mode used: Cannot connect
    • SonarQube Cloud, SonarQube Server, or SonarQube Community Build? (if one of the latter two, which version?):

And a thorough description of the problem / question:

I am running VS code in WSL/Ubuntu. When I try to connect to the SonarQube Cloud, I cannot. The “Generate Token” button does not work. When I create a token in the SonarQube website and paste it in, nothing happens. No organization appears in the “Organization” dropdown.

A few minutes after opening VS code, in the SonarQube for IDE output, I receive the following error:

2025-07-31 14:05:41.460 [info] [Info - 14:05:41.402] [sonarlint : SonarLint Server RPC sequential executor] Started embedded server on port 64120

2025-07-31 14:08:22.902 [info] [Error - 14:08:22.900] [org.eclipse.lsp4j.jsonrpc.json.ConcurrentMessageProcessor : Server message reader] java.io.IOException: Pipe broken

2025-07-31 14:08:22.902 [info] [Error - 14:08:22.900] [org.eclipse.lsp4j.jsonrpc.json.ConcurrentMessageProcessor : Server message reader] org.eclipse.lsp4j.jsonrpc.JsonRpcException: java.io.IOException: Pipe broken

at org.eclipse.lsp4j.jsonrpc.json.StreamMessageProducer.listen(StreamMessageProducer.java:125)

at org.eclipse.lsp4j.jsonrpc.json.ConcurrentMessageProcessor.run(ConcurrentMessageProcessor.java:114)

at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)

at java.base/java.util.concurrent.FutureTask.run(Unknown Source)

at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)

at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)

at java.base/java.lang.Thread.run(Unknown Source)

Caused by: java.io.IOException: Pipe broken

at java.base/java.io.PipedInputStream.read(Unknown Source)

at org.eclipse.lsp4j.jsonrpc.json.StreamMessageProducer.listen(StreamMessageProducer.java:82)

... 6 common frames omitted

Hi,

Welcome to the community and thanks for this report!

Could you provide a full debug log, redacted as necessary?

 
Thx,
Ann

Hi Ann,

Thanks for your comment.

I have solved the issue; this is the set of steps I went through.

I enabled debug logs and analytics, as you requested.

Once I did that, I noticed that an OutOfMemoryError is thrown.

I checked the memory allocation using top and found that my PC had only allocated 16 GB to WSL, and not much memory was left.

I increased the memory allocation of WSL in .wslconfig to be 20 GB.

A different error occurred, telling me that the Java Heap was running out of memory.

I therefore increased the max heap size to be 8 GB.

Once I did that, the extension was able to load successfully.

This is not an overly large project. Therefore, I’m puzzled about why this project needs adjustments of the memory settings for both the WSL Ubuntu Virtual Machine, and the Java Virtual machine, so that it can load successfully.

1 Like

Hi,

Thanks for sharing your debugging. This is very interesting, and I’ve flagged it for the team.

 
Ann