Failed to Read File - VSCode for SonarLint

  • Operating system: Windows
  • SonarLint plugin version: v3.13.0
  • Programming language you’re coding in: Python
  • Is connected mode used:
    • Connected to SonarCloud or SonarQube (and which version): SonarQube, unsure of the version

And a thorough description of the problem / question:
Issue while binding from sonarLint to SonarQube, see issue below:

[Error - 5:28:28 PM] Request workspace/executeCommand failed.
  Message: Internal error.
  Code: -32603 
java.util.concurrent.CompletionException: org.sonarsource.sonarlint.core.serverconnection.storage.StorageException: Failed to read file: C:\Users\gmwc\.sonarlint\storage\68747470732d736f6e6172717562652d617a7572652d63686576726f6e2d636f6d2d\projects\5175657374696f6e\project_branches.pb
	at java.base/java.util.concurrent.CompletableFuture.encodeThrowable(Unknown Source)
	at java.base/java.util.concurrent.CompletableFuture.completeThrowable(Unknown Source)
	at java.base/java.util.concurrent.CompletableFuture$UniApply.tryFire(Unknown Source)
	at java.base/java.util.concurrent.CompletableFuture$Completion.exec(Unknown Source)
	at java.base/java.util.concurrent.ForkJoinTask.doExec(Unknown Source)
	at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(Unknown Source)
	at java.base/java.util.concurrent.ForkJoinPool.scan(Unknown Source)
	at java.base/java.util.concurrent.ForkJoinPool.runWorker(Unknown Source)
	at java.base/java.util.concurrent.ForkJoinWorkerThread.run(Unknown Source)
Caused by: org.sonarsource.sonarlint.core.serverconnection.storage.StorageException: Failed to read file: C:\Users\gmwc\.sonarlint\storage\68747470732d736f6e6172717562652d617a7572652d63686576726f6e2d636f6d2d\projects\5175657374696f6e\project_branches.pb
	at org.sonarsource.sonarlint.core.serverconnection.storage.ProtobufUtil.readFile(ProtobufUtil.java:42)
	at org.sonarsource.sonarlint.core.serverconnection.storage.ProjectStorage.lambda$getProjectBranches$3(ProjectStorage.java:73)
	at org.sonarsource.sonarlint.core.serverconnection.storage.RWLock.read(RWLock.java:32)
	at org.sonarsource.sonarlint.core.serverconnection.storage.ProjectStorage.getProjectBranches(ProjectStorage.java:73)
	at org.sonarsource.sonarlint.core.serverconnection.ServerConnection.getProjectBranches(ServerConnection.java:117)
	at org.sonarsource.sonarlint.core.ConnectedSonarLintEngineImpl.getServerBranches(ConnectedSonarLintEngineImpl.java:363)
	at org.sonarsource.sonarlint.ls.connected.ProjectBindingManager.resolveBranchNameForFolder(ProjectBindingManager.java:553)
	at org.sonarsource.sonarlint.ls.connected.ProjectBindingManager.lambda$getActiveConnectionsAndProjects$20(ProjectBindingManager.java:446)
	at java.base/java.util.Optional.ifPresent(Unknown Source)
	at org.sonarsource.sonarlint.ls.connected.ProjectBindingManager.lambda$getActiveConnectionsAndProjects$21(ProjectBindingManager.java:444)
	at org.sonarsource.sonarlint.ls.connected.ProjectBindingManager.forEachBoundFolder(ProjectBindingManager.java:454)
	at org.sonarsource.sonarlint.ls.connected.ProjectBindingManager.getActiveConnectionsAndProjects(ProjectBindingManager.java:441)
	at org.sonarsource.sonarlint.ls.connected.sync.ServerSynchronizer.lambda$updateAllBindings$0(ServerSynchronizer.java:72)
	at org.sonarsource.sonarlint.ls.progress.ProgressManager.doWithProgress(ProgressManager.java:73)
	at org.sonarsource.sonarlint.ls.connected.sync.ServerSynchronizer.updateAllBindings(ServerSynchronizer.java:69)
	at org.sonarsource.sonarlint.ls.CommandManager.executeCommand(CommandManager.java:272)
	at org.sonarsource.sonarlint.ls.SonarLintLanguageServer.lambda$executeCommand$5(SonarLintLanguageServer.java:401)
	... 7 more
Caused by: java.nio.file.NoSuchFileException: C:\Users\gmwc\.sonarlint\storage\68747470732d736f6e6172717562652d617a7572652d63686576726f6e2d636f6d2d\projects\5175657374696f6e\project_branches.pb
	at java.base/sun.nio.fs.WindowsException.translateToIOException(Unknown Source)
	at java.base/sun.nio.fs.WindowsException.rethrowAsIOException(Unknown Source)
	at java.base/sun.nio.fs.WindowsException.rethrowAsIOException(Unknown Source)
	at java.base/sun.nio.fs.WindowsFileSystemProvider.newByteChannel(Unknown Source)
	at java.base/java.nio.file.Files.newByteChannel(Unknown Source)
	at java.base/java.nio.file.Files.newByteChannel(Unknown Source)
	at java.base/java.nio.file.spi.FileSystemProvider.newInputStream(Unknown Source)
	at java.base/java.nio.file.Files.newInputStream(Unknown Source)
	at org.sonarsource.sonarlint.core.serverconnection.storage.ProtobufUtil.readFile(ProtobufUtil.java:39)
	... 23 more

[Error - 5:28:40 PM] Request workspace/executeCommand failed.
  Message: Internal error.
  Code: -32603 
java.util.concurrent.CompletionException: org.sonarsource.sonarlint.core.serverconnection.storage.StorageException: Failed to read file: C:\Users\gmwc\.sonarlint\storage\68747470732d736f6e6172717562652d617a7572652d63686576726f6e2d636f6d2d\projects\5175657374696f6e\project_branches.pb
	at java.base/java.util.concurrent.CompletableFuture.encodeThrowable(Unknown Source)
	at java.base/java.util.concurrent.CompletableFuture.completeThrowable(Unknown Source)
	at java.base/java.util.concurrent.CompletableFuture$UniApply.tryFire(Unknown Source)
	at java.base/java.util.concurrent.CompletableFuture$Completion.exec(Unknown Source)
	at java.base/java.util.concurrent.ForkJoinTask.doExec(Unknown Source)
	at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(Unknown Source)
	at java.base/java.util.concurrent.ForkJoinPool.scan(Unknown Source)
	at java.base/java.util.concurrent.ForkJoinPool.runWorker(Unknown Source)
	at java.base/java.util.concurrent.ForkJoinWorkerThread.run(Unknown Source)
Caused by: org.sonarsource.sonarlint.core.serverconnection.storage.StorageException: Failed to read file: C:\Users\gmwc\.sonarlint\storage\68747470732d736f6e6172717562652d617a7572652d63686576726f6e2d636f6d2d\projects\5175657374696f6e\project_branches.pb
	at org.sonarsource.sonarlint.core.serverconnection.storage.ProtobufUtil.readFile(ProtobufUtil.java:42)
	at org.sonarsource.sonarlint.core.serverconnection.storage.ProjectStorage.lambda$getProjectBranches$3(ProjectStorage.java:73)
	at org.sonarsource.sonarlint.core.serverconnection.storage.RWLock.read(RWLock.java:32)
	at org.sonarsource.sonarlint.core.serverconnection.storage.ProjectStorage.getProjectBranches(ProjectStorage.java:73)
	at org.sonarsource.sonarlint.core.serverconnection.ServerConnection.getProjectBranches(ServerConnection.java:117)
	at org.sonarsource.sonarlint.core.ConnectedSonarLintEngineImpl.getServerBranches(ConnectedSonarLintEngineImpl.java:363)
	at org.sonarsource.sonarlint.ls.connected.ProjectBindingManager.resolveBranchNameForFolder(ProjectBindingManager.java:553)
	at org.sonarsource.sonarlint.ls.connected.ProjectBindingManager.lambda$getActiveConnectionsAndProjects$20(ProjectBindingManager.java:446)
	at java.base/java.util.Optional.ifPresent(Unknown Source)
	at org.sonarsource.sonarlint.ls.connected.ProjectBindingManager.lambda$getActiveConnectionsAndProjects$21(ProjectBindingManager.java:444)
	at org.sonarsource.sonarlint.ls.connected.ProjectBindingManager.forEachBoundFolder(ProjectBindingManager.java:454)
	at org.sonarsource.sonarlint.ls.connected.ProjectBindingManager.getActiveConnectionsAndProjects(ProjectBindingManager.java:441)
	at org.sonarsource.sonarlint.ls.connected.sync.ServerSynchronizer.lambda$updateAllBindings$0(ServerSynchronizer.java:72)
	at org.sonarsource.sonarlint.ls.progress.ProgressManager.doWithProgress(ProgressManager.java:73)
	at org.sonarsource.sonarlint.ls.connected.sync.ServerSynchronizer.updateAllBindings(ServerSynchronizer.java:69)
	at org.sonarsource.sonarlint.ls.CommandManager.executeCommand(CommandManager.java:272)
	at org.sonarsource.sonarlint.ls.SonarLintLanguageServer.lambda$executeCommand$5(SonarLintLanguageServer.java:401)
	... 7 more
Caused by: java.nio.file.NoSuchFileException: C:\Users\gmwc\.sonarlint\storage\68747470732d736f6e6172717562652d617a7572652d63686576726f6e2d636f6d2d\projects\5175657374696f6e\project_branches.pb
	at java.base/sun.nio.fs.WindowsException.translateToIOException(Unknown Source)
	at java.base/sun.nio.fs.WindowsException.rethrowAsIOException(Unknown Source)
	at java.base/sun.nio.fs.WindowsException.rethrowAsIOException(Unknown Source)
	at java.base/sun.nio.fs.WindowsFileSystemProvider.newByteChannel(Unknown Source)
	at java.base/java.nio.file.Files.newByteChannel(Unknown Source)
	at java.base/java.nio.file.Files.newByteChannel(Unknown Source)
	at java.base/java.nio.file.spi.FileSystemProvider.newInputStream(Unknown Source)
	at java.base/java.nio.file.Files.newInputStream(Unknown Source)
	at org.sonarsource.sonarlint.core.serverconnection.storage.ProtobufUtil.readFile(ProtobufUtil.java:39)
	... 23 more