Hi @rYuuk
I’m sorry but we are still not able to reproduce. The analysis works fine with your sample project. There should be something different in your setup that we are not understanding.
Could you please follow those steps:
- ensure analysis + verbose logs are enabled in the SonarLint log tab
- close the solution (or close Rider)
- reopen Rider and open the solution (SonarLintTest.sln)
- open the file Snake.cs in the editor
- look at the SonarLint console and share the full content with me
I would expect logs like:
Couldn't get a connected engine to check for update: Project is not bound to a SonarQube project
Found plugin: sonar-ruby-plugin-1.8.3.2219.jar
Found plugin: sonarlint-omnisharp-plugin-1.0.1.40480.jar
Found plugin: sonar-kotlin-plugin-2.3.0.609.jar
Found plugin: sonar-html-plugin-3.4.0.2754.jar
Found plugin: sonar-php-plugin-3.21.1.8250.jar
Found plugin: sonar-python-plugin-3.6.0.8488.jar
Found plugin: sonar-javascript-plugin-8.4.0.16431.jar
Found plugin: sonar-java-plugin-7.4.0.27839.jar
Found plugin: sonar-secrets-plugin-1.1.0.36766.jar
Found plugin: sonar-cfamily-plugin-6.28.0.39490.jar
Trigger: EDITOR_OPEN
[Editor open] 1 file(s) submitted
Create : /home/julien/.config/JetBrains/Rider2021.2/sonarlint/plugins
Plugin cache: /home/julien/.config/JetBrains/Rider2021.2/sonarlint/plugins
Create : /home/julien/.config/JetBrains/Rider2021.2/sonarlint/plugins/_tmp
Load plugins
Plugin 'Ruby Code Quality and Security' is excluded because language 'Ruby' is not enabled. Skip loading it.
Plugin 'Kotlin Code Quality and Security' is excluded because language 'Kotlin' is not enabled. Skip loading it.
Plugin 'HTML Code Quality and Security' is excluded because none of languages 'HTML,JSP' are enabled. Skip loading it.
Plugin 'PHP Code Quality and Security' is excluded because language 'PHP' is not enabled. Skip loading it.
Plugin 'Python Code Quality and Security' is excluded because language 'Python' is not enabled. Skip loading it.
Plugin 'JavaScript/TypeScript Code Quality and Security' is excluded because none of languages 'JavaScript,TypeScript' are enabled. Skip loading it.
Plugin 'Java Code Quality and Security' is excluded because language 'Java' is not enabled. Skip loading it.
Plugin 'CFamily Code Quality and Security' is excluded because none of languages 'C,C++,Objective-C' are enabled. Skip loading it.
Load plugins (done) | time=60ms
Plugins:
* C# Code Quality and Security (Omnisharp) 1.0.1.40480 (csharp)
* Sonar Secrets Plugin for SonarQube 1.1.0.36766 (secrets)
Creating container for module with key=Module: 'rider.module'
0 entries removed from the store
Configuring analysis with org.sonarlint.intellij.rider.RiderAnalysisConfigurator
Analysing 'Snake.cs'...
Starting analysis with configuration:
[
baseDir: /home/julien/tmp/SonarLintTest/SonarLintTest
extraProperties: {sonar.cs.internal.dotnetCliExeLocation=/usr/lib64/dotnet/dotnet}
moduleKey: Module: 'rider.module'
excludedRules: []
includedRules: []
ruleParameters: {}
inputFiles: [
file:///home/julien/tmp/SonarLintTest/SonarLintTest/Assets/Snake.cs (UTF-8)
]
]
Start analysis
Index files
Language of file 'file:///home/julien/tmp/SonarLintTest/SonarLintTest/Assets/Snake.cs' is detected to be 'C#'
1 file indexed
Execute Sensor: OmniSharp
Starting OmniSharp...
Omnisharp: [DEBUG] Loaded OmniSharp.Cake, Version=1.37.0.0, Culture=neutral, PublicKeyToken=7e5bf7b3b470b509
Omnisharp: [DEBUG] Loaded OmniSharp.DotNetTest, Version=1.37.0.0, Culture=neutral, PublicKeyToken=7e5bf7b3b470b509
Omnisharp: [DEBUG] Loaded OmniSharp.Host, Version=1.37.0.0, Culture=neutral, PublicKeyToken=7e5bf7b3b470b509
Omnisharp: [DEBUG] Loaded OmniSharp.MSBuild, Version=1.37.0.0, Culture=neutral, PublicKeyToken=7e5bf7b3b470b509
Omnisharp: [DEBUG] Loaded OmniSharp.Roslyn, Version=1.37.0.0, Culture=neutral, PublicKeyToken=7e5bf7b3b470b509
Omnisharp: [DEBUG] Loaded OmniSharp.Roslyn.CSharp, Version=1.37.0.0, Culture=neutral, PublicKeyToken=7e5bf7b3b470b509
Omnisharp: [DEBUG] Loaded OmniSharp.Script, Version=1.37.0.0, Culture=neutral, PublicKeyToken=7e5bf7b3b470b509
Omnisharp: [DEBUG] Loaded OmniSharp.Shared, Version=1.37.0.0, Culture=neutral, PublicKeyToken=7e5bf7b3b470b509
Omnisharp: [INFORMATION] Starting OmniSharp on fedora 34.0 (x64)
Omnisharp: [INFORMATION] DotNetPath set to dotnet
Omnisharp: [DEBUG] .NET SDK requires MSBuild instances version 16.3.0 or higher
Omnisharp: [DEBUG] Can't use installed Mono because OmniSharp isn't running on it
Omnisharp: [INFORMATION] Located 1 MSBuild instance(s)
1: StandAlone 16.11.0 - "/home/julien/.local/share/JetBrains/Rider2021.2/sonarlint-intellij/omnisharp/linux/omnisharp/.msbuild/Current/Bin"
Omnisharp: [DEBUG] MSBuild instance StandAlone 16.11.0 scored at 1
Omnisharp: [DEBUG] SUCCESS: Resolved to '/home/julien/.local/share/JetBrains/Rider2021.2/sonarlint-intellij/omnisharp/linux/omnisharp/.msbuild/Current/Bin/Microsoft.Build.dll' (name-only).
Omnisharp: [DEBUG] SUCCESS: Resolved to '/home/julien/.local/share/JetBrains/Rider2021.2/sonarlint-intellij/omnisharp/linux/omnisharp/.msbuild/Current/Bin/Microsoft.Build.Utilities.Core.dll' (name-only).
Omnisharp: [DEBUG] SUCCESS: Resolved to '/home/julien/.local/share/JetBrains/Rider2021.2/sonarlint-intellij/omnisharp/linux/omnisharp/.msbuild/Current/Bin/Microsoft.Build.Framework.dll' (name-only).
Omnisharp: [DEBUG] SUCCESS: Resolved to '/home/julien/.local/share/JetBrains/Rider2021.2/sonarlint-intellij/omnisharp/linux/omnisharp/.msbuild/Current/Bin/Microsoft.Build.Tasks.Core.dll' (name-only).
Omnisharp: [INFORMATION] MSBUILD_EXE_PATH environment variable set to '/home/julien/.local/share/JetBrains/Rider2021.2/sonarlint-intellij/omnisharp/linux/omnisharp/.msbuild/Current/Bin/MSBuild.exe'
Omnisharp: [INFORMATION] Registered MSBuild instance: StandAlone 16.11.0 - "/home/julien/.local/share/JetBrains/Rider2021.2/sonarlint-intellij/omnisharp/linux/omnisharp/.msbuild/Current/Bin"
CscToolExe = csc.exe
MSBuildToolsPath = /home/julien/.local/share/JetBrains/Rider2021.2/sonarlint-intellij/omnisharp/linux/omnisharp/.msbuild/Current/Bin
CscToolPath = /home/julien/.local/share/JetBrains/Rider2021.2/sonarlint-intellij/omnisharp/linux/omnisharp/.msbuild/Current/Bin/Roslyn
BypassFrameworkInstallChecks = true
MSBuildExtensionsPath = /home/julien/.local/share/JetBrains/Rider2021.2/sonarlint-intellij/omnisharp/linux/omnisharp/.msbuild
Omnisharp: [DEBUG] Attempting to resolve 'Microsoft.CodeAnalysis.VisualBasic.Workspaces, Version=3.11.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'
Omnisharp: [DEBUG] FAILURE: Could not locate '/home/julien/.local/share/JetBrains/Rider2021.2/sonarlint-intellij/omnisharp/linux/omnisharp/.msbuild/Current/Bin/Microsoft.CodeAnalysis.VisualBasic.Workspaces.dll'.
[...]
Omnisharp: [DEBUG] Starting with OmniSharp options: {"RoslynExtensionsOptions":{"EnableDecompilationSupport":false,"EnableAnalyzersSupport":false,"EnableImportCompletion":false,"EnableAsyncCompletion":false,"DocumentAnalysisTimeoutMs":10000,"LocationPaths":null},"FormattingOptions":{"OrganizeImports":false,"EnableEditorConfigSupport":false,"NewLine":"\n","UseTabs":false,"TabSize":4,"IndentationSize":4,"SpacingAfterMethodDeclarationName":false,"SpaceWithinMethodDeclarationParenthesis":false,"SpaceBetweenEmptyMethodDeclarationParentheses":false,"SpaceAfterMethodCallName":false,"SpaceWithinMethodCallParentheses":false,"SpaceBetweenEmptyMethodCallParentheses":false,"SpaceAfterControlFlowStatementKeyword":true,"SpaceWithinExpressionParentheses":false,"SpaceWithinCastParentheses":false,"SpaceWithinOtherParentheses":false,"SpaceAfterCast":false,"SpacesIgnoreAroundVariableDeclaration":false,"SpaceBeforeOpenSquareBracket":false,"SpaceBetweenEmptySquareBrackets":false,"SpaceWithinSquareBrackets":false,"SpaceAfterColonInBaseTypeDeclaration":true,"SpaceAfterComma":true,"SpaceAfterDot":false,"SpaceAfterSemicolonsInForStatement":true,"SpaceBeforeColonInBaseTypeDeclaration":true,"SpaceBeforeComma":false,"SpaceBeforeDot":false,"SpaceBeforeSemicolonsInForStatement":false,"SpacingAroundBinaryOperator":"single","IndentBraces":false,"IndentBlock":true,"IndentSwitchSection":true,"IndentSwitchCaseSection":true,"IndentSwitchCaseSectionWhenBlock":true,"LabelPositioning":"oneLess","WrappingPreserveSingleLine":true,"WrappingKeepStatementsOnSingleLine":true,"NewLinesForBracesInTypes":true,"NewLinesForBracesInMethods":true,"NewLinesForBracesInProperties":true,"NewLinesForBracesInAccessors":true,"NewLinesForBracesInAnonymousMethods":true,"NewLinesForBracesInControlBlocks":true,"NewLinesForBracesInAnonymousTypes":true,"NewLinesForBracesInObjectCollectionArrayInitializers":true,"NewLinesForBracesInLambdaExpressionBody":true,"NewLineForElse":true,"NewLineForCatch":true,"NewLineForFinally":true,"NewLineForMembersInObjectInit":true,"NewLineForMembersInAnonymousTypes":true,"NewLineForClausesInQuery":true},"FileOptions":{"SystemExcludeSearchPatterns":["**/node_modules/**/*","**/bin/**/*","**/obj/**/*","**/.git/**/*"],"ExcludeSearchPatterns":[]},"RenameOptions":{"RenameOverloads":false,"RenameInStrings":false,"RenameInComments":false},"ImplementTypeOptions":{"InsertionBehavior":null,"PropertyGenerationBehavior":null},"Plugins":{"LocationPaths":null}}
Omnisharp: [INFORMATION] Invoking Workspace Options Provider: OmniSharp.Roslyn.CSharp.Services.CSharpFormattingWorkspaceOptionsProvider, Order: 0
Omnisharp: [DEBUG] Attempting to resolve 'Microsoft.CodeAnalysis.CSharp.Workspaces.resources, Version=3.11.0.0, Culture=fr-FR, PublicKeyToken=31bf3856ad364e35'
Omnisharp: [DEBUG] FAILURE: Could not locate '/home/julien/.local/share/JetBrains/Rider2021.2/sonarlint-intellij/omnisharp/linux/omnisharp/.msbuild/Current/Bin/Microsoft.CodeAnalysis.CSharp.Workspaces.resources.dll'.
Omnisharp: [DEBUG] Attempting to resolve 'Microsoft.CodeAnalysis.CSharp.Workspaces.resources, Version=3.11.0.0, Culture=fr, PublicKeyToken=31bf3856ad364e35'
Omnisharp: [DEBUG] FAILURE: Could not locate '/home/julien/.local/share/JetBrains/Rider2021.2/sonarlint-intellij/omnisharp/linux/omnisharp/.msbuild/Current/Bin/Microsoft.CodeAnalysis.CSharp.Workspaces.resources.dll'.
Omnisharp: [INFORMATION] Invoking Workspace Options Provider: OmniSharp.Roslyn.CSharp.Services.Completion.CompletionOptionsProvider, Order: 0
Omnisharp: [INFORMATION] Invoking Workspace Options Provider: OmniSharp.Roslyn.CSharp.Services.RenameWorkspaceOptionsProvider, Order: 100
Omnisharp: [INFORMATION] Invoking Workspace Options Provider: OmniSharp.Roslyn.CSharp.Services.ImplementTypeWorkspaceOptionsProvider, Order: 110
Omnisharp: [INFORMATION] Invoking Workspace Options Provider: OmniSharp.Roslyn.CSharp.Services.BlockStructureWorkspaceOptionsProvider, Order: 140
Omnisharp: [INFORMATION] Detecting Cake files in '/home/julien/tmp/SonarLintTest/SonarLintTest'.
Omnisharp: [INFORMATION] Could not find any Cake files
Omnisharp: [DEBUG] MSBuild environment:
Mode: Standalone
RunningTests: False
RunningInVisualStudio: False
MSBuildToolsDirectory32: /home/julien/.local/share/JetBrains/Rider2021.2/sonarlint-intellij/omnisharp/linux/omnisharp/.msbuild/Current/Bin
MSBuildToolsDirectory64: /home/julien/.local/share/JetBrains/Rider2021.2/sonarlint-intellij/omnisharp/linux/omnisharp/.msbuild/Current/Bin
MSBuildSDKsPath: /home/julien/.local/share/JetBrains/Rider2021.2/sonarlint-intellij/omnisharp/linux/omnisharp/.msbuild/Current/Bin/Sdks
CurrentMSBuildConfigurationFile: /home/julien/.local/share/JetBrains/Rider2021.2/sonarlint-intellij/omnisharp/linux/omnisharp/.msbuild/Current/Bin/MSBuild.exe.config
CurrentMSBuildExePath: /home/julien/.local/share/JetBrains/Rider2021.2/sonarlint-intellij/omnisharp/linux/omnisharp/.msbuild/Current/Bin/MSBuild.exe
CurrentMSBuildToolsDirectory: /home/julien/.local/share/JetBrains/Rider2021.2/sonarlint-intellij/omnisharp/linux/omnisharp/.msbuild/Current/Bin
VisualStudioInstallRootDirectory:
MSBuildExtensionsPath: /home/julien/.local/share/JetBrains/Rider2021.2/sonarlint-intellij/omnisharp/linux/omnisharp/.msbuild/Current/Bin
Omnisharp: [DEBUG] 'MSBuildExtensionsPath' set to '/home/julien/.local/share/JetBrains/Rider2021.2/sonarlint-intellij/omnisharp/linux/omnisharp/.msbuild'
Omnisharp: [DEBUG] 'CscToolPath' set to '/home/julien/.local/share/JetBrains/Rider2021.2/sonarlint-intellij/omnisharp/linux/omnisharp/.msbuild/Current/Bin/Roslyn'
Omnisharp: [DEBUG] 'CscToolExe' set to 'csc.exe'
Omnisharp: [INFORMATION] Detecting projects in '/home/julien/tmp/SonarLintTest/SonarLintTest/SonarLintTest.sln'.
Omnisharp: [DEBUG] Parsing ProjectConfigurationPlatforms of '/home/julien/tmp/SonarLintTest/SonarLintTest/SonarLintTest.sln'.
Omnisharp: [INFORMATION] Queue project update for '/home/julien/tmp/SonarLintTest/SonarLintTest/Assembly-CSharp.csproj'
Omnisharp: [INFORMATION] Detecting CSX files in '/home/julien/tmp/SonarLintTest/SonarLintTest'.
Omnisharp: [INFORMATION] Could not find any CSX files
Omnisharp: [INFORMATION] Configuration finished.
Omnisharp: [INFORMATION] Omnisharp server running using Stdio at location '/home/julien/tmp/SonarLintTest/SonarLintTest' on host 15877.
OmniSharp successfully started
Waiting for solution/project configuration to be loaded...
Omnisharp: [INFORMATION] Loading project: /home/julien/tmp/SonarLintTest/SonarLintTest/Assembly-CSharp.csproj
Omnisharp: [DEBUG] Attempting to resolve 'Microsoft.Build.resources, Version=15.1.0.0, Culture=fr-FR, PublicKeyToken=b03f5f7f11d50a3a'
Omnisharp: [DEBUG] FAILURE: Could not locate '/home/julien/.local/share/JetBrains/Rider2021.2/sonarlint-intellij/omnisharp/linux/omnisharp/.msbuild/Current/Bin/Microsoft.Build.resources.dll'.
Omnisharp: [DEBUG] Attempting to resolve 'Microsoft.Build.resources, Version=15.1.0.0, Culture=fr, PublicKeyToken=b03f5f7f11d50a3a'
Omnisharp: [DEBUG] FAILURE: Could not locate '/home/julien/.local/share/JetBrains/Rider2021.2/sonarlint-intellij/omnisharp/linux/omnisharp/.msbuild/Current/Bin/Microsoft.Build.resources.dll'.
Omnisharp: [DEBUG] Attempting to resolve 'Microsoft.Build.Tasks.Core.resources, Version=15.1.0.0, Culture=fr-FR, PublicKeyToken=b03f5f7f11d50a3a'
Omnisharp: [DEBUG] FAILURE: Could not locate '/home/julien/.local/share/JetBrains/Rider2021.2/sonarlint-intellij/omnisharp/linux/omnisharp/.msbuild/Current/Bin/Microsoft.Build.Tasks.Core.resources.dll'.
Omnisharp: [DEBUG] Attempting to resolve 'Microsoft.Build.Tasks.Core.resources, Version=15.1.0.0, Culture=fr, PublicKeyToken=b03f5f7f11d50a3a'
Omnisharp: [DEBUG] FAILURE: Could not locate '/home/julien/.local/share/JetBrains/Rider2021.2/sonarlint-intellij/omnisharp/linux/omnisharp/.msbuild/Current/Bin/Microsoft.Build.Tasks.Core.resources.dll'.
Omnisharp: [INFORMATION] Successfully loaded project file '/home/julien/tmp/SonarLintTest/SonarLintTest/Assembly-CSharp.csproj'.
{"Event":"MsBuildProjectDiagnostics","Body":{"FileName":"/home/julien/tmp/SonarLintTest/SonarLintTest/Assembly-CSharp.csproj","Warnings":[],"Errors":[]},"Seq":87,"Type":"event"}
Omnisharp: [INFORMATION] Adding project '/home/julien/tmp/SonarLintTest/SonarLintTest/Assembly-CSharp.csproj'
Omnisharp: [INFORMATION] Update project: Assembly-CSharp
Omnisharp: [DEBUG] .editorconfig files were configured by the project Assembly-CSharp but will not be respected because the feature is switched off in OmniSharp. Enable .editorconfig support in OmniSharp to take advantage of them.
Omnisharp: [DEBUG] Cache miss /home/julien/.local/share/JetBrains/Rider2021.2/sonarlint-intellij/omnisharp/linux/lib/mono/gac/System.ComponentModel.Composition/4.0.0.0__b77a5c561934e089/System.ComponentModel.Composition.dll
Omnisharp: [DEBUG] Adding reference '/home/julien/.local/share/JetBrains/Rider2021.2/sonarlint-intellij/omnisharp/linux/lib/mono/gac/System.ComponentModel.Composition/4.0.0.0__b77a5c561934e089/System.ComponentModel.Composition.dll' to 'Assembly-CSharp'.
Omnisharp: [DEBUG] Cache miss /home/julien/.local/share/JetBrains/Rider2021.2/sonarlint-intellij/omnisharp/linux/lib/mono/gac/System.Core/4.0.0.0__b77a5c561934e089/System.Core.dll
Omnisharp: [DEBUG] Adding reference '/home/julien/.local/share/JetBrains/Rider2021.2/sonarlint-intellij/omnisharp/linux/lib/mono/gac/System.Core/4.0.0.0__b77a5c561934e089/System.Core.dll' to 'Assembly-CSharp'.
Omnisharp: [DEBUG] Cache miss /home/julien/.local/share/JetBrains/Rider2021.2/sonarlint-intellij/omnisharp/linux/lib/mono/gac/System.Data/4.0.0.0__b77a5c561934e089/System.Data.dll
Omnisharp: [DEBUG] Adding reference '/home/julien/.local/share/JetBrains/Rider2021.2/sonarlint-intellij/omnisharp/linux/lib/mono/gac/System.Data/4.0.0.0__b77a5c561934e089/System.Data.dll' to 'Assembly-CSharp'.
Omnisharp: [DEBUG] Cache miss /home/julien/.local/share/JetBrains/Rider2021.2/sonarlint-intellij/omnisharp/linux/lib/mono/gac/System/4.0.0.0__b77a5c561934e089/System.dll
Omnisharp: [DEBUG] Adding reference '/home/julien/.local/share/JetBrains/Rider2021.2/sonarlint-intellij/omnisharp/linux/lib/mono/gac/System/4.0.0.0__b77a5c561934e089/System.dll' to 'Assembly-CSharp'.
Omnisharp: [DEBUG] Cache miss /home/julien/.local/share/JetBrains/Rider2021.2/sonarlint-intellij/omnisharp/linux/lib/mono/gac/System.IO.Compression/4.0.0.0__b77a5c561934e089/System.IO.Compression.dll
Omnisharp: [DEBUG] Adding reference '/home/julien/.local/share/JetBrains/Rider2021.2/sonarlint-intellij/omnisharp/linux/lib/mono/gac/System.IO.Compression/4.0.0.0__b77a5c561934e089/System.IO.Compression.dll' to 'Assembly-CSharp'.
Omnisharp: [DEBUG] Cache miss /home/julien/.local/share/JetBrains/Rider2021.2/sonarlint-intellij/omnisharp/linux/lib/mono/gac/System.IO.Compression.FileSystem/4.0.0.0__b77a5c561934e089/System.IO.Compression.FileSystem.dll
Omnisharp: [DEBUG] Adding reference '/home/julien/.local/share/JetBrains/Rider2021.2/sonarlint-intellij/omnisharp/linux/lib/mono/gac/System.IO.Compression.FileSystem/4.0.0.0__b77a5c561934e089/System.IO.Compression.FileSystem.dll' to 'Assembly-CSharp'.
Omnisharp: [DEBUG] Cache miss /home/julien/.local/share/JetBrains/Rider2021.2/sonarlint-intellij/omnisharp/linux/lib/mono/gac/System.Net.Http/4.0.0.0__b03f5f7f11d50a3a/System.Net.Http.dll
Omnisharp: [DEBUG] Adding reference '/home/julien/.local/share/JetBrains/Rider2021.2/sonarlint-intellij/omnisharp/linux/lib/mono/gac/System.Net.Http/4.0.0.0__b03f5f7f11d50a3a/System.Net.Http.dll' to 'Assembly-CSharp'.
Omnisharp: [DEBUG] Cache miss /home/julien/.local/share/JetBrains/Rider2021.2/sonarlint-intellij/omnisharp/linux/lib/mono/gac/System.Numerics/4.0.0.0__b77a5c561934e089/System.Numerics.dll
Omnisharp: [DEBUG] Adding reference '/home/julien/.local/share/JetBrains/Rider2021.2/sonarlint-intellij/omnisharp/linux/lib/mono/gac/System.Numerics/4.0.0.0__b77a5c561934e089/System.Numerics.dll' to 'Assembly-CSharp'.
Omnisharp: [DEBUG] Cache miss /home/julien/.local/share/JetBrains/Rider2021.2/sonarlint-intellij/omnisharp/linux/lib/mono/gac/System.Numerics.Vectors/4.0.0.0__b03f5f7f11d50a3a/System.Numerics.Vectors.dll
Omnisharp: [DEBUG] Adding reference '/home/julien/.local/share/JetBrains/Rider2021.2/sonarlint-intellij/omnisharp/linux/lib/mono/gac/System.Numerics.Vectors/4.0.0.0__b03f5f7f11d50a3a/System.Numerics.Vectors.dll' to 'Assembly-CSharp'.
Omnisharp: [DEBUG] Cache miss /home/julien/.local/share/JetBrains/Rider2021.2/sonarlint-intellij/omnisharp/linux/lib/mono/gac/System.Runtime.Serialization/4.0.0.0__b77a5c561934e089/System.Runtime.Serialization.dll
Omnisharp: [DEBUG] Adding reference '/home/julien/.local/share/JetBrains/Rider2021.2/sonarlint-intellij/omnisharp/linux/lib/mono/gac/System.Runtime.Serialization/4.0.0.0__b77a5c561934e089/System.Runtime.Serialization.dll' to 'Assembly-CSharp'.
Omnisharp: [DEBUG] Cache miss /home/julien/.local/share/JetBrains/Rider2021.2/sonarlint-intellij/omnisharp/linux/lib/mono/gac/System.Transactions/4.0.0.0__b77a5c561934e089/System.Transactions.dll
Omnisharp: [DEBUG] Adding reference '/home/julien/.local/share/JetBrains/Rider2021.2/sonarlint-intellij/omnisharp/linux/lib/mono/gac/System.Transactions/4.0.0.0__b77a5c561934e089/System.Transactions.dll' to 'Assembly-CSharp'.
Omnisharp: [DEBUG] Cache miss /home/julien/.local/share/JetBrains/Rider2021.2/sonarlint-intellij/omnisharp/linux/lib/mono/gac/System.Xml/4.0.0.0__b77a5c561934e089/System.Xml.dll
Omnisharp: [DEBUG] Adding reference '/home/julien/.local/share/JetBrains/Rider2021.2/sonarlint-intellij/omnisharp/linux/lib/mono/gac/System.Xml/4.0.0.0__b77a5c561934e089/System.Xml.dll' to 'Assembly-CSharp'.
Omnisharp: [DEBUG] Cache miss /home/julien/.local/share/JetBrains/Rider2021.2/sonarlint-intellij/omnisharp/linux/lib/mono/gac/System.Xml.Linq/4.0.0.0__b77a5c561934e089/System.Xml.Linq.dll
Omnisharp: [DEBUG] Adding reference '/home/julien/.local/share/JetBrains/Rider2021.2/sonarlint-intellij/omnisharp/linux/lib/mono/gac/System.Xml.Linq/4.0.0.0__b77a5c561934e089/System.Xml.Linq.dll' to 'Assembly-CSharp'.
{"Event":"ProjectConfiguration","Body":{"ProjectId":"02b82ce7-bb27-3886-beb4-5c12457e13b7","SessionId":"-2088481256","OutputKind":2,"ProjectCapabilities":["CSharp","Managed","ReferencesFolder","LanguageService","RelativePathDerivedDefaultNamespace","AssemblyReferences","COMReferences","ProjectReferences","SharedProjectReferences","OutputGroups","AllTargetOutputGroups","VisualStudioWellKnownOutputGroups","SingleFileGenerators","DeclaredSourceItems","UserSourceItems","BuildWindowsDesktopTarget"],"TargetFrameworks":["v4.7.1"],"SdkVersion":"-873521827","References":["51d17f0bd2990e1e","13bbf2cbcdb96469","5faa84ffcc646d16","6001a9b860f7e43","4bca77302b767821","b42e3bf9c2caf9d","7a37191fa2429c0","4b3556ed143bb1a1","990c07b3a694f061","6f6cd086b29443f","d373f3c4566c70c6","6a5eaa177b0b8d54","add48a46678bd09d"],"FileExtensions":["-1257278712"],"FileCounts":[2]},"Seq":117,"Type":"event"}
Solution/project configuration loaded
Omnisharp: [DEBUG] ************ Request ************
{
"Type": "request",
"Seq": 1,
"Command": "/sonarlint/config",
"Arguments": {
"activeRules": [
{
"ruleId": "S1854"
},
[...]
]
}
}
Omnisharp: [DEBUG] ************ Response (29.9432ms) ************
{
"Request_seq": 1,
"Command": "/sonarlint/config",
"Running": true,
"Success": true,
"Message": null,
"Body": true,
"Seq": 121,
"Type": "response"
}
1 source file to be analyzed
Omnisharp: [DEBUG] ************ Request ************
{
"Type": "request",
"Seq": 2,
"Command": "/updatebuffer",
"Arguments": {
"FileName": "/home/julien/tmp/SonarLintTest/SonarLintTest/Assets/Snake.cs",
"Buffer": "using System.Collections;\r\nusing System.Collections.Generic;\r\nusing UnityEngine;\r\n\r\npublic class Snake : MonoBehaviour\r\n{\r\n // Start is called before the first frame update\r\n void Start()\r\n {\r\n \r\n }\r\n\r\n // Update is called once per frame\r\n void Update()\r\n {\r\n // TODO Remove this\r\n }\r\n}\r\n"
}
}
Omnisharp: [DEBUG] Updating file /home/julien/tmp/SonarLintTest/SonarLintTest/Assets/Snake.cs with new text:
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class Snake : MonoBehaviour
{
// Start is called before the first frame update
void Start()
{
}
// Update is called once per frame
void Update()
{
// TODO Remove this
}
}
Omnisharp: [DEBUG] ************ Response (21.1867ms) ************
{
"Request_seq": 2,
"Command": "/updatebuffer",
"Running": true,
"Success": true,
"Message": null,
"Body": true,
"Seq": 124,
"Type": "response"
}
Omnisharp: [DEBUG] ************ Request ************
{
"Type": "request",
"Seq": 3,
"Command": "/sonarlint/codecheck",
"Arguments": {
"FileName": "/home/julien/tmp/SonarLintTest/SonarLintTest/Assets/Snake.cs"
}
}
Omnisharp: [DEBUG] Attempting to resolve 'SonarAnalyzer.CSharp.resources, Version=8.26.0.0, Culture=fr-FR, PublicKeyToken=c5b62af9de6d7244'
Omnisharp: [DEBUG] FAILURE: Could not locate '/home/julien/.local/share/JetBrains/Rider2021.2/sonarlint-intellij/omnisharp/linux/omnisharp/.msbuild/Current/Bin/SonarAnalyzer.CSharp.resources.dll'.
Omnisharp: [DEBUG] Attempting to resolve 'SonarAnalyzer.CSharp.resources, Version=8.26.0.0, Culture=fr, PublicKeyToken=c5b62af9de6d7244'
Omnisharp: [DEBUG] FAILURE: Could not locate '/home/julien/.local/share/JetBrains/Rider2021.2/sonarlint-intellij/omnisharp/linux/omnisharp/.msbuild/Current/Bin/SonarAnalyzer.CSharp.resources.dll'.
Omnisharp: [INFORMATION] Solution initialized -> queue all documents for code analysis. Initial document count: 2.
Omnisharp: [DEBUG] Attempting to resolve 'SonarLint.OmniSharp.DotNet.Services.XmlSerializers, Version=1.0.0.0, Culture=neutral, PublicKeyToken=c5b62af9de6d7244'
Omnisharp: [DEBUG] FAILURE: Could not locate '/home/julien/.local/share/JetBrains/Rider2021.2/sonarlint-intellij/omnisharp/linux/omnisharp/.msbuild/Current/Bin/SonarLint.OmniSharp.DotNet.Services.XmlSerializers.dll'.
Omnisharp: [DEBUG] Attempting to resolve 'Microsoft.CodeAnalysis.resources, Version=3.11.0.0, Culture=fr-FR, PublicKeyToken=31bf3856ad364e35'
Omnisharp: [DEBUG] FAILURE: Could not locate '/home/julien/.local/share/JetBrains/Rider2021.2/sonarlint-intellij/omnisharp/linux/omnisharp/.msbuild/Current/Bin/Microsoft.CodeAnalysis.resources.dll'.
Omnisharp: [DEBUG] Attempting to resolve 'Microsoft.CodeAnalysis.resources, Version=3.11.0.0, Culture=fr, PublicKeyToken=31bf3856ad364e35'
Omnisharp: [DEBUG] FAILURE: Could not locate '/home/julien/.local/share/JetBrains/Rider2021.2/sonarlint-intellij/omnisharp/linux/omnisharp/.msbuild/Current/Bin/Microsoft.CodeAnalysis.resources.dll'.
Omnisharp: [DEBUG] ************ Response (1386.1523ms) ************
{
"Request_seq": 3,
"Command": "/sonarlint/codecheck",
"Running": true,
"Success": true,
"Message": null,
"Body": {
"QuickFixes": [
{
"AdditionalLocations": [],
"LogLevel": "Warning",
"Id": "S3903",
"Tags": [],
"FileName": "/home/julien/tmp/SonarLintTest/SonarLintTest/Assets/Snake.cs",
"Line": 5,
"Column": 14,
"EndLine": 5,
"EndColumn": 19,
"Text": "Move 'Snake' into a named namespace.",
"Projects": [
"Assembly-CSharp"
]
},
{
"AdditionalLocations": [],
"LogLevel": "Warning",
"Id": "S1186",
"Tags": [],
"FileName": "/home/julien/tmp/SonarLintTest/SonarLintTest/Assets/Snake.cs",
"Line": 8,
"Column": 10,
"EndLine": 8,
"EndColumn": 15,
"Text": "Add a nested comment explaining why this method is empty, throw a 'NotSupportedException' or complete the implementation.",
"Projects": [
"Assembly-CSharp"
]
},
{
"AdditionalLocations": [],
"LogLevel": "Warning",
"Id": "S1144",
"Tags": [
"Unnecessary"
],
"FileName": "/home/julien/tmp/SonarLintTest/SonarLintTest/Assets/Snake.cs",
"Line": 8,
"Column": 5,
"EndLine": 11,
"EndColumn": 6,
"Text": "Remove the unused private method 'Start'.",
"Projects": [
"Assembly-CSharp"
]
},
{
"AdditionalLocations": [],
"LogLevel": "Warning",
"Id": "S1144",
"Tags": [
"Unnecessary"
],
"FileName": "/home/julien/tmp/SonarLintTest/SonarLintTest/Assets/Snake.cs",
"Line": 14,
"Column": 5,
"EndLine": 17,
"EndColumn": 6,
"Text": "Remove the unused private method 'Update'.",
"Projects": [
"Assembly-CSharp"
]
},
{
"AdditionalLocations": [],
"LogLevel": "Warning",
"Id": "S1135",
"Tags": [],
"FileName": "/home/julien/tmp/SonarLintTest/SonarLintTest/Assets/Snake.cs",
"Line": 16,
"Column": 12,
"EndLine": 16,
"EndColumn": 16,
"Text": "Complete the task associated to this 'TODO' comment.",
"Projects": [
"Assembly-CSharp"
]
}
]
},
"Seq": 128,
"Type": "response"
}
Initializing metadata of file file:///home/julien/tmp/SonarLintTest/SonarLintTest/Assets/Snake.cs
1/1 source file has been analyzed
Execute Sensor: Sonar Secrets Detection Sensor
Done in 3896ms
Processed 5 issues
Found 5 issues
{"Event":"ProjectDiagnosticStatus","Body":{"Type":"background","Status":0,"ProjectFilePath":"/home/julien/tmp/SonarLintTest/SonarLintTest/Assembly-CSharp.csproj"},"Seq":142,"Type":"event"}
{"Event":"ProjectDiagnosticStatus","Body":{"Type":"background","Status":1,"ProjectFilePath":"/home/julien/tmp/SonarLintTest/SonarLintTest/Assembly-CSharp.csproj"},"Seq":145,"Type":"event"}