useblocks / sphinx-needs-vscode

https://sphinx-needs-vscode.useblocks.com
MIT License
3 stars 2 forks source link

workspaceFolder path issue under Windows #26

Open eymeric-giraux opened 1 year ago

eymeric-giraux commented 1 year ago

Under Windows, it seems that the path using ${workspaceFolder}/ generates an issue. See below.

grafik

The problem is solved when using relative path.

HughG commented 1 year ago

Yep, I've just been hit by this, too. Extension version 0.2.1, VSCode version 1.78.2.

To clarify the workaround by @eymeric-giraux, I solved the problem by using the following settings.

{
    "sphinx-needs.needsJson": "build/needs/needs.json",
    "sphinx-needs.srcDir": "source"
}

BUT doing this makes the "Sphinx-Needs Explorer" view go "blank", whereas if I put

{
    "sphinx-needs.needsJson": "${workspaceFolder}/build/needs/needs.json",
    "sphinx-needs.srcDir": "${workspaceFolder}/source"
}

then the explorer view works, but the above error appears and auto-complete, etc., don't work.