Skip to content
This repository has been archived by the owner on Jul 30, 2020. It is now read-only.

Suggestion: cquery cannot parse includePath with space #878

Open
magic3007 opened this issue Jul 19, 2019 · 0 comments
Open

Suggestion: cquery cannot parse includePath with space #878

magic3007 opened this issue Jul 19, 2019 · 0 comments

Comments

@magic3007
Copy link

magic3007 commented Jul 19, 2019

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.

@magic3007 magic3007 changed the title cquery cannot parse includePath with space Suggestion: cquery cannot parse includePath with space Jul 19, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant