Error in SonarLint for IntelliJ on Rider

Environment:

  • Java: JetBrains s.r.o. 17.0.4
  • OS: Windows 11 amd64
  • IDE: JetBrains Rider 2022.2.2
  • SonarLint: 7.0.0.52289
com.jetbrains.rdclient.util.BackendException: Language MSBUILD_BUILD_SCRIPT is not found among Psi languages

--- EXCEPTION #1/2 [InvalidOperationException]
Message = “Language MSBUILD_BUILD_SCRIPT is not found among Psi languages”
ExceptionPath = Root.InnerException
ClassName = System.InvalidOperationException
Data.ThreadLocalDebugInfo = “
  property `MainProtocol.SolutionModel.solutions.[2].solutionLifecycle.fullStartupFinished` (4146975719304133276)
   -> map `MainProtocol.SolutionModel.solutions.[2].documentsOperationModel.documents` (10446186548216804285)
   -> RdDispatcher::FlushAll
”
HResult = COR_E_INVALIDOPERATION=80131509
Source = Rider.Backend
StackTraceString = “
  at JetBrains.Rider.Backend.Features.Documents.SandboxDocumentsHelper.GetPsiLanguage(SandboxInfo sandboxInfo)
     at JetBrains.Rider.Backend.Features.Documents.SandboxDocumentsHelper.InitByCloning(RdDocumentId documentId, IDocumentViewModel documentModel, RiderDocument sandboxDocument, DocumentHostBase documentHost, SandboxInfo sandboxInfo, RdDocumentId cloneFrom)
     at JetBrains.Rider.Backend.Features.Documents.SandboxDocumentsHelper.<>c__DisplayClass14_0.<InitSandboxDocumentInternal>g__InitSandboxContext|1()
     at JetBrains.Rider.Backend.Features.Documents.SandboxDocumentsHelper.InitSandboxDocumentInternal(RdDocumentId documentId, IDocumentViewModel documentModel, Lifetime lifetime, RiderDocument sandboxDocument, IProjectFile sandboxProjectFile, DocumentHostBase documentHost)

Hi,

Could you please provide the full error trace to us if you still have it? Our automatic reporter is forced to truncate it, and I don’t see any SonarLint-related content.

Thanks!