-
Notifications
You must be signed in to change notification settings - Fork 427
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 does not work for files not in folder with a CMake configured project #1425
Comments
Your logs indicate the CMake Tools extension is sending us no configuration data -- blank custom browse configuration and Custom configurations section. Is the CMake Tools extension properly configured? |
The project builds with the CMake extension. Is there some diagnostic info I can collect from it that would help? |
Configuration works for me when I use the arm-none-eabi 6.3.1 kit. What kit are you using and how do I install it? |
Are you using the toolchain file as shown above? I don't have a kit specified, it didn't recognize my arm-gcc installation. |
Yeah, I have |
vswhere.exe isn't able to locate my gcc_arm for some reason (16.8 Preview 3) |
I added -prerelease to the call to vswhere to fix the build issue and I reproed the bug. CMake Tools isn't sending the configuration info. |
We're facing the same issue in our company, as we work with cmake projects in a multi-root workspace environment. Do you have any plans to fix it? |
@thepineda It isn't currently on our schedule to fix, but the CMake Tools extension is open source so you could contribute a fix. |
Is this a regression? |
@robotdad Have you hit this issue recently? I just attempted the repro steps and everything seems to work as expected. I should mention that to reproduce this I cloned a brand new project and started completely from scratch (including vcpkg). @sean-mcmanus Were you ever able to repro the issue or did it behave as expected for you as well? |
@gcampbell-msft According to my comment 3 years ago at #1425 (comment) I was reproing the issue. |
Based on the age of this issue, and the fact that I've tried the repro steps and the issue seems to be resolved, I'm closing the issue. FYI @sean-mcmanus @robotdad. @robotdad Please open another issue if this continues to be an issue for you. Thanks! |
Type: LanguageService
Describe the bug
Steps to reproduce
{
"cmake.configureArgs": [
"-DCMAKE_TOOLCHAIN_FILE=../../cmake/arm-gcc-cortex-m4.cmake"
],
"C_Cpp.default.configurationProvider": "ms-vscode.cmake-tools",
"cortex-debug.openocdPath": "C:/tools/OpenOCD/bin/openocd.exe"
}
Expected behavior
Correct IntelliSense, especially as project can build. The files that are flagged as not found are not in the project folder but are configured for the CMake build.
Logs
Screenshots
Additional context
The text was updated successfully, but these errors were encountered: