- Operating system: macOS Sequoia 15.3.1
- SonarQube for VS Code plugin version: 4.16.0
- Programming language you’re coding in: Typescript/JavaScript
- Is connected mode used: Community Edition v9.9.8 (build 100196)
- VS Code 1.97.2 (Universal)
Up until a few weeks ago, everything worked fine. Now the entire dev team no longer sees squiggly lines or issues listed under the Problems tab.
Using the new profiles feature in VS Code, I’ve created a fresh install and the only extension installed is SonarQube. When I open a Typescript file with known issues:
Error - 08:26:56.322] [jetbrains.exodus.env.EnvironmentImpl : SonarLint Analysis Executor] Failed to recover to valid root, address = 192947420, file = 00000005o00.xd
[Error - 08:26:56.322] [jetbrains.exodus.env.EnvironmentImpl : SonarLint Analysis Executor] jetbrains.exodus.log.DataCorruptionException: DataIterator: no more bytes available, address = -1, file = 00000000000.xd
at jetbrains.exodus.log.DataCorruptionException.raise(DataCorruptionException.java:33)
at jetbrains.exodus.log.DataIterator.next(DataIterator.java:61)
at jetbrains.exodus.log.Log.readNotNull(Log.kt:481)
at jetbrains.exodus.tree.btree.BTreeBase.getLoggable(BTreeBase.java:123)
at jetbrains.exodus.tree.btree.BTreeBase.loadLeaf(BTreeBase.java:156)
at jetbrains.exodus.tree.btree.BasePageMutable.getKey(BasePageMutable.java:158)
at jetbrains.exodus.tree.btree.BasePageMutable.binarySearch(BasePageMutable.java:264)
at jetbrains.exodus.tree.btree.BasePageMutable.binarySearch(BasePageMutable.java:223)
at jetbrains.exodus.tree.btree.BasePageMutable.binarySearch(BasePageMutable.java:218)
at jetbrains.exodus.tree.btree.BottomPageMutable.put(BottomPageMutable.java:65)
at jetbrains.exodus.tree.btree.BTreeMutable.put(BTreeMutable.java:142)
at jetbrains.exodus.tree.btree.BTreeMutable.put(BTreeMutable.java:124)
at jetbrains.exodus.env.MetaTreeImpl.cloneTree(MetaTreeImpl.java:273)
at jetbrains.exodus.env.MetaTreeImpl.create(MetaTreeImpl.java:69)
at jetbrains.exodus.env.EnvironmentImpl.<init>(EnvironmentImpl.java:131)
at jetbrains.exodus.env.Environments$newInstance$4.invoke(Environments.kt:46)
at jetbrains.exodus.env.Environments$newInstance$4.invoke(Environments.kt:46)
at jetbrains.exodus.env.Environments.prepare(Environments.kt:120)
at jetbrains.exodus.env.Environments.newInstance(Environments.kt:46)
at org.sonarsource.sonarlint.core.tracking.XodusKnownFindingsStore.buildEntityStore(XodusKnownFindingsStore.java:155)
at org.sonarsource.sonarlint.core.tracking.XodusKnownFindingsStore.<init>(XodusKnownFindingsStore.java:95)
at org.sonarsource.sonarlint.core.tracking.KnownFindingsStorageService.get(KnownFindingsStorageService.java:43)
at org.sonarsource.sonarlint.core.tracking.TrackingService.startMatchingSession(TrackingService.java:260)
at org.sonarsource.sonarlint.core.tracking.TrackingService.onAnalysisStarted(TrackingService.java:101)
at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(Unknown Source)
at java.base/java.lang.reflect.Method.invoke(Unknown Source)
at org.springframework.context.event.ApplicationListenerMethodAdapter.doInvoke(ApplicationListenerMethodAdapter.java:382)
at org.springframework.context.event.ApplicationListenerMethodAdapter.processEvent(ApplicationListenerMethodAdapter.java:254)
at org.springframework.context.event.ApplicationListenerMethodAdapter.onApplicationEvent(ApplicationListenerMethodAdapter.java:173)
at org.springframework.context.event.SimpleApplicationEventMulticaster.doInvokeListener(SimpleApplicationEventMulticaster.java:185)
at org.springframework.context.event.SimpleApplicationEventMulticaster.invokeListener(SimpleApplicationEventMulticaster.java:171)
at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:156)
at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:454)
at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:400)
at org.sonarsource.sonarlint.core.analysis.AnalysisService.analyze(AnalysisService.java:658)
at org.sonarsource.sonarlint.core.analysis.AnalysisService.lambda$triggerAnalysis$46(AnalysisService.java:908)
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)
[Error - 08:26:56.326] [org.springframework.scheduling.support.TaskUtils$LoggingErrorHandler : SonarLint Analysis Executor] Unexpected error occurred in scheduled task
[Error - 08:26:56.326] [org.springframework.scheduling.support.TaskUtils$LoggingErrorHandler : SonarLint Analysis Executor] jetbrains.exodus.crypto.InvalidCipherParametersException: Database is ciphered with different/unknown cipher parameters
at jetbrains.exodus.env.MetaTreeImpl.create(MetaTreeImpl.java:92)
at jetbrains.exodus.env.EnvironmentImpl.<init>(EnvironmentImpl.java:131)
at jetbrains.exodus.env.Environments$newInstance$4.invoke(Environments.kt:46)
at jetbrains.exodus.env.Environments$newInstance$4.invoke(Environments.kt:46)
at jetbrains.exodus.env.Environments.prepare(Environments.kt:120)
at jetbrains.exodus.env.Environments.newInstance(Environments.kt:46)
at org.sonarsource.sonarlint.core.tracking.XodusKnownFindingsStore.buildEntityStore(XodusKnownFindingsStore.java:155)
at org.sonarsource.sonarlint.core.tracking.XodusKnownFindingsStore.<init>(XodusKnownFindingsStore.java:95)
at org.sonarsource.sonarlint.core.tracking.KnownFindingsStorageService.get(KnownFindingsStorageService.java:43)
at org.sonarsource.sonarlint.core.tracking.TrackingService.startMatchingSession(TrackingService.java:260)
at org.sonarsource.sonarlint.core.tracking.TrackingService.onAnalysisStarted(TrackingService.java:101)
at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(Unknown Source)
at java.base/java.lang.reflect.Method.invoke(Unknown Source)
at org.springframework.context.event.ApplicationListenerMethodAdapter.doInvoke(ApplicationListenerMethodAdapter.java:382)
at org.springframework.context.event.ApplicationListenerMethodAdapter.processEvent(ApplicationListenerMethodAdapter.java:254)
at org.springframework.context.event.ApplicationListenerMethodAdapter.onApplicationEvent(ApplicationListenerMethodAdapter.java:173)
at org.springframework.context.event.SimpleApplicationEventMulticaster.doInvokeListener(SimpleApplicationEventMulticaster.java:185)
at org.springframework.context.event.SimpleApplicationEventMulticaster.invokeListener(SimpleApplicationEventMulticaster.java:171)
at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:156)
at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:454)
at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:400)
at org.sonarsource.sonarlint.core.analysis.AnalysisService.analyze(AnalysisService.java:658)
at org.sonarsource.sonarlint.core.analysis.AnalysisService.lambda$triggerAnalysis$46(AnalysisService.java:908)
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)
[Info - 08:26:56.332] [sonarlint : sonarlint-analysis-engine] Index files
[Info - 08:26:56.333] [sonarlint : Report about progress of file indexation] 1 file indexed
[Info - 08:26:56.360] [sonarlint : Progress of the Java analysis] 0 source files to be analyzed
[Info - 08:26:56.360] [sonarlint : Progress of the Java analysis] 0/0 source files have been analyzed
[Warn - 08:26:56.360] [sonarlint : sonarlint-analysis-engine] No workDir in SonarLint
[Info - 08:26:56.394] [sonarlint : Progress of JavaScript/TypeScript analysis] 1 source file to be analyzed
[Info - 08:26:56.462] [sonarlint : Progress of JavaScript/TypeScript analysis] 1/1 source file has been analyzed
[Info - 08:26:56.463] [sonarlint : sonarlint-analysis-engine] Hit the cache for 0 out of 1
[Info - 08:26:56.463] [sonarlint : sonarlint-analysis-engine] Miss the cache for 1 out of 1: RUNTIME_API_INCOMPATIBLE [1/1]
[Info - 08:26:56.463] [sonarlint : sonarlint-analysis-engine] No CSS, PHP, HTML or VueJS files are found in the project. CSS analysis is skipped.
[Info - 08:26:56.465] [sonarlint : Progress of the Docker analysis] 0 source files to be analyzed
[Info - 08:26:56.465] [sonarlint : Progress of the Docker analysis] 0/0 source files have been analyzed
[Info - 08:26:56.465] [sonarlint : sonarlint-analysis-engine] Available processors: 14
[Info - 08:26:56.465] [sonarlint : sonarlint-analysis-engine] Using 14 threads for analysis.
[Info - 08:26:56.470] [sonarlint : sonarlint-analysis-engine] Analyzing all except non binary files
[Info - 08:26:56.470] [sonarlint : Progress of the text and secrets analysis] 1 source file to be analyzed
[Info - 08:26:56.474] [sonarlint : Progress of the text and secrets analysis] 1/1 source file has been analyzed
[Info - 08:26:56.474] [sonarlint : sonarlint-analysis-engine] Analysis detected 2 issues and 0 Security Hotspots in 228ms
However, there are no squiggly lines and the Problems tab is empty:
Our team keeps .vscode/settings.json
checked into our git repo so we can all stay in sync. Here is that file:
{
"editor.codeActionsOnSave": {
"source.fixAll": "explicit"
},
"editor.defaultFormatter": "esbenp.prettier-vscode",
"editor.formatOnPaste": true,
"editor.formatOnSave": true,
"eslint.format.enable": false,
"eslint.run": "onSave",
"javascript.suggest.autoImports": true,
"javascript.updateImportsOnFileMove.enabled": "always",
"typescript.suggest.autoImports": true,
"typescript.updateImportsOnFileMove.enabled": "always",
"[typescript]": {
"editor.codeActionsOnSave": {
"source.organizeImports": "explicit"
}
},
"[typescriptreact]": {
"editor.codeActionsOnSave": {
"source.organizeImports": "explicit"
}
},
"[typescript][typescriptreact]": {
"editor.codeActionsOnSave": {
"source.organizeImports": "explicit"
}
}
}
Even if I remove all the above settings (and restart VS Code) SonarQube still doesn’t work.
Because this is a temporary profile in VS Code, my settings.json
is empty (or I’d share it).
One more thing. When I scan our repo with Sonar scanner (for SonarQube Community Edition) it does not list any issues in this file.
Here’s the full log output:
log.txt (223.1 KB)