-
Notifications
You must be signed in to change notification settings - Fork 463
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Browse.path not sent (Go to definition sometimes goes to the declaration instead) #1476
Comments
Go to definition going to the declaration instead of the definition is a symptom, which could have multiple root causes. Are you able to provide an isolated repro example? It's possible the IntelliSense type checking is failing when comparing the definition and the source identifier. |
@sean-mcmanus please take a look, |
I'm not reproing the issue. Can you do a C/C++: Reset IntelliSense Database command and look for stm32f0xx_rcc.c in the C/C++ logging (with C_Cpp.loggingLevel set to Debug)? It looks like something is causing that file to not be parsed on your system. You should see something like
|
I do not find where to see this stat
But I made Reset IntelliSense Database and set debug level, no error messages and the same bug occur some error find in Log (Extension Host) |
The stats are from running C/C++: Log Diagnostics. Did you see stm32f0xx_rcc.c in the "C/C++" logs? It should say "Tag parsing: ...stm32f0xx_rcc.c". |
no info in C/C++: Log Diagnostics, only configuration print
in this log i see info only about the opened file, no info about parsing. How i should activate workspace parsing? |
C/C++ log print after reset, searching for files..., files - 0 |
What version of the C/C++ extension are you using? |
v1.0.1 |
Actually bug occurs not only with stm32f0xx_rcc.c, with all source files. |
@sean-mcmanus I have installed VScode on Windows in the virtual machine on my Mac, "GoTo definition" works perfectly. But in Mac version, do not work, so boring. |
@sean-mcmanus ok, looks like I find a reason, after removing the git folder, bug gone |
I have added exclude git in settings.json with db reset
the same bug |
I wasn't able to repro this on Mac either. @Colengms @michelleangela Can either of you repro it? It sounds like it could be an issue with "configurationProvider": "ms-vscode.cmake-tools" being set. That can override the browse.path setting. You might want to try removing that or looking to see if the logging indicates it's sending an invalid value for that. |
@sean-mcmanus yes, after i removed "configurationProvider": "ms-vscode.cmake-tools", bug gone, works great this line has been added with copy-paste from some tutorial. |
@sean-mcmanus maybe I do not need to remove this line, but find a fix in CMake config? |
@aneox Yeah, for some reason the CMake Tools extension is not sending the correct browse info. I'm moving this issue to that extension. |
Any progress on this. It seems that the extension is overiding the browse.path with an empty list. |
This should have been fixed with #2418. The fix is now available in the "pre-release" version of CMake Tools. It will be included in 1.10. If you would like to try it out and see, please install the pre-release version. |
I am working in VSCode Version: 1.49.3 and have this bug, macOS 10.15.4
When I click "Go to definition", sometimes it went to declarations and sometimes it went to the definition.
No error or warning messages.
c_cpp_properties.json
Originally posted by @aneox in microsoft/vscode-cpptools#3378 (comment)
The text was updated successfully, but these errors were encountered: