-
Notifications
You must be signed in to change notification settings - Fork 38.9k
Absolute file paths in Problems tab lose their initial slash #44370
Copy link
Copy link
Closed
Description
- VSCode Version: 1.20.1
- OS Version: Linux
Steps to Reproduce:
- Install the C/C++ IntelliSense extension.
- Have a task/Makefile that invokes gcc with an absolute file path, e.g:
/tmp/blah.c; use the"problemMatcher": "$gcc", provided by the IntelliSense extension. - Have a warning or error in
/tmp/blah.c. - Build.
- Open the Problems tab, the file is displayed as
tmp/blah.cinstead of/tmp/blah.c. Trying to open the file will fail, because the editor cannot locate the non-existent file/home/krys-g/work/tmp/blah.c.
Interestingly, clicking on the file link in the Terminal tab opens the file just fine. The problem lies only with the Problems tab, where the initial slash is dropped.
Does this issue occur when all extensions are disabled? N/A
The extension is required to get the $gcc problem matcher.
However, I reproduce the issue with all the other extensions disabled.
The pattern matching of $gcc, as introduced by microsoft/vscode-cpptools#854, looks correct to me, therefore I believe the problem is with Visual Studio Code itself, not the extension.
"pattern": {
"regexp": "^(.*):(\\d+):(\\d+):\\s+(warning|error):\\s+(.*)$",
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels