When trying to run linters analysis on Cursor on C# file, nothing was showing.
Looking at the output logs of the extensions, it appears that the folder “omnisharp” in /Users/${USER}/.cursor/extensions/sonarsource.sonarlint-vscode-4.38.1 was missing.
I try uninstall the extensions but when I try to reinstall from marketplace, it wasnt showing (probably a thing from Cursor). I installed the extension via the vsix file from the open-vsx store.
Same issue. I went into vs-code extension folder /Users/${USER}/.vscode/extensions/sonarsource.sonarlint-vscode-4.38.1 and found the omnisharp. I copied it to the cursor sonar extensions folder and it worked.
But afraid that on update, or reinstall, it might be missing again on cursor or other ide using open-vsx store.
indeed the version of the extension uploaded to OpenVSX does not include Omnisharp due to the size limitations of the marketplace (see this ticket).
Maybe someone from Sonar has any intel on whether or not this is planned to be handled in the future (similar to how C/C++ analyzers are downloaded post-install).
And you are right, when updating in Cursor the newly downloaded extension wont have Omnisharp included either. The move to copy over from the VSCode-installed extension is smart tho, kudos
I think this is the only “workaround” for now.
Hey ! Thank you for the answer and the link to the ticket.
I will try to look into it and keep an eye.
Might even try to see if there is a way to still include omnisharp with respecting the open-vsx limitations.
Maybe a post-install download with user confirmation ?
Or conditional on the first time the plugin needs omnisharp.
Hello @mouradhm, welcome to Sonar Community and thanks a lot for the post!
Indeed, starting v4.35, the OpenVSX distributions do not support C# analysis out-of-the-box. Workaround is described in the release announcement and our releases page.
Please be assured that this is only a temporary. Reducing extension size & downloading analyzers on-demand is our top priority.
Thanks again for the feedback and please keep it coming!
All the best,
Sophio