I get this message when I click on a warning. This is a screenshot of the case.
The error reads,
Unable to open 'warning.cpp': Unable to read file '
/Users/dimen/code/C++/Users/dimen/code/C++/warning.cpp
' (Error: Unable to resolve non-existing file '/Users/dimen/code/C++/Users/dimen/code/C++/warning.cpp
').
My script is located in /Users/dimen/code/C++/warning.cpp
so vscode reiterates the path for some reason.
I suspected that the linter setting must've been written erroneously but I'm not sure where I should edit. As some side notes,
tasks.json
have been customized so that all the builds go inside the build
folderYou need to edit the problemMatcher
part of tasks.json
so that it has a variable called fileLocation
that is set to absolute
. Here is an example of what it should look like:
"problemMatcher": {
"base" : "$gcc",
"fileLocation" : "absolute"
}
I hope this helps.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With