Closed adelejjeh closed 2 years ago
Holy cow, how do you get a target name that long? 👀 Can you open a new issue for that? We should be able to swallow the exception.
I'm still kind of stuck without a repro for this issue, so I don't have any more updates right now. I'm thinking about a modification to the Log Diagnostics command that might help determine whether the problem is symlink related though. I just haven't had time to implement it yet.
@adelejjeh, we released CMake Tools 1.9.1 today with several bug fixes that may address your scenario as well. Upgrade this extension in VSCode and let us know if this is not completely fixed and also if you encounter any other issues.
And if it doesn't work, there's a new feature in the Log Diagnostics
command that should give us a hint as to whether symlinks are the root cause of the problem. So if IntelliSense continues to configure incorrectly, please run the CMake: Log Diagnostics
command and share the output.
This issue has been closed automatically because it needs more information and has not had recent activity.
Brief Issue Summary
CMake Tools not generating configuration for cpp intellisense, and the
compile_commands.json
file it generates is empty. I know this is an issue with the extension because I am able to generate acompile_commands.json
file when runcmake
manually in the terminal.Expected:
When I configure my project with cmake, cpptools should be able to receive the configuration and use it for intellisense. I have the following line in my
c_cpp_properties.json
:Also, the generated compile_commands.json should not be empty.
Apparent Behavior:
cpptools is unable to get the configuration from cmake-tools, so it tries to parse the
compile_commands.json
but issues an error saying unable to parse it. When I checked the contents of the compile commands, the file was empty. I am currently manually runningcmake
after I build in vscode to recreate thecompile_commands.json
for intellisense to work.CMake Tools Log
N.A.
Developer Tools Log
Platform and Versions
Other Notes/Information