SonarQube IDE Support for SLNX new Solution file type

Please provide

  • Operating system:Windows11 24H2
  • SonarQube for IntelliJ plugin version:10.21.0.81149
  • IntelliJ version: 2025.1
  • Programming language you’re coding in: C#
  • Is connected mode used:No
    • SonarQube Cloud, SonarQube Server, or SonarQube Community Build? (if one of the latter two, which version?):

And a thorough description of the problem / question:
I got the following error when i try to create a report of a solution with slnx instead of a sln file type:

 [2025-04-25T12:06:03.051] [sonarlint-analysis-scheduler] INFO org.sonarsource.sonarlint.omnisharp.OmnisharpServerController - Starting OmniSharp...
 [2025-04-25T12:06:03.268] [omnisharp-stderr-stream-consumer-6792] ERROR org.sonarsource.sonarlint.omnisharp.OmnisharpServerController - System.ArgumentException: OmniSharp only supports being launched with a directory path or a path to a solution (.sln, .slnf) file. (Parameter 'path')
 [2025-04-25T12:06:03.268] [omnisharp-stderr-stream-consumer-6792] ERROR org.sonarsource.sonarlint.omnisharp.OmnisharpServerController -    at OmniSharp.Services.OmniSharpEnvironment..ctor(String path, Int32 hostPid, LogLevel logLevel, String[] additionalArguments) in /home/vsts/work/1/s/src/OmniSharp.Host/Services/OmniSharpEnvironment.cs:line 38
 [2025-04-25T12:06:03.268] [omnisharp-stderr-stream-consumer-6792] ERROR org.sonarsource.sonarlint.omnisharp.OmnisharpServerController -    at OmniSharp.CommandLineApplicationExtensions.CreateEnvironment(CommandLineApplication application) in /home/vsts/work/1/s/src/OmniSharp.Host/CommandLineApplicationExtensions.cs:line 12
 [2025-04-25T12:06:03.268] [omnisharp-stderr-stream-consumer-6792] ERROR org.sonarsource.sonarlint.omnisharp.OmnisharpServerController -    at OmniSharp.Stdio.Driver.Program.<>c__DisplayClass0_1.<Main>b__1() in /home/vsts/work/1/s/src/OmniSharp.Stdio.Driver/Program.cs:line 49
 [2025-04-25T12:06:03.268] [omnisharp-stderr-stream-consumer-6792] ERROR org.sonarsource.sonarlint.omnisharp.OmnisharpServerController -    at OmniSharp.CommandLineApplication.<>c__DisplayClass12_0.<OnExecute>b__0() in /home/vsts/work/1/s/src/OmniSharp.Host/CommandLineApplication.cs:line 92
 [2025-04-25T12:06:03.268] [omnisharp-stderr-stream-consumer-6792] ERROR org.sonarsource.sonarlint.omnisharp.OmnisharpServerController -    at McMaster.Extensions.CommandLineUtils.CommandLineApplication.<>c__DisplayClass146_0.<OnExecute>b__0(CancellationToken _)
 [2025-04-25T12:06:03.268] [omnisharp-stderr-stream-consumer-6792] ERROR org.sonarsource.sonarlint.omnisharp.OmnisharpServerController -    at McMaster.Extensions.CommandLineUtils.CommandLineApplication.ExecuteAsync(String[] args, CancellationToken cancellationToken)
 [2025-04-25T12:06:03.268] [omnisharp-stderr-stream-consumer-6792] ERROR org.sonarsource.sonarlint.omnisharp.OmnisharpServerController -    at McMaster.Extensions.CommandLineUtils.CommandLineApplication.Execute(String[] args)
 [2025-04-25T12:06:03.268] [omnisharp-stderr-stream-consumer-6792] ERROR org.sonarsource.sonarlint.omnisharp.OmnisharpServerController -    at OmniSharp.CommandLineApplication.Execute(String[] args) in /home/vsts/work/1/s/src/OmniSharp.Host/CommandLineApplication.cs:line 65
 [2025-04-25T12:06:03.268] [omnisharp-stderr-stream-consumer-6792] ERROR org.sonarsource.sonarlint.omnisharp.OmnisharpServerController -    at OmniSharp.Stdio.Driver.Program.<>c__DisplayClass0_0.<Main>b__0() in /home/vsts/work/1/s/src/OmniSharp.Stdio.Driver/Program.cs:line 84
 [2025-04-25T12:06:03.268] [omnisharp-stderr-stream-consumer-6792] ERROR org.sonarsource.sonarlint.omnisharp.OmnisharpServerController -    at OmniSharp.HostHelpers.Start(Func`1 action) in /home/vsts/work/1/s/src/OmniSharp.Host/HostHelpers.cs:line 30
 [2025-04-25T12:06:03.275] [omnisharp-is-alive-watcher-6792] INFO org.sonarsource.sonarlint.omnisharp.OmnisharpServerController - Omnisharp process terminated
 [2025-04-25T12:06:03.275] [sonarlint-analysis-scheduler] ERROR sonarlint - Error executing sensor: 'OmniSharp'
java.lang.IllegalStateException: Unable to start OmniSharp
	at org.sonarsource.sonarlint.omnisharp.OmnisharpSensor.execute(OmnisharpSensor.java:98)
	at org.sonarsource.sonarlint.core.analysis.container.analysis.sensor.SensorsExecutor.executeSensor(SensorsExecutor.java:101)
	at org.sonarsource.sonarlint.core.analysis.container.analysis.sensor.SensorsExecutor.executeSensors(SensorsExecutor.java:91)
	at org.sonarsource.sonarlint.core.analysis.container.analysis.sensor.SensorsExecutor.execute(SensorsExecutor.java:78)
	at org.sonarsource.sonarlint.core.analysis.container.analysis.AnalysisContainer.doAfterStart(AnalysisContainer.java:122)
	at org.sonarsource.sonarlint.core.plugin.commons.container.SpringComponentContainer.startComponents(SpringComponentContainer.java:180)
	at org.sonarsource.sonarlint.core.plugin.commons.container.SpringComponentContainer.execute(SpringComponentContainer.java:159)
	at org.sonarsource.sonarlint.core.analysis.container.module.ModuleContainer.analyze(ModuleContainer.java:75)
	at org.sonarsource.sonarlint.core.analysis.command.AnalyzeCommand.doRunAnalysis(AnalyzeCommand.java:178)
	at org.sonarsource.sonarlint.core.analysis.command.AnalyzeCommand.doExecute(AnalyzeCommand.java:146)
	at org.sonarsource.sonarlint.core.analysis.command.AnalyzeCommand.execute(AnalyzeCommand.java:132)
	at org.sonarsource.sonarlint.core.analysis.command.AnalyzeCommand.lambda$execute$0(AnalyzeCommand.java:124)
	at org.sonarsource.sonarlint.core.commons.progress.TaskManager.runTask(TaskManager.java:36)
	at org.sonarsource.sonarlint.core.analysis.command.AnalyzeCommand.execute(AnalyzeCommand.java:123)
	at org.sonarsource.sonarlint.core.analysis.AnalysisScheduler.executeQueuedCommands(AnalysisScheduler.java:75)
	at java.base/java.lang.Thread.run(Thread.java:1583)
Caused by: java.lang.IllegalStateException: Unable to start the Omnisharp server: Process terminated unexpectedly
	at org.sonarsource.sonarlint.omnisharp.OmnisharpServerController.lazyStart(OmnisharpServerController.java:183)
	at org.sonarsource.sonarlint.omnisharp.OmnisharpSensor.execute(OmnisharpSensor.java:91)
	... 15 more
Caused by: java.lang.IllegalStateException: Process terminated unexpectedly
	at org.sonarsource.sonarlint.omnisharp.OmnisharpServerController$ServerStateMachine.stopped(OmnisharpServerController.java:116)
	at org.sonarsource.sonarlint.omnisharp.OmnisharpServerController$ServerStateMachine.lambda$processStarted$0(OmnisharpServerController.java:82)
	at java.base/java.util.concurrent.CompletableFuture.uniWhenComplete(CompletableFuture.java:863)
	at java.base/java.util.concurrent.CompletableFuture$UniWhenComplete.tryFire(CompletableFuture.java:841)
	at java.base/java.util.concurrent.CompletableFuture.postComplete(CompletableFuture.java:510)
	at java.base/java.util.concurrent.CompletableFuture.complete(CompletableFuture.java:2179)
	at org.sonarsource.sonarlint.omnisharp.ProcessWrapper.lambda$startWaitForThread$2(ProcessWrapper.java:84)
	... 1 more

I think the support for the new solution file type is not implemented.

1 Like

Hello,
Indeed we don’t support yet this new solution file type. It is not yet on our roadmap but the JetBrains team is aware of your request and we’ll keep a record of it to prioritize it in the future.
We will keep you updated.
Best regards,
Farah

2 Likes

Hello Farah,

Thank for your reply, hope to get feedback, keep the good work!

The workaround for now if anyone is interested or have this problem on doing a solution report/analyze:

  • Save solution as sln
  • Analyze solution
  • Fix if needed/wanted
  • Then if you want to save as slnx again
  • After that delete sln if file is still on your solution and you don’t want it (check if slnx is there before deleting!).

Kind Regards

1 Like

Dear Farah,

Just wanted to let you known that we also use the new SLNX format and it is fully supported in our .NET 9 pipeline, it works in VS 2022 but not as Rider plugin.

We appreciate any updates on your end.

Thanks
Best regards,
Markus

Months have passed, any updates on this subject?

We recently switched over to slnx and expected it to be well supported by now but atleast for SonarQube it seems still unsupported.

Hey @ausernamedtom, thanks for bringing this up again!

I’ve spent some time investigating support for .slnx files and found a workaround that should enable support for .slnx projects in both Rider and VS Code. This will be included in our next release.

I’d really appreciate your feedback once it’s available - please let me know if you run into any issues. I’ll keep you posted as soon as the update goes live.

1 Like