hmvictor / nb-sonarlint

A SonarLint plugin for Netbeans
Other
8 stars 7 forks source link

GlobalStorageUpdateRequiredException: Storage server '123' #7

Open luiscla27 opened 4 years ago

luiscla27 commented 4 years ago

Hello, the following exception is being thrown immediately after NB starts:

org.sonarsource.sonarlint.core.client.api.exceptions.GlobalStorageUpdateRequiredException: Storage of server '123' requires an update
    at org.sonarsource.sonarlint.core.ConnectedSonarLintEngineImpl.checkUpdateStatus(ConnectedSonarLintEngineImpl.java:220)
    at org.sonarsource.sonarlint.core.ConnectedSonarLintEngineImpl.withReadLock(ConnectedSonarLintEngineImpl.java:342)
    at org.sonarsource.sonarlint.core.ConnectedSonarLintEngineImpl.withReadLock(ConnectedSonarLintEngineImpl.java:334)
    at org.sonarsource.sonarlint.core.ConnectedSonarLintEngineImpl.checkIfGlobalStorageNeedUpdate(ConnectedSonarLintEngineImpl.java:195)
    at org.radar.radarlint.SonarLintScanner.get(SonarLintScanner.java:125)
    at org.radar.radarlint.SonarLintScanner.get(SonarLintScanner.java:48)
    at java.base/java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1771)
Caused: java.util.concurrent.CompletionException
    at java.base/java.util.concurrent.CompletableFuture.encodeThrowable(CompletableFuture.java:314)
    at java.base/java.util.concurrent.CompletableFuture.completeThrowable(CompletableFuture.java:319)
    at java.base/java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1773)
[catch] at java.base/java.util.concurrent.CompletableFuture$AsyncSupply.exec(CompletableFuture.java:1763)
    at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:290)
    at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1020)
    at java.base/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1656)
    at java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1594)
    at java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:177)

This is my NB environment:

image image image

oyarzun commented 3 years ago

@luiscla27 #1 should fix this issue. @hmvictor, all of @awatry PRs are quite useful any chance they can be merged to master?