Vscode: Invalid path for multi-root workspace

Created on 13 Jan 2019  Â·  7Comments  Â·  Source: microsoft/vscode

Issue Type: Bug

2019-01-13_14-14-06

Output panel contains a valid path:

/Users/aleksi/Code/My/vscode-bug-multiroot/project-2/project2.go

When ⌘+clicked, it tries to use an invalid path:

file:///Users/aleksi/Code/My/vscode-bug-multiroot/project/-2/project2.go

Note the extra / before -2. That seems to happen only with multi-root workspace when one root path is a prefix of another root path.

Example repo: https://github.com/AlekSi/vscode-bug-multiroot
Steps to reproduce:

  1. git clone https://github.com/AlekSi/vscode-bug-multiroot.git
  2. code vscode-bug-multiroot/bug.code-workspace
  3. Install Go plugin (but that issue is not specific for it).
  4. Open project2_test.go, click CodeLens' "run test".
  5. go test runs go vet and notices a bug in project2.go. ⌘+click on the file path in the Output panel.

VS Code version: Code 1.30.2 (61122f88f0bf01e2ac16bdb9e1bc4571755f5bd8, 2019-01-07T22:48:31.260Z)
OS version: Darwin x64 18.2.0

*out-of-scope bug output

All 7 comments

Input from @isidorn from the corresponding issue in the vscode-go repo:

Might be some link detection issue.
Code pointer so you can investigate more and potentialy provide PRs
https://github.com/Microsoft/vscode/blob/757c5feacc2e2c322b1d8e0ac29d02a8d06179e9/src/vs/workbench/parts/output/common/outputLinkComputer.ts#L58

This issue is being closed to keep the number of issues in our inbox on a manageable level, we are closing issues that are not going to be addressed in the foreseeable future: We look at the number of votes the issue has received and the number of duplicate issues filed. More details here. If you disagree and feel that this issue is crucial: We are happy to listen and to reconsider.

If you wonder what we are up to, please see our roadmap and issue reporting guidelines.

Thanks for your understanding and happy coding!

This issue is being closed to keep the number of issues in our inbox on a manageable level, we are closing issues that are not going to be addressed in the foreseeable future: We look at the number of votes the issue has received and the number of duplicate issues filed. More details here. If you disagree and feel that this issue is crucial: We are happy to listen and to reconsider.

If you wonder what we are up to, please see our roadmap and issue reporting guidelines.

Thanks for your understanding and happy coding!

This issue affects a group of people, has more than 10 :+1:, has steps to reproduce, and self-contained example. The fix is likely to be small and self-contained too. According to https://aka.ms/vscode-out-of-scope it should be reopened. @jrieken @isidorn @bpasero please reopen.

Sure, we can reopen.

We closed this issue because we don't plan to address it in the foreseeable future. You can find more detailed information about our decision-making process here. If you disagree and feel that this issue is crucial: We are happy to listen and to reconsider.

If you wonder what we are up to, please see our roadmap and issue reporting guidelines.

Thanks for your understanding and happy coding!

I re-checked it, and it works now

Was this page helpful?
0 / 5 - 0 ratings