Skip to content

Querying the compiler fails when compileCommands is used for a file with spaces #6339

@sean-mcmanus

Description

@sean-mcmanus

@dslijepcevic Thanks for the info -- the incorrect logging "Compiler probe command line: "/usr/bin/cc" -g /proj/test2/test file.c -std=gnu11 -Wp,-v -E -dD -x c -m64 /dev/null" helped me figure it out -- the "/proj/test2/test file.c" test should not be there, most likely a bug in the code that removes the -c <arg>. I was able to get the bug repro by deleting the compilerPath from my c_cpp_properties.json, so a potential workaround would be to add that. We should have a fix in our next Insiders release.

Originally posted by @sean-mcmanus in https://github.com/microsoft/vscode-cpptools/issue_comments/710757287

Metadata

Metadata

Assignees

Labels

Language ServicebugfixedCheck the Milestone for the release in which the fix is or will be available.

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions