Skip to content
This repository was archived by the owner on Sep 26, 2024. It is now read-only.
This repository was archived by the owner on Sep 26, 2024. It is now read-only.

Navigation to definition or references fails on Windows #27

@HughG

Description

@HughG

I'm using extension version 0.2.1, VSCode version 1.78.2, on Windows 10.

I'm not able to jump to definitions or references from a need ID in an option like links. Due to #26 my configured workspace paths are using relative paths like source and build/needs/needs.json, without ${workspaceFolder}. It may be that this issue would be fixed if #26 were fixed.

If I add ${workspaceFolder}, I get errors like the following in the extension's output, and there's nothing from the extension UI for hover or navigation.

[Error - 13:26:46] Given needs.json not found: /c%3A/Projects/Personal/sphinx-needs-vscode-ext-play/build/needs/needs.json
[Warn - 13:26:48] No needs info extracted from needs json. No completion feature.
[Warn - 13:26:51] No needs info extracted from needs json. No Hover feature.

If I leave out ${workspaceFolder} then, for a file in <my_workspace>/source/foo.rst, VSCode tries to open \source\foo.rst. As you may know, on Windows this means X:\source\foo.rst where X is the current drive of the VSCode process.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions