No problem found

Good morning,

  • Operating system: Mac OS
  • SonarQube for VS Code plugin version: 4.16
  • Programming language you’re coding in: C#
  • Is connected mode used: No

And a thorough description of the problem / question:

On recent version of SonarLint, I don’t get any errors or issues on any of my script. Even if I implement specific issues which should be raised, nothing happens.

What can be the issue here ? VS Code, .NET, SonarLint are up to date.

Hi,

Would you mind posting your logs?

 
Thx,
Ann

Is there a way I can send it to you in private?

Hi,

Feel free to redact as necessary.

 
Ann

How can I send you the file in private ?

Hi any help ?

Hi,

Please post your redacted logs here.

 
Thx,
Ann

Again I can’t share logs in public, would you mind telling me how to send it to you in private ?

Thanks,

Hello @UnityCoder,

I initiated a private message and thank you for sharing the logs! :bowing_woman:

I see the error in the analysis logs

Timeout waiting for the solution to be loaded.

Do you have C# dev kit or the C# extension installed in VS Code? Could you try to add the following setting to your USER settings JSON and see how it goes?

    "sonarlint.analyzerProperties": {
       "sonar.cs.internal.loadProjectsTimeout": "120"
    },

Also to note, the logs that you shared seem to start off somewhere in the middle. For full context we would need logs from the very beginning. It should start with something like Executing /Library/Java/JavaVirtualMachines/jdk-17.jdk/Contents/Home/bin/java.

All the best,
Sophio

Hello @sophio.japharidze,

This seems to work, the error I implemented is now detected ! What was the issue ?

Thanks !

Hello,

What was the issue ?

I don’t know :smiley: I guess your project structure is large/complex and the C# analyzer did not have enough time to load it? See the setting description from our docs:

omnisharp.projectLoadTimeout

  • Default value: 60
  • Description: Maximum waiting time (in seconds) for OmniSharp to load all projects (not relevant if sonar.cs.internal.loadProjectsOnDemand is set to true).

This setting is for the C# extension in VS Code, that SonarQube for IDE later re-uses and translates into the sonar.cs.internal.loadProjectsTimeout property.

Hope that helps,
Sophio