I have connected the extension to my project and have run an analysis in devops on a branch - which gave me back some issues in the SonarQube Cloud Portal.
I noticed that there’s an ‘Open in IDE’ button on each issue. Upon clicking that I get a success toast in the bottom left hand corner saying success.
Unfortunately, in my IDE the file & line never opens, but I did notice a banner saying there was an issue with opening the file.
Upon inspection of the logs, it looks like it is expecting my repository to be located directly on the C: drive like so:
‘**C:**MyProjectName\Controllers\FileName.cs’.
In reality it’s under:
‘**C:\Users\MyName\source\repos**MyProjectName\Controllers\FileName.cs’
Is there any way to change this in the extension settings so that it knows the proper path to the solution files? Is there a reason it would assume the repository is located directly on the C: drive?
This is the standard path for all of the developers on my team (except it uses their name respectively), so I can’t just move the repository directly to the C: drive.
Normally the fact that the root is set to the drive’s root should not matter. We do it for some internal reasons, but all file paths are supposed to be relative to the root (and produce the correct absolute path in combination with said root).
Can you please provide the relative path in SonarQube Cloud project to the file you’re trying to open? I think our server-to-local path translation failed for some reason here.
Seems like path translation did indeed fail idePrefix should normally be equal to the segment of the path between the disk root and the server analysis root
Could you try move your project under a different directory and see if the issue is still there? In the meantime I will try to create a build of the extension with more debug logs to try to understand why it happened