cquery
cquery copied to clipboard
Suggestion: cquery cannot parse `includePath` with space
Platform: win10 editor: vscode
Environment variables are listed below:
> set MSMPI
MSMPI_BENCHMARKS=C:\Program Files\Microsoft MPI\Benchmarks\
MSMPI_BIN=C:\Program Files\Microsoft MPI\Bin\
MSMPI_INC=C:\Program Files (x86)\Microsoft SDKs\MPI\Include\
MSMPI_LIB32=C:\Program Files (x86)\Microsoft SDKs\MPI\Lib\x86\
MSMPI_LIB64=C:\Program Files (x86)\Microsoft SDKs\MPI\Lib\x64\
And the c_cpp_properties.json
is
{
"configurations": [
{
"name": "Win32",
"includePath": [
"${workspaceFolder}/**",
"${env:MSMPI_BIN}",
"${env:MSMPI_INC}",
"${env:MSMPI_LIB32}"
],
"defines": [
"_DEBUG",
"UNICODE",
"_UNICODE"
],
"windowsSdkVersion": "10.0.17763.0",
"compilerPath": "C:/Program Files (x86)/Microsoft Visual Studio/2017/Community/VC/Tools/MSVC/14.16.27023/bin/Hostx64/x64/cl.exe",
"cStandard": "c11",
"cppStandard": "c++17",
"intelliSenseMode": "msvc-x64"
}
],
"version": 4
}
However, cpptools
can pharse the environment variables ${env:MSMPI_BIN}
, ${env:MSMPI_INC}
and ${env:MSMPI_LIB32}
, but cquery
cannot.
The reason is that these environment variables have space within them, which is frequently occurred in Windows. I hope it could be fixed.