-
Notifications
You must be signed in to change notification settings - Fork 450
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
Intellisense fails if provider is ms-vscode.cmake-tools but cmake.buildDirectory is nonStandard #2410
Comments
This appears to be an issue with CMake Tools. When the I'm moving this over to that repository for us to troubleshoot a bit more. Can you also run the One thing that stands out from your logs is that there is no configuration provided for the header files and I also didn't see any c/cpp files being tag parsed that looked like they might be related to the header file that was open. I haven't seen your CMakeLists.txt, but if you include the headers files in your SOURCES for the |
As requested In our project, header files are not included in SOURCES. We use Anyway, let me know if you need any more information to reproduce/fix this. |
Pleas kindly try this simple repo which represents well our architecture and reproduces the issue. |
Sorry, it doesn't repro for me with your example. Your log confirms my suspicion though. You may not be interested in the details, but I document them here for other members of the team to avoid duplicating the investigation. cpptools asked for a configuration for It's possible that we've fixed this in our pending release though because we fixed a few problems with the configuration provider since 1.9.2 was released. If you would be willing to try it out, all you need to do is:
|
I just reproduces issue on a different computer with shared setup and I know several colleagues have same issue. We are using arm-none-eabi-gcc 10 2020-q4-major. The pre-release version of cmake-tools you recommended seems to work better 👍 However, I get message from (I suppose) cpp-tools
the compiler does't seem to be detected correctly. The message disappears if I set As always, I'm happy to provide any needed information. |
It is supposed to work automatically. Can you re-reun the |
I did some more tests and I will divide on 2 computers because I feel like there is much to say. Let's try to keep thing organised. Workplace computer
Personal computer Yes I double (or more) checked the selected kit Here the log file and an additional one for information Changing manually the order in kits to have clang second didn't change anything. Problems about needing to reload VScode twice is same as describes above I hope this will help.
|
Please allow me to add CPP-tools debug level log on first and second opening of the VScode. (first time failing and seconds passing) on personal computer and shared cmakeDiamondDependency git project. I hope this helps. firstOpenFail.txt What I see is that even on success compiler goes back and forth between different versions. |
Not sure what changed on my side, but I am now able to reproduce the problem. I have a fix. |
This fix should be available in the 1.10.2 pre-release scheduled for tomorrow morning (7am PST, 3pm UTC) |
Thank you for this fix. Everything seems to be OK now. |
Bug type: Language Service
Describe the bug
Version: 1.64.2 (user setup)
Commit: f80445acd5a3dadef24aa209168452a3d97cc326
Date: 2022-02-09T22:02:28.252Z
Electron: 13.5.2
Chromium: 91.0.4472.164
Node.js: 14.16.0
V8: 9.1.269.39-electron.0
OS: Windows_NT x64 10.0.19043
cmake-tools: v1.9.2
When using provider
ms-vscode.cmake-tools
along withcmake.buildDirectory
it seems that cpp tools become sunable to find the compile_commands.json file (see attached files for my configuration).There is a workaround to copy compile_commands.json but then why do we have an automatic provider ?
You or cmake-tools need to fix the provider to beable to work together even when user uses specific path for build.
Steps to reproduce
Expected behavior
A working intellisense out of the box or an explicit error somewhere
Code sample and logs
Code sample
Configurations in
c_cpp_properties.json
settings.json_WORKING.txt
settings.json_FAILING.txt
C/C++: Log Diagnostics
from the VS Code command paletteWhen intellisense fails:
logDiag.txt
Note there are many missing path and defines
langServerlogging.txt
Screenshots
Additional context
The text was updated successfully, but these errors were encountered: