vscode-cpptools
vscode-cpptools copied to clipboard
#4573 regressed on 1.11.5
Environment
- OS and Version: windows 11
- VS Code Version: 1.70.2
- C/C++ Extension Version: 1.11.5
- WSL remote: Ubuntu 20.04
Bug Summary and Steps to Reproduce
Bug Summary: syntax error check doesn't work when opening a file through a symbolic link
Steps to reproduce:
- create a symbolic link from /mnt/d/workspaces to /workspaces
- open /workspaces in vscode(wsl)
- create a.cpp
- see error
Expected behavior
Syntax error check should also work well when opening a file through the symbolic link
Code sample and Logs
- code sample
#include <bits/stdc++.h>
#define ll long long
#define fir(i, st, ed) for(auto i = st; i < ed; ++i)
using namespace std;
int main() {
cout << ed;
return 0;
}
- C/C++: Log
textDocument/hover: /workspaces/algorithm/test.cpp (id: 314)
cpptools/textEditorSelectionChange
textDocument/documentHighlight: /workspaces/algorithm/test.cpp (id: 315)
cpptools/textEditorSelectionChange
cpptools/activeDocumentChange: /workspaces/algorithm/test.cpp
cpptools/getCodeActions: /workspaces/algorithm/test.cpp (id: 316)
textDocument/didChange: /workspaces/algorithm/test.cpp
cpptools/textEditorSelectionChange
textDocument/didChange: /workspaces/algorithm/test.cpp
cpptools/textEditorSelectionChange
textDocument/completion: /workspaces/algorithm/test.cpp (id: 317)
auto_complete::handle_completion: file:///workspaces/algorithm/test.cpp (7:12)
Offering completion
sending 1 changes to server
sending 1 changes to server
cpptools/getFoldingRanges: /workspaces/algorithm/test.cpp (id: 318)
completionItem/resolve (id: 319)
cpptools/getCodeActions: /workspaces/algorithm/test.cpp (id: 320)
cpptools/getDocumentSymbols: /workspaces/algorithm/test.cpp (id: 321)
cpptools/getDocumentSymbols
Update IntelliSense time (sec): 0.991
willSaveWaitUntil: 0ms
textDocument/didSave: /workspaces/algorithm/test.cpp
tag parsing file: /mnt/d/program/workspaces/algorithm/test.cpp
cpptools/getInlayHints: /workspaces/algorithm/test.cpp (id: 323)
idle loop: reparsing the active document
Checking for syntax errors: /workspaces/algorithm/test.cpp
Queueing IntelliSense update for files in translation unit of: /mnt/d/program/workspaces/algorithm/test.cpp
cpptools/textEditorSelectionChange
cpptools/finishUpdateSquiggles
Error squiggle count: 1
Update IntelliSense time (sec): 0.311
cpptools/getSemanticTokens: /mnt/d/program/workspaces/algorithm/test.cpp (id: 324)
cpptools/getCodeActions: /workspaces/algorithm/test.cpp (id: 325)
cpptools/getCodeActions: /workspaces/algorithm/test.cpp (id: 326)
willSaveWaitUntil: 0ms
textDocument/didSave: /workspaces/algorithm/test.cpp
tag parsing file: /mnt/d/program/workspaces/algorithm/test.cpp
idle loop: reparsing the active document
Checking for syntax errors: /workspaces/algorithm/test.cpp
Queueing IntelliSense update for files in translation unit of: /mnt/d/program/workspaces/algorithm/test.cpp
cpptools/finishUpdateSquiggles
Error squiggle count: 1
Update IntelliSense time (sec): 0.35
cpptools/getSemanticTokens: /mnt/d/program/workspaces/algorithm/test.cpp (id: 328)
Screenshots

Additional context
No response
Regression compared to which release? You're opening the folder through the symlink, right? This appears to be https://github.com/microsoft/vscode-cpptools/issues/4573 which has been a long standing bug.
This issue has been closed because it needs more information and has not had recent activity.