Sonarlint doesn't trigger anymore since 4.10

Please provide

  • Operating system: Windows 11 Pro
  • SonarLint plugin version: 4.11.0
  • Programming language you’re coding in: C#
  • Is connected mode used: No
    • Connected to SonarCloud or SonarQube (and which version):

And a thorough description of the problem / question: The sonarlint plugin in VSCode works fine in 4.9.1, as you can see in the logs provided for 4.9.1

Executing c:\Users\user\.vscode\extensions\sonarsource.sonarlint-vscode-4.9.1-win32-x64\jre\21.0.4-win32-x86_64.tar\bin\java -jar c:\Users\user\.vscode\extensions\sonarsource.sonarlint-vscode-4.9.1-win32-x64\server\sonarlint-ls.jar -stdio -analyzers c:\Users\user\.vscode\extensions\sonarsource.sonarlint-vscode-4.9.1-win32-x64\analyzers\sonargo.jar c:\Users\user\.vscode\extensions\sonarsource.sonarlint-vscode-4.9.1-win32-x64\analyzers\sonarjava.jar c:\Users\user\.vscode\extensions\sonarsource.sonarlint-vscode-4.9.1-win32-x64\analyzers\sonarjs.jar c:\Users\user\.vscode\extensions\sonarsource.sonarlint-vscode-4.9.1-win32-x64\analyzers\sonarphp.jar c:\Users\user\.vscode\extensions\sonarsource.sonarlint-vscode-4.9.1-win32-x64\analyzers\sonarpython.jar c:\Users\user\.vscode\extensions\sonarsource.sonarlint-vscode-4.9.1-win32-x64\analyzers\sonarhtml.jar c:\Users\user\.vscode\extensions\sonarsource.sonarlint-vscode-4.9.1-win32-x64\analyzers\sonarxml.jar c:\Users\user\.vscode\extensions\sonarsource.sonarlint-vscode-4.9.1-win32-x64\analyzers\sonarcfamily.jar c:\Users\user\.vscode\extensions\sonarsource.sonarlint-vscode-4.9.1-win32-x64\analyzers\sonartext.jar c:\Users\user\.vscode\extensions\sonarsource.sonarlint-vscode-4.9.1-win32-x64\analyzers\sonariac.jar c:\Users\user\.vscode\extensions\sonarsource.sonarlint-vscode-4.9.1-win32-x64\analyzers\sonarlintomnisharp.jar
[Info - 01:12:08.084] SonarLint backend started, instance=org.sonarsource.sonarlint.core.rpc.impl.SonarLintRpcServerImpl@38089a5a
[Debug - 01:12:08.139] Folder WorkspaceFolder[name=Unity Test,uri=file:///e:/Development/Projects/Unity_Test/Unity%20Test] added
Extension with ID 'vscode.git' was not found, branch synchronization is disabled
[Debug - 01:12:08.166] Fetching global configuration
[Info - 01:12:08.805] Started embedded server on port 64120
[Debug - 01:12:08.816] Restoring previous local-only issue database from C:\Users\user\.sonarlint\storage\local_only_issue_backup.tar.gz
[Debug - 01:12:08.831] Starting local-only issue database from C:\Users\user\.sonarlint\xodus-local-only-issue-store18191599077387700718
[Warn - 01:12:08.860] Can't open directory channel. Log directory fsync won't be performed.
[Debug - 01:12:09.112] Fetching configuration for folder 'file:///e:/Development/Projects/Unity_Test/Unity%20Test'
[Debug - 01:12:09.116] Workspace folder 'WorkspaceFolder[name=Unity Test,uri=file:///e:/Development/Projects/Unity_Test/Unity%20Test]' configuration updated: WorkspaceFolderSettings[analyzerProperties={sonar.cs.file.suffixes=.cs, sonar.cs.internal.solutionPath=e:\Development\Projects\Unity_Test\Unity Test\Unity Test.sln, sonar.cs.internal.useNet6=true, sonar.cs.internal.loadProjectOnDemand=false, sonar.cs.internal.loadProjectsTimeout=60},connectionId=<null>,pathToCompileCommands=,projectKey=<null>,testFilePattern=]
[Debug - 01:12:09.117] Global settings updated: WorkspaceSettings[analysisExcludes=,**/.git,**/.svn,**/.hg,**/CVS,**/.DS_Store,**/Thumbs.db,**/.gitmodules,**/*.booproj,**/*.pidb,**/*.suo,**/*.user,**/*.userprefs,**/*.unityproj,**/*.dll,**/*.exe,**/*.pdf,**/*.mid,**/*.midi,**/*.wav,**/*.gif,**/*.ico,**/*.jpg,**/*.jpeg,**/*.png,**/*.psd,**/*.tga,**/*.tif,**/*.tiff,**/*.3ds,**/*.3DS,**/*.fbx,**/*.FBX,**/*.lxo,**/*.LXO,**/*.ma,**/*.MA,**/*.obj,**/*.OBJ,**/*.asset,**/*.cubemap,**/*.flare,**/*.mat,**/*.meta,**/*.prefab,**/*.unity,build/,Build/,Library/,library/,obj/,Obj/,ProjectSettings/,temp/,Temp/,connections={},disableTelemetry=true,excludedRules=[],focusOnNewCode=false,includedRules=[],pathToNodeExecutable=,ruleParameters={},showAnalyzerLogs=true,showVerboseLogs=true]
[Debug - 01:12:09.121] Default settings updated: WorkspaceFolderSettings[analyzerProperties={sonar.cs.file.suffixes=.cs, sonar.cs.internal.useNet6=true, sonar.cs.internal.loadProjectOnDemand=false, sonar.cs.internal.loadProjectsTimeout=60},connectionId=<null>,pathToCompileCommands=,projectKey=<null>,testFilePattern=]
[Debug - 01:12:09.126] No connections configured, skipping binding suggestions.
[Debug - 01:12:09.126] Synchronizing new configuration scopes: [<root>]
[Debug - 01:12:09.131] Looking for node in the PATH
[Debug - 01:12:09.140] Execute command 'C:\Windows\System32\where.exe $PATH:node.exe'...
[Debug - 01:12:09.183] Command 'C:\Windows\System32\where.exe $PATH:node.exe' exited with 1
stderr: INFO: Could not find files for the given pattern(s).
[Debug - 01:12:09.183] Unable to locate node
[Warn - 01:12:09.183] Node.js could not be automatically detected, has to be configured manually in the SonarLint preferences!
[Debug - 01:12:09.198] Plugin 'JavaScript/TypeScript/CSS Code Quality and Security' requires Node.js 18.17.0. Skip loading it.
[Debug - 01:12:09.202] Loaded 10 plugins
[Debug - 01:12:09.202]   * Python Code Quality and Security 4.19.0.15616 (python)
[Debug - 01:12:09.202]   * C# Code Quality and Security (Omnisharp) 1.23.0.96316 (csharp)
[Debug - 01:12:09.202]   * CFamily Code Quality and Security 6.57.0.73017 (cpp)
[Debug - 01:12:09.202]   * Java Code Quality and Security 8.1.0.36477 (java)
[Debug - 01:12:09.202]   * HTML Code Quality and Security 3.16.0.5274 (web)
[Debug - 01:12:09.202]   * XML Code Quality and Security 2.10.0.4108 (xml)
[Debug - 01:12:09.202]   * Go Code Quality and Security 1.15.0.4655 (go)
[Debug - 01:12:09.202]   * PHP Code Quality and Security 3.36.0.11813 (php)
[Debug - 01:12:09.202]   * IaC Code Quality and Security 1.33.1.11833 (iac)
[Debug - 01:12:09.202]   * Text Code Quality and Security 2.13.0.3515 (text)
[Debug - 01:12:09.357] Creating container for module '<root>'
[Debug - 01:12:09.381] Analysis readiness changed for config scope `<root>` to true
[Debug - 01:12:10.769] No connections configured, skipping binding suggestions.
[Debug - 01:12:10.769] Synchronizing new configuration scopes: [file:///e:/Development/Projects/Unity_Test/Unity%20Test]
[Debug - 01:12:10.769] Creating container for module 'file:///e:/Development/Projects/Unity_Test/Unity%20Test'
[Debug - 01:12:10.772] Analysis readiness changed for config scope `file:///e:/Development/Projects/Unity_Test/Unity%20Test` to true
[Debug - 01:12:10.911] Language of file "file:///e:/Development/Projects/Unity_Test/Unity%20Test/Assets/Scripts/Players/PlayerMovement.cs" is detected to be "CS"
[Debug - 01:12:10.911] Module file event for [uri=file:///e:/Development/Projects/Unity_Test/Unity%20Test/Assets/Scripts/Players/PlayerMovement.cs] has been ignored because it's not a Python file.
[Debug - 01:12:10.912] Module file event for CREATED for file [uri=file:///e:/Development/Projects/Unity_Test/Unity%20Test/Assets/Scripts/Players/PlayerMovement.cs] has been ignored because it's not a Kubernetes file.
[Debug - 01:12:10.913] Computing file exclusion for uri 'file:///e:/Development/Projects/Unity_Test/Unity%20Test/Assets/Scripts/Players/PlayerMovement.cs'
[Debug - 01:12:10.919] Extracting standalone rules metadata
[Info - 01:12:12.182] Triggering analysis with configuration: [
  baseDir: e:\Development\Projects\Unity_Test\Unity Test
  extraProperties: {sonar.cs.file.suffixes=.cs, sonar.cfamily.compile-commands=, sonar.cs.internal.solutionPath=e:\Development\Projects\Unity_Test\Unity Test\Unity Test.sln, sonar.cs.internal.loadProjectsTimeout=60, sonar.cs.internal.useNet6=true, sonar.cs.internal.loadProjectOnDemand=false}

When i updated to 4.10.0 a month ago, the file scan while working on the file stopped working. I just went back to 4.9.1. But the problem is there even with 4.11.0, where the scan never triggers.
Here are the logs with the same file, with 4.11.0 installed.

Executing c:\Users\user\.vscode\extensions\sonarsource.sonarlint-vscode-4.11.0-win32-x64\jre\21.0.4-win32-x86_64.tar\bin\java -jar c:\Users\user\.vscode\extensions\sonarsource.sonarlint-vscode-4.11.0-win32-x64\server\sonarlint-ls.jar -stdio -analyzers c:\Users\user\.vscode\extensions\sonarsource.sonarlint-vscode-4.11.0-win32-x64\analyzers\sonargo.jar c:\Users\user\.vscode\extensions\sonarsource.sonarlint-vscode-4.11.0-win32-x64\analyzers\sonarjava.jar c:\Users\user\.vscode\extensions\sonarsource.sonarlint-vscode-4.11.0-win32-x64\analyzers\sonarjs.jar c:\Users\user\.vscode\extensions\sonarsource.sonarlint-vscode-4.11.0-win32-x64\analyzers\sonarphp.jar c:\Users\user\.vscode\extensions\sonarsource.sonarlint-vscode-4.11.0-win32-x64\analyzers\sonarpython.jar c:\Users\user\.vscode\extensions\sonarsource.sonarlint-vscode-4.11.0-win32-x64\analyzers\sonarhtml.jar c:\Users\user\.vscode\extensions\sonarsource.sonarlint-vscode-4.11.0-win32-x64\analyzers\sonarxml.jar c:\Users\user\.vscode\extensions\sonarsource.sonarlint-vscode-4.11.0-win32-x64\analyzers\sonarcfamily.jar c:\Users\user\.vscode\extensions\sonarsource.sonarlint-vscode-4.11.0-win32-x64\analyzers\sonartext.jar c:\Users\user\.vscode\extensions\sonarsource.sonarlint-vscode-4.11.0-win32-x64\analyzers\sonariac.jar c:\Users\user\.vscode\extensions\sonarsource.sonarlint-vscode-4.11.0-win32-x64\analyzers\sonarlintomnisharp.jar
[Info - 01:15:57.081] SonarLint backend started, instance=org.sonarsource.sonarlint.core.rpc.impl.SonarLintRpcServerImpl@c430e6c
[Debug - 01:15:57.133] Folder WorkspaceFolder[name=Unity Test,uri=file:///e:/Development/Projects/Unity_Test/Unity%20Test] added
Extension with ID 'vscode.git' was not found, branch synchronization is disabled
[Debug - 01:15:57.160] Fetching global configuration
[Info - 01:15:57.736] Started embedded server on port 64120
[Debug - 01:15:57.748] Restoring previous local-only issue database from C:\Users\user\.sonarlint\storage\local_only_issue_backup.tar.gz
[Debug - 01:15:57.762] Starting local-only issue database from C:\Users\user\.sonarlint\xodus-local-only-issue-store11933494920378688506
[Warn - 01:15:57.787] Can't open directory channel. Log directory fsync won't be performed.
[Debug - 01:15:58.025] Fetching configuration for folder 'file:///e:/Development/Projects/Unity_Test/Unity%20Test'
[Debug - 01:15:58.029] Workspace folder 'WorkspaceFolder[name=Unity Test,uri=file:///e:/Development/Projects/Unity_Test/Unity%20Test]' configuration updated: WorkspaceFolderSettings[analyzerProperties={},connectionId=<null>,pathToCompileCommands=,projectKey=<null>,testFilePattern=]
[Debug - 01:15:58.031] Global settings updated: WorkspaceSettings[analysisExcludes=,connections={},disableTelemetry=true,excludedRules=[],focusOnNewCode=false,includedRules=[],pathToNodeExecutable=,ruleParameters={},showAnalyzerLogs=true,showVerboseLogs=true]
[Debug - 01:15:58.035] Default settings updated: WorkspaceFolderSettings[analyzerProperties={},connectionId=<null>,pathToCompileCommands=,projectKey=<null>,testFilePattern=]
[Debug - 01:15:58.039] No connections configured, skipping binding suggestions.
[Debug - 01:15:58.040] Synchronizing new configuration scopes: [<root>]
[Debug - 01:15:58.045] Looking for node in the PATH
[Debug - 01:15:58.050] Execute command 'C:\Windows\System32\where.exe $PATH:node.exe'...
[Debug - 01:15:58.090] Command 'C:\Windows\System32\where.exe $PATH:node.exe' exited with 1
stderr: INFO: Could not find files for the given pattern(s).
[Debug - 01:15:58.090] Unable to locate node
[Warn - 01:15:58.090] Node.js could not be automatically detected, has to be configured manually in the SonarLint preferences!
[Debug - 01:15:58.111] Plugin 'JavaScript/TypeScript/CSS Code Quality and Security' requires Node.js 18.17.0. Skip loading it.
[Debug - 01:15:58.174] Loaded 10 plugins
[Debug - 01:15:58.175]   * CFamily Code Quality and Security 6.59.0.75237 (cpp)
[Debug - 01:15:58.175]   * Python Code Quality and Security 4.22.0.16914 (python)
[Debug - 01:15:58.175]   * C# Code Quality and Security (Omnisharp) 1.24.0.100127 (csharp)
[Debug - 01:15:58.175]   * Java Code Quality and Security 8.1.0.36477 (java)
[Debug - 01:15:58.175]   * HTML Code Quality and Security 3.16.0.5274 (web)
[Debug - 01:15:58.175]   * XML Code Quality and Security 2.10.0.4108 (xml)
[Debug - 01:15:58.175]   * Go Code Quality and Security 1.17.1.145 (go)
[Debug - 01:15:58.175]   * PHP Code Quality and Security 3.38.0.12239 (php)
[Debug - 01:15:58.175]   * IaC Code Quality and Security 1.36.0.12431 (iac)
[Debug - 01:15:58.175]   * Text Code Quality and Security 2.16.0.4008 (text)
[Debug - 01:15:58.320] Creating container for module '<root>'
[Debug - 01:15:58.342] Analysis readiness changed for config scope `<root>` to true
[Debug - 01:15:59.475] No connections configured, skipping binding suggestions.
[Debug - 01:15:59.475] Synchronizing new configuration scopes: [file:///e:/Development/Projects/Unity_Test/Unity%20Test]
[Debug - 01:15:59.475] Creating container for module 'file:///e:/Development/Projects/Unity_Test/Unity%20Test'
[Debug - 01:15:59.478] Analysis readiness changed for config scope `file:///e:/Development/Projects/Unity_Test/Unity%20Test` to true
[Debug - 01:15:59.630] Language of file "file:///e:/Development/Projects/Unity_Test/Unity%20Test/Assets/Scripts/Players/PlayerMovement.cs" is detected to be "CS"
[Debug - 01:15:59.630] Module file event for [uri=file:///e:/Development/Projects/Unity_Test/Unity%20Test/Assets/Scripts/Players/PlayerMovement.cs] has been ignored because it's not a Python file.
[Info - 01:15:59.630] Module file event for CREATED for file [uri=file:///e:/Development/Projects/Unity_Test/Unity%20Test/Assets/Scripts/Players/PlayerMovement.cs] has been ignored because it's not a Kubernetes file.
[Debug - 01:15:59.631] Computing file exclusion for uri 'file:///e:/Development/Projects/Unity_Test/Unity%20Test/Assets/Scripts/Players/PlayerMovement.cs'
[Debug - 01:15:59.635] Extracting standalone rules metadata
[Debug - 01:16:00.955] Relativizing path: e:\Development\Projects\Unity_Test\Unity Test\Assets\Scripts\Players\PlayerMovement.cs for git repo Unity Test

Can someone please help with this? I am currently back to 4.9.1 version, but I would like to remain on the latest if possible.

Cheers and thanks.

Hello @wolfish426,

Thanks a lot for the report :bowing_woman: Indeed, there was a bug related to resolving a git repository base directory. This should be fixed in the latest version of SonarLint for VS Code (v4.11.1).

All the best,
Sophio

Sonarlint was detecting issues with my Python code 2 days ago in VSCode, not in connected mode. Today on more than one machine, it was useless. So, 4.11.1 does not fix the problem on Windows 10 or 11 with Javascript/Typescript or Python. These are only the languages I tested. I can give you the full Output from VSCode if needed.

1 Like

Hi there @mcdurby, thanks for following up :bowing_man:

Indeed, we will need the logs to understand what is happening and to see whether it is the same issue that @wolfish426 was/is facing.

Please let me know in case you would prefer to share the logs privately.

All the best,
Sophio

I don’t know how to upload a file, but here is the Output/SonarLint from VSCode v1.94.2.

Executing C:\Program Files\Java\jdk-19.0.36\bin\java -jar c:\Users\mcdurby\.vscode\extensions\sonarsource.sonarlint-vscode-4.11.1-win32-x64\server\sonarlint-ls.jar -stdio -analyzers c:\Users\mcdurby\.vscode\extensions\sonarsource.sonarlint-vscode-4.11.1-win32-x64\analyzers\sonargo.jar c:\Users\mcdurby\.vscode\extensions\sonarsource.sonarlint-vscode-4.11.1-win32-x64\analyzers\sonarjava.jar c:\Users\mcdurby\.vscode\extensions\sonarsource.sonarlint-vscode-4.11.1-win32-x64\analyzers\sonarjs.jar c:\Users\mcdurby\.vscode\extensions\sonarsource.sonarlint-vscode-4.11.1-win32-x64\analyzers\sonarphp.jar c:\Users\mcdurby\.vscode\extensions\sonarsource.sonarlint-vscode-4.11.1-win32-x64\analyzers\sonarpython.jar c:\Users\mcdurby\.vscode\extensions\sonarsource.sonarlint-vscode-4.11.1-win32-x64\analyzers\sonarhtml.jar c:\Users\mcdurby\.vscode\extensions\sonarsource.sonarlint-vscode-4.11.1-win32-x64\analyzers\sonarxml.jar c:\Users\mcdurby\.vscode\extensions\sonarsource.sonarlint-vscode-4.11.1-win32-x64\analyzers\sonarcfamily.jar c:\Users\mcdurby\.vscode\extensions\sonarsource.sonarlint-vscode-4.11.1-win32-x64\analyzers\sonartext.jar c:\Users\mcdurby\.vscode\extensions\sonarsource.sonarlint-vscode-4.11.1-win32-x64\analyzers\sonariac.jar c:\Users\mcdurby\.vscode\extensions\sonarsource.sonarlint-vscode-4.11.1-win32-x64\analyzers\sonarlintomnisharp.jar
[Info - 21:29:34.607] SonarLint backend started, instance=org.sonarsource.sonarlint.core.rpc.impl.SonarLintRpcServerImpl@14646ef
[Info - 21:29:35.617] Started embedded server on port 64120
[Warn - 21:29:35.677] Can't open directory channel. Log directory fsync won't be performed.
[Info - 21:29:36.994] Module file event for CREATED for file [uri=file:///c:/Users/directory/python/sample-code/env-tests.py] has been ignored because it's not a Kubernetes file.
[Info - 21:29:38.018] Git Repository not found for c:\Users\directory. The path c:\Users\directory is not in a Git repository
[Info - 21:29:38.022] Triggering analysis with configuration: [
  baseDir: c:\Users\directory
  extraProperties: {sonar.cfamily.compile-commands=}
  activeRules: [14 kubernetes, 214 python, 425 cpp, 24 css, 189 c, 23 go, 210 ipython, 90 secrets, 265 javascript, 26 docker, 455 java, 46 Web, 15 xml, 314 csharpsquid, 155 php, 7 terraform, 267 typescript, 18 azureresourcemanager, 7 cloudformation]
  inputFiles: [
    file:///c:/Users/directory/python/sample-code/env-tests.py (UTF-8) [py]
  ]
]

[Error - 21:29:38.049] Unable to restore known findings backup C:\Users\mcdurby\.sonarlint\storage\known_findings_backup.tar.gz
[Error - 21:29:38.097] Unexpected error occurred in scheduled task
[Error - 21:29:38.097] 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:152)
	at org.sonarsource.sonarlint.core.tracking.XodusKnownFindingsStore.<init>(XodusKnownFindingsStore.java:92)
	at org.sonarsource.sonarlint.core.tracking.KnownFindingsStorageService.get(KnownFindingsStorageService.java:41)
	at org.sonarsource.sonarlint.core.tracking.TrackingService.startMatchingSession(TrackingService.java:255)
	at org.sonarsource.sonarlint.core.tracking.TrackingService.onAnalysisStarted(TrackingService.java:102)
	at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
	at java.base/java.lang.reflect.Method.invoke(Method.java:578)
	at org.springframework.context.event.ApplicationListenerMethodAdapter.doInvoke(ApplicationListenerMethodAdapter.java:344)
	at org.springframework.context.event.ApplicationListenerMethodAdapter.processEvent(ApplicationListenerMethodAdapter.java:229)
	at org.springframework.context.event.ApplicationListenerMethodAdapter.onApplicationEvent(ApplicationListenerMethodAdapter.java:166)
	at org.springframework.context.event.SimpleApplicationEventMulticaster.doInvokeListener(SimpleApplicationEventMulticaster.java:178)
	at org.springframework.context.event.SimpleApplicationEventMulticaster.invokeListener(SimpleApplicationEventMulticaster.java:164)
	at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:145)
	at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:430)
	at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:400)
	at org.sonarsource.sonarlint.core.analysis.AnalysisService.analyze(AnalysisService.java:654)
	at org.sonarsource.sonarlint.core.analysis.AnalysisService.lambda$triggerAnalysis$50(AnalysisService.java:904)
	at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:577)
	at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:317)
	at java.base/java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:304)
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144)
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642)
	at java.base/java.lang.Thread.run(Thread.java:1589)

[Info - 21:29:38.138] Index files
[Info - 21:29:38.139] 1 file indexed
[Warn - 21:29:38.387] No workDir in SonarLint
[Info - 21:29:38.393] Starting global symbols computation
[Info - 21:29:38.394] 1 source file to be analyzed
[Info - 21:29:38.399] 1/1 source file has been analyzed
[Info - 21:29:38.399] Starting rules execution
[Info - 21:29:38.400] 1 source file to be analyzed
[Info - 21:29:38.503] 1/1 source file has been analyzed
[Info - 21:29:38.503] The Python analyzer was able to leverage cached data from previous analyses for 0 out of 1 files. These files were not parsed.
[Info - 21:29:38.516] 0 source files to be analyzed
[Info - 21:29:38.516] 0/0 source files have been analyzed
[Info - 21:29:38.516] No CSS, PHP, HTML or VueJS files are found in the project. CSS analysis is skipped.
[Info - 21:29:38.548] 0 source files to be analyzed
[Info - 21:29:38.548] 0/0 source files have been analyzed
[Info - 21:29:38.548] Available processors: 20
[Info - 21:29:38.548] Using 20 threads for analysis.
[Info - 21:29:38.715] The property "sonar.tests" is not set. To improve the analysis accuracy, we categorize a file as a test file if any of the following is true:
  * The filename starts with "test"
  * The filename contains "test." or "tests."
  * Any directory in the file path is named: "doc", "docs", "test" or "tests"
  * Any directory in the file path has a name ending in "test" or "tests"

[Info - 21:29:38.721] Analyzing all except non binary files
[Info - 21:29:38.723] 1 source file to be analyzed
[Info - 21:29:38.725] 1/1 source file has been analyzed
[Info - 21:29:38.728] Analysis detected 0 issues and 0 Security Hotspots in 1730ms
[Info - 21:29:40.139] Module file event for CREATED for file [uri=file:///c:/Users/directory/package.json] has been ignored because it's not a Kubernetes file.
[Info - 21:29:40.142] Git Repository not found for c:\Users\directory. The path c:\Users\directory is not in a Git repository
[Info - 21:29:40.143] Triggering analysis with configuration: [
  baseDir: c:\Users\directory
  extraProperties: {sonar.cfamily.compile-commands=}
  activeRules: [14 kubernetes, 214 python, 425 cpp, 24 css, 189 c, 23 go, 210 ipython, 90 secrets, 265 javascript, 26 docker, 455 java, 46 Web, 15 xml, 314 csharpsquid, 155 php, 7 terraform, 267 typescript, 18 azureresourcemanager, 7 cloudformation]
  inputFiles: [
    file:///c:/Users/directory/package.json (UTF-8) [json]
  ]
]

[Error - 21:29:40.169] Unable to restore known findings backup C:\Users\mcdurby\.sonarlint\storage\known_findings_backup.tar.gz
[Error - 21:29:40.211] Unexpected error occurred in scheduled task
[Error - 21:29:40.211] 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:152)
	at org.sonarsource.sonarlint.core.tracking.XodusKnownFindingsStore.<init>(XodusKnownFindingsStore.java:92)
	at org.sonarsource.sonarlint.core.tracking.KnownFindingsStorageService.get(KnownFindingsStorageService.java:41)
	at org.sonarsource.sonarlint.core.tracking.TrackingService.startMatchingSession(TrackingService.java:255)
	at org.sonarsource.sonarlint.core.tracking.TrackingService.onAnalysisStarted(TrackingService.java:102)
	at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
	at java.base/java.lang.reflect.Method.invoke(Method.java:578)
	at org.springframework.context.event.ApplicationListenerMethodAdapter.doInvoke(ApplicationListenerMethodAdapter.java:344)
	at org.springframework.context.event.ApplicationListenerMethodAdapter.processEvent(ApplicationListenerMethodAdapter.java:229)
	at org.springframework.context.event.ApplicationListenerMethodAdapter.onApplicationEvent(ApplicationListenerMethodAdapter.java:166)
	at org.springframework.context.event.SimpleApplicationEventMulticaster.doInvokeListener(SimpleApplicationEventMulticaster.java:178)
	at org.springframework.context.event.SimpleApplicationEventMulticaster.invokeListener(SimpleApplicationEventMulticaster.java:164)
	at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:145)
	at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:430)
	at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:400)
	at org.sonarsource.sonarlint.core.analysis.AnalysisService.analyze(AnalysisService.java:654)
	at org.sonarsource.sonarlint.core.analysis.AnalysisService.lambda$triggerAnalysis$50(AnalysisService.java:904)
	at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:577)
	at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:317)
	at java.base/java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:304)
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144)
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642)
	at java.base/java.lang.Thread.run(Thread.java:1589)

[Info - 21:29:40.223] Index files
[Info - 21:29:40.223] 1 file indexed
[Info - 21:29:40.271] 0 source files to be analyzed
[Info - 21:29:40.271] 0/0 source files have been analyzed
[Info - 21:29:40.284] 0 source files to be analyzed
[Info - 21:29:40.284] 0/0 source files have been analyzed
[Info - 21:29:40.284] 0 source files to be analyzed
[Info - 21:29:40.284] 0/0 source files have been analyzed
[Info - 21:29:40.284] No CSS, PHP, HTML or VueJS files are found in the project. CSS analysis is skipped.
[Info - 21:29:40.287] 0 source files to be analyzed
[Info - 21:29:40.287] 0/0 source files have been analyzed
[Info - 21:29:40.287] Available processors: 20
[Info - 21:29:40.287] Using 20 threads for analysis.
[Info - 21:29:40.309] The property "sonar.tests" is not set. To improve the analysis accuracy, we categorize a file as a test file if any of the following is true:
  * The filename starts with "test"
  * The filename contains "test." or "tests."
  * Any directory in the file path is named: "doc", "docs", "test" or "tests"
  * Any directory in the file path has a name ending in "test" or "tests"

[Info - 21:29:40.310] Analyzing all except non binary files
[Info - 21:29:40.310] 1 source file to be analyzed
[Info - 21:29:40.317] 1/1 source file has been analyzed
[Info - 21:29:40.317] Analysis detected 0 issues and 0 Security Hotspots in 178ms

Thanks for the logs @mcdurby,

Your problem is not related to the original one reported in this thread. “restoring local-only issue database failed: Unknown cipher” log line indicates that the SonarLint issue storage has been corrupted, and the way to fix it is to remove $HOME/.sonarlint/known-findings-store-* folders and restart VS Code.

Hope that helps,
Sophio

Thank you so much for the quick. I searched for that error message, but I found no answers.

I moved the ~/sonarlint/storage/known_findings_backup.tar.gz to another name and that resolved the problem.

I really appreciate your understanding of the problem.

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.