Sonar server reports error about workspace folder

Hi all,

I am using coc-sonarlint plugin in vim. Everything worked well until recently, when I started getting the following error in the server logs (verbose already enabled)

ERROR [core-workspaceFolder] - Invalid folder: undefined, full path required.

This is reported by the C++ analyzer only. I have set

sonarlint.pathToCompileCommands = “${workspaceFolder}/compile_commands.json”.

Even when I hardcode the ${workspaceFolder} as an absolute path in the above string, the error can still occur.

Note that sometimes everything works well – the bug doesn’t always occur.

Hi,

Welcome to the community!

Unfortunately, this is a community-maintained plugin. We’re not going to be able to help you.

 
:frowning:
Ann

Hi Ann!

The error is reported by the sonar server, not the plugin itself – unless I missed sth?

The bug could still lie in the plugin itself. Even in this case, it would still be useful to know more about the error, so as to find a workaround and report a solid issue to the plugin’s page.

Hi,

Yeah. It would. :sweat_smile:

But you say verbose logs are already enabled. Did you get any more detail than you’ve already provided?

 
Ann

Oh in fact I mistook the error message as being reported by sonar server, however, it is reported by the plugin itself, just figured it out :grin: So false alarm here!

2 Likes