new input verification of configurations.intelliSenseMode fails to verify msvc-x{86|64} if configurations.compilerPath contains a variable · Issue #4141 · microsoft/vscode-cpptools · GitHub
Skip to content

new input verification of configurations.intelliSenseMode fails to verify msvc-x{86|64} if configurations.compilerPath contains a variable #4141

Description

@mistersandman

Type: LanguageService

Describe the bug

  • OS and Version: Windows (any version)
  • VS Code Version: any
  • C/C++ Extension Version: 0.25.0
  • Other extensions you installed (and if the issue persists after disabling them): none
  • A clear and concise description of what the bug is.

To Reproduce
Example configuration in c_cpp_properties.json triggering the issue:

{
    "env": {
        "vc.path": "<path_to_your_msvc_installation>",
        ...
    },
    "configurations": [
        {
            ...,
            "compilerPath": "${vc.path}\\bin\\HostX64\\x64\\cl.exe",
            "intelliSenseMode": "msvc-x64",
            ...
        }
    ]
}

Problems reported for the above configuration: intelliSenseMode msvc-x64 is incompatible with compilerPath.

Expected behavior
No problems reported, as the expanded compilerPath is a valid compiler for msvc-x64 mode.

Additional context
In function isCompilerIntelliSenseModeCompatible, util.extractCompilerPathAndArgs is called with the unexpanded compiler path, which only expects expanded paths.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Feature: ConfigurationAn issue related to configuring the extension or IntelliSensebugfixedCheck the Milestone for the release in which the fix is or will be available.regressionA bug that didn't exist in a previous release

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions