Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

On Windows arm64 with LIBPATH set: command-line error: invalid option: --using_directoryC/C++(571) #12253

Closed
Modulus010 opened this issue Apr 25, 2024 · 1 comment
Assignees
Labels
bug Feature: Configuration An issue related to configuring the extension or IntelliSense fixed Check the Milestone for the release in which the fix is or will be available. Language Service quick fix
Projects
Milestone

Comments

@Modulus010
Copy link

Environment

  • OS and Version: Windows 11 22H2 on ARM64
  • VS Code Version: 1.88.1 (user setup)
  • C/C++ Extension Version: 1.19.9

Bug Summary and Steps to Reproduce

Bug Summary:
error squiggle on the first line : "command-line error: invalid option: --using_directoryC/C++(571)"
屏幕截图 2024-04-25 140428

Steps to reproduce:

  1. Open vscode from ARM64 Native Tools Command Prompt for VS 2022
  2. Open any cpp file
  3. Wait few seconds
  4. See error

Expected behavior:

Configuration and Logs

-------- Diagnostics - 2024/4/25 14:28:14
Version: 1.19.9
Current Configuration:
{
    "name": "Win32",
    "includePath": [
        "c:/Users/modul/code/**"
    ],
    "defines": [
        "_DEBUG",
        "UNICODE",
        "_UNICODE"
    ],
    "windowsSdkVersion": "10.0.22621.0",
    "compilerPath": "cl.exe",
    "cStandard": "c17",
    "cppStandard": "c++17",
    "intelliSenseMode": "windows-msvc-arm64",
    "compilerPathInCppPropertiesJson": "cl.exe",
    "intelliSenseModeIsExplicit": false,
    "cStandardIsExplicit": false,
    "cppStandardIsExplicit": false,
    "mergeConfigurations": false,
    "compilerPathIsExplicit": false,
    "browse": {
        "path": [
            "c:/Users/modul/code/**",
            "${workspaceFolder}"
        ],
        "limitSymbolsToIncludedHeaders": true
    }
}
cpptools version (native): 1.19.9.0
Translation Unit Mappings:
[ C:\Users\modul\code\hello.cpp - source TU]:
Translation Unit Configurations:
[ C:\Users\modul\code\hello.cpp ]:
    Process ID: 20624
    Memory Usage: 40 MB
    Compiler Path: C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.39.33519\bin\Hostarm64\arm64\cl.exe
    Includes:
        C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.39.33519\include
        C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.39.33519\atlmfc\include
        C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Auxiliary\VS\include
        C:\Program Files (x86)\Windows Kits\NETFXSDK\4.8\Include\um
        C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um
        C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\ucrt
        C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\shared
        C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\winrt
        C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\cppwinrt
    Defines:
        _DEBUG
        UNICODE
        _UNICODE
    Standard Version: ms_c++17
    IntelliSense Mode: windows-msvc-arm64
    Other Flags:
        --using_directory
        C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.39.33519\ATLMFC\lib\ARM64
        --using_directory
        C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.39.33519\lib\ARM64
        --using_directory
        C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.39.33519\lib\x86\store\references
        --using_directory
        C:\Program Files (x86)\Windows Kits\10\UnionMetadata\10.0.22621.0
        --using_directory
        C:\Program Files (x86)\Windows Kits\10\References\10.0.22621.0
        --using_directory
        C:\Windows\Microsoft.NET\Framework64\v4.0.30319
Total Memory Usage: 40 MB

------- Workspace parsing diagnostics -------
Number of files discovered (not excluded): 5225

Other Extensions

No response

Additional context

echo $env:LIBPATH
C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.39.33519\ATLMFC\lib\ARM64;
C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.39.33519\lib\ARM64;
C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.39.33519\lib\x86\store\references;
C:\Program Files (x86)\Windows Kits\10\UnionMetadata\10.0.22621.0;
C:\Program Files (x86)\Windows Kits\10\References\10.0.22621.0;
C:\Windows\Microsoft.NET\Framework64\v4.0.30319

@sean-mcmanus sean-mcmanus self-assigned this Apr 25, 2024
@sean-mcmanus sean-mcmanus added bug Language Service Feature: Configuration An issue related to configuring the extension or IntelliSense quick fix labels Apr 25, 2024
@sean-mcmanus sean-mcmanus added this to the 1.20 milestone Apr 25, 2024
@sean-mcmanus sean-mcmanus added this to Triage in 1.20 via automation Apr 25, 2024
@sean-mcmanus sean-mcmanus moved this from Triage to Pull Request in 1.20 Apr 25, 2024
@sean-mcmanus sean-mcmanus changed the title command-line error: invalid option: --using_directoryC/C++(571) On Windows arm64 with LIBPATH set: command-line error: invalid option: --using_directoryC/C++(571) Apr 25, 2024
@sean-mcmanus sean-mcmanus moved this from Pull Request to Done in 1.20 Apr 30, 2024
@sean-mcmanus sean-mcmanus modified the milestones: 1.20, 1.20.3 Apr 30, 2024
@sean-mcmanus sean-mcmanus added the fixed Check the Milestone for the release in which the fix is or will be available. label Apr 30, 2024
@sean-mcmanus
Copy link
Collaborator

@github-actions github-actions bot locked and limited conversation to collaborators Jun 25, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Feature: Configuration An issue related to configuring the extension or IntelliSense fixed Check the Milestone for the release in which the fix is or will be available. Language Service quick fix
Projects
No open projects
1.20
Done
Development

No branches or pull requests

2 participants