Skip to content
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

Fails to provide the includePath after recent CMAKE tools Update #959

Closed
Victsz opened this issue Dec 6, 2019 · 6 comments
Closed

Fails to provide the includePath after recent CMAKE tools Update #959

Victsz opened this issue Dec 6, 2019 · 6 comments
Labels
Feature: configure Feature: cpptools integration more info needed More info is needed from the community for us to properly triage and investigate.

Comments

@Victsz
Copy link

Victsz commented Dec 6, 2019

Came from microsoft/vscode-cpptools#3731 (comment)

The situation is after update to 1.2.1 the cpp tools not working from cpp-tools teams view the cpp extension cannot get include path from cmake setting,

You can see from microsoft/vscode-cpptools#3731 (comment)

And due to #904, I cannot down grade

If there is a way, I can get intellisense work again?/

@bobbrow
Copy link
Member

bobbrow commented Dec 6, 2019

Based on your report in that issue, it looks like you don't have the right Kit selected or you haven't run the CMake: Configure command yet.

Can you enable logging for cpptools and share what is printed out under Custom configurations received: in the log? If you can't find this string in the log it means that CMake Tools is not providing the configuration to cpptools (likely for one of the reasons above).

@Victsz
Copy link
Author

Victsz commented Dec 7, 2019

I can see the following output after open project
image
And the CMake project outline view on the side panel is correct

And the kit should be correct as well because I have no problem to build the project.

The log for
Custom configuration provider 'CMake Tools' registered
Custom configurations received:
uri: file:///home/victor/Git2/Strategy/olympia/src/Olympia/OlympiaTradeLogic.cc
config: {
"defines": [
"VOlympia_EXPORTS",
"NDEBUG"
],
"standard": "c++17",
"includePath": [
"/home/victor/Git2/Strategy/olympia/reference",
"/home/victor/Git2/Strategy/olympia/reference/factor_factory",
"/home/victor/Git2/Strategy/olympia/reference/nautilus.library",
"/home/victor/Git2/Strategy/olympia/reference/nautilus.library/nautilus",
"/home/victor/Git2/Strategy/olympia/reference/nautilus.library/nautilus/nautilus.execution",
"/home/victor/Git2/Strategy/olympia/reference/nautilus.library/nautilus/savanna",
"/home/victor/Git2/Strategy/olympia/reference/nautilus.library/nautilus/RPC",
"/home/victor/Git2/Strategy/olympia/reference/nautilus.library/nautilus/SimpleSignal",
"/home/victor/Git2/Strategy/olympia/reference/nautilus.library/nautilus/fastmap/include",
"/home/victor/Git2/Strategy/olympia/reference/nautilus.library/event",
"/home/victor/Git2/Strategy/olympia/reference/nautilus.library/RPC",
"/home/victor/Git2/Strategy/olympia/reference/nautilus.library/SimpleSignal",
"/home/victor/Git2/Strategy/olympia/build/messmer_gitversion"
],
"intelliSenseMode": "clang-x64",
"compilerPath": "/usr/bin/g++",
"compilerArgs": [
"-g",
"-O3",
"-feliminate-unused-debug-types",
"-pipe",
"-Wall",
"-Wp,-D_FORTIFY_SOURCE=2",
"-fexceptions",
"-fstack-protector",
"--param=ssp-buffer-size=32",
"-Wformat",
"-Wformat-security",
"-m64",
"-fasynchronous-unwind-tables",
"-Wp,-D_REENTRANT",
"-ftree-loop-distribute-patterns",
"-Wl,-z",
"-Wl,now",
"-Wl,-z",
"-Wl,relro",
"-fno-semantic-interposition",
"-ffat-lto-objects",
"-fno-signed-zeros",
"-fno-trapping-math",
"-fassociative-math",
"-Wl,-sort-common",
"-Wl,--enable-new-dtags",
"-mtune=skylake",
"-fvisibility-inlines-hidden",
"-Wl,--enable-new-dtags",
"-Wall",
"-Wextra",
"-Wno-unused-parameter",
"-Wno-sign-compare",
"-O3",
"-DNDEBUG",
"-fPIC",
"-std=gnu++17"
]
}
Custom browse configuration received: {
"browsePath": [
"/home/victor/Git2/Strategy/olympia/reference",
"/home/victor/Git2/Strategy/olympia/reference/factor_factory",
"/home/victor/Git2/Strategy/olympia/reference/nautilus.library",
"/home/victor/Git2/Strategy/olympia/reference/nautilus.library/nautilus",
"/home/victor/Git2/Strategy/olympia/reference/nautilus.library/nautilus/nautilus.execution",
"/home/victor/Git2/Strategy/olympia/reference/nautilus.library/nautilus/savanna",
"/home/victor/Git2/Strategy/olympia/reference/nautilus.library/nautilus/RPC",
"/home/victor/Git2/Strategy/olympia/reference/nautilus.library/nautilus/SimpleSignal",
"/home/victor/Git2/Strategy/olympia/reference/nautilus.library/nautilus/fastmap/include",
"/home/victor/Git2/Strategy/olympia/reference/nautilus.library/event",
"/home/victor/Git2/Strategy/olympia/reference/nautilus.library/RPC",
"/home/victor/Git2/Strategy/olympia/reference/nautilus.library/SimpleSignal",
"/home/victor/Git2/Strategy/olympia/build/messmer_gitversion",
"/home/victor/Git2/Strategy/olympia/src/Helper",
"/home/victor/Git2/Strategy/olympia/src/Olympia",
"/home/victor/Git2/Strategy/olympia/src"
],
"standard": "c++17",
"compilerPath": "/usr/bin/g++",
"compilerArgs": [
"-g",
"-O3",
"-feliminate-unused-debug-types",
"-pipe",
"-Wall",
"-Wp,-D_FORTIFY_SOURCE=2",
"-fexceptions",
"-fstack-protector",
"--param=ssp-buffer-size=32",
"-Wformat",
"-Wformat-security",
"-m64",
"-fasynchronous-unwind-tables",
"-Wp,-D_REENTRANT",
"-ftree-loop-distribute-patterns",
"-Wl,-z",
"-Wl,now",
"-Wl,-z",
"-Wl,relro",
"-fno-semantic-interposition",
"-ffat-lto-objects",
"-fno-signed-zeros",
"-fno-trapping-math",
"-fassociative-math",
"-Wl,-sort-common",
"-Wl,--enable-new-dtags",
"-mtune=skylake",
"-fvisibility-inlines-hidden",
"-Wl,--enable-new-dtags",
"-Wall",
"-Wextra",
"-Wno-unused-parameter",
"-Wno-sign-compare",
"-O3",
"-DNDEBUG",
"-fPIC",
"-std=gnu++17"
]
}
cpptools/pauseParsing
cpptools/clearCustomConfigurations
terminating child process: 31672
still alive, killing...
not exited yet. Will sleep for 10 milliseconds and try again.
not exited yet. Will sleep for 20 milliseconds and try again.
Failed to read response from server: 22
Update IntelliSense time (sec): 2.098
Closing the communication channel.
Shutting down IntelliSense server: /home/victor/Git2/Strategy/olympia/src/Olympia/OlympiaTradeLogic.cc
Checking for syntax errors: file:///home/victor/Git2/Strategy/olympia/src/Olympia/OlympiaTradeLogic.cc
cpptools/didChangeCustomConfiguration
Attempting to get defaults from compiler in "compilerPath" property: '/usr/bin/g++'
sending compilation args for /home/victor/Git2/Strategy/olympia/src/Olympia/OlympiaTradeLogic.cc

@bobbrow
Copy link
Member

bobbrow commented Dec 31, 2019

Are you still having a problem? This log output looks like everything is working ok.

@bobbrow bobbrow added the more info needed More info is needed from the community for us to properly triage and investigate. label Dec 31, 2019
@andreeis
Copy link
Contributor

Please reactivate if you are still experiencing this problem and it would help if you attach a standalone repro.

@moechofe
Copy link

moechofe commented Jun 5, 2020

I think, I still have this problem. I came here from the original link that OP posted.
I have a cpp project that use this cmake extension.
My program compile and the symbol are completed by vscode but the editor keep telling me the headers are not found.
It's annoying because every file in the list became red everywhere.

@bobbrow
Copy link
Member

bobbrow commented Jun 5, 2020

@moechofe can you open a new issue and share details about your project, what settings you are using, and maybe also the log output from the extension (using "cmake.loggingLevel": "debug" setting)?

Thank you!

@github-actions github-actions bot locked and limited conversation to collaborators Jan 29, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Feature: configure Feature: cpptools integration more info needed More info is needed from the community for us to properly triage and investigate.
Projects
None yet
Development

No branches or pull requests

4 participants