microsoft / vscode-cpptools

Official repository for the Microsoft C/C++ extension for VS Code.
Other
5.45k stars 1.53k forks source link

C++ can't resolve configuration with compilerPath, even though its valid #11928

Closed ghost closed 7 months ago

ghost commented 7 months ago

Environment

Bug Summary and Steps to Reproduce

Bug Summary: C++ is Unable to resolve configuration with compilerPath. image I can also copy the path it outputs, and pull it up in the run box and it finds it. (same with cmd, file explorer etc.) I can't reproduce this on 2 of my 3 pc's, and it was working fine on this PC until I needed to reinstall windows. (tested with Settings sync off and on) Steps to reproduce:

  1. Install C/C++ Extension pack, makefile tools, and VEX robotics image (CMake(tools) and C/C++ themes are installed by the extention pack)
  2. Make a new project with vex image
  3. Then V5 image
  4. Then C++ image
  5. do a blank project image
  6. make a name for it and click create. image
  7. When your in the project and allow maketools to run as dry, there are errors and I cant build my file image

Expected behavior: That I can build my file and not have vscode error.

Configuration and Logs

c_cpp_properties.json
{
    "env": {
        "vex_compilerPath": "${config:vexrobotics.vexcode.Cpp.Toolchain.Path}\\clang\\bin\\clang",
        "vex_sdkPath": "${config:vexrobotics.vexcode.Cpp.Sdk.Home}\\V5\\V5_20220726_10_00_00\\vexv5",
        "vex_gcc": "${vex_sdkPath}/gcc/include/c++/4.9.3",
        "vex_sdkIncludes": [
            "${vex_sdkPath}/clang/8.0.0/include/**",
            "${vex_gcc}/**",
            "${vex_gcc}/arm-none-eabi/armv7-arm/thumb",
            "${vex_sdkPath}/gcc/include",
            "${vex_sdkPath}/include/**",
            "${workspaceFolder}/include/**",
            "${workspaceFolder}/src/**"
        ]
    },
    "configurations": [
        {
            "name": "Win32",
            "includePath": [
                "${vex_sdkIncludes}"
            ],
            "compilerPath": "${vex_compilerPath}",
            "cStandard": "gnu99",
            "cppStandard": "gnu++11",
            "intelliSenseMode": "windows-clang-x86"
        },
        {
            "name": "Mac",
            "includePath": [
                "${vex_sdkIncludes}"
            ],
            "compilerPath": "${vex_compilerPath}",
            "cStandard": "gnu99",
            "cppStandard": "gnu++11",
            "intelliSenseMode": "macos-clang-x86"
        },
        {
            "name": "Linux",
            "includePath": [
                "${vex_sdkIncludes}"
            ],
            "compilerPath": "",
            "cStandard": "gnu99",
            "cppStandard": "gnu++11",
            "intelliSenseMode": "linux-clang-x86"
        }
    ],
    "version": 4
}

C/C++: Log Diagnostics
-------- Diagnostics - 2/4/2024, 1:41:05 PM
Version: 1.18.5
Current Configuration:
{
    "name": "Win32",
    "includePath": [
        "c:/Users/Administrator/AppData/Roaming/Code/User/globalStorage/vexrobotics.vexcode/sdk/cpp/V5/V5_20220726_10_00_00/vexv5/clang/8.0.0/include/**",
        "c:/Users/Administrator/AppData/Roaming/Code/User/globalStorage/vexrobotics.vexcode/sdk/cpp/V5/V5_20220726_10_00_00/vexv5/gcc/include/c++/4.9.3/**",
        "c:/Users/Administrator/AppData/Roaming/Code/User/globalStorage/vexrobotics.vexcode/sdk/cpp/V5/V5_20220726_10_00_00/vexv5/gcc/include/c++/4.9.3/arm-none-eabi/armv7-arm/thumb",
        "c:/Users/Administrator/AppData/Roaming/Code/User/globalStorage/vexrobotics.vexcode/sdk/cpp/V5/V5_20220726_10_00_00/vexv5/gcc/include",
        "c:/Users/Administrator/AppData/Roaming/Code/User/globalStorage/vexrobotics.vexcode/sdk/cpp/V5/V5_20220726_10_00_00/vexv5/include/**",
        "c:/Users/Administrator/Documents/vex-vscode-projects/test/include/**",
        "c:/Users/Administrator/Documents/vex-vscode-projects/test/src/**"
    ],
    "compilerPath": "c:\\Users\\Administrator\\AppData\\Roaming\\Code\\User\\globalStorage\\vexrobotics.vexcode\\tools\\cpp\\toolchain_win32\\clang\\bin\\clang",
    "cStandard": "gnu99",
    "cppStandard": "gnu++11",
    "intelliSenseMode": "windows-clang-x86",
    "compilerPathIsExplicit": true,
    "cStandardIsExplicit": true,
    "cppStandardIsExplicit": true,
    "intelliSenseModeIsExplicit": true,
    "compilerPathInCppPropertiesJson": "${vex_compilerPath}",
    "mergeConfigurations": false,
    "browse": {
        "path": [
            "c:/Users/Administrator/AppData/Roaming/Code/User/globalStorage/vexrobotics.vexcode/sdk/cpp/V5/V5_20220726_10_00_00/vexv5/clang/8.0.0/include/**",
            "c:/Users/Administrator/AppData/Roaming/Code/User/globalStorage/vexrobotics.vexcode/sdk/cpp/V5/V5_20220726_10_00_00/vexv5/gcc/include/c++/4.9.3/**",
            "c:/Users/Administrator/AppData/Roaming/Code/User/globalStorage/vexrobotics.vexcode/sdk/cpp/V5/V5_20220726_10_00_00/vexv5/gcc/include/c++/4.9.3/arm-none-eabi/armv7-arm/thumb",
            "c:/Users/Administrator/AppData/Roaming/Code/User/globalStorage/vexrobotics.vexcode/sdk/cpp/V5/V5_20220726_10_00_00/vexv5/gcc/include",
            "c:/Users/Administrator/AppData/Roaming/Code/User/globalStorage/vexrobotics.vexcode/sdk/cpp/V5/V5_20220726_10_00_00/vexv5/include/**",
            "c:/Users/Administrator/Documents/vex-vscode-projects/test/include/**",
            "c:/Users/Administrator/Documents/vex-vscode-projects/test/src/**",
            "${workspaceFolder}"
        ],
        "limitSymbolsToIncludedHeaders": true
    }
}
cpptools version (native): 1.18.3.0
Translation Unit Mappings:
[ C:\Users\Administrator\Documents\vex-vscode-projects\test\src\main.cpp ]:
    C:\Users\Administrator\Documents\vex-vscode-projects\test\src\main.cpp
Translation Unit Configurations:
[ C:\Users\Administrator\Documents\vex-vscode-projects\test\src\main.cpp ]:
    Process ID: 1848
    Memory Usage: 51 MB
    Includes:
        C:\Users\Administrator\AppData\Roaming\Code\User\globalStorage\vexrobotics.vexcode\sdk\cpp\V5\V5_20220726_10_00_00\vexv5\gcc\include
        C:\Users\Administrator\Documents\vex-vscode-projects\test\include
        C:\Users\Administrator\AppData\Roaming\Code\User\globalStorage\vexrobotics.vexcode\sdk\cpp\V5\V5_20220726_10_00_00\vexv5\include
        C:\Users\Administrator\AppData\Roaming\Code\User\globalStorage\vexrobotics.vexcode\sdk\cpp\V5\V5_20220726_10_00_00\vexv5\clang\8.0.0\include
        C:\Users\Administrator\AppData\Roaming\Code\User\globalStorage\vexrobotics.vexcode\sdk\cpp\V5\V5_20220726_10_00_00\vexv5\gcc\include\c++\4.9.3
        C:\Users\Administrator\AppData\Roaming\Code\User\globalStorage\vexrobotics.vexcode\sdk\cpp\V5\V5_20220726_10_00_00\vexv5\gcc\include\c++\4.9.3\arm-none-eabi
    Standard Version: ms_c++17
    IntelliSense Mode: windows-msvc-x64
Total Memory Usage: 51 MB

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

------- Potential include path issues --------
Some headers exist in multiple locations. If IntelliSense is behaving incorrectly,
try adding one of the alternate paths to the "includePath" in your configuration in
c_cpp_properties.json to override the automatic path discovery for that header.

Using: C:/Users/Administrator/AppData/Roaming/Code/User/globalStorage/vexrobotics.vexcode/sdk/cpp/V5/V5_20220726_10_00_00/vexv5/gcc/include/c++/4.9.3/arm-none-eabi/bits/c++config.h
    Alternative: "C:/Users/Administrator/AppData/Roaming/Code/User/globalStorage/vexrobotics.vexcode/sdk/cpp/V5/V5_20220726_10_00_00/vexv5/gcc/include/c++/4.9.3/arm-none-eabi/armv6-m"
    Alternative: "C:/Users/Administrator/AppData/Roaming/Code/User/globalStorage/vexrobotics.vexcode/sdk/cpp/V5/V5_20220726_10_00_00/vexv5/gcc/include/c++/4.9.3/arm-none-eabi/armv7-ar/thumb"
    Alternative: "C:/Users/Administrator/AppData/Roaming/Code/User/globalStorage/vexrobotics.vexcode/sdk/cpp/V5/V5_20220726_10_00_00/vexv5/gcc/include/c++/4.9.3/arm-none-eabi/armv7-ar/thumb/fpu"
    Alternative: "C:/Users/Administrator/AppData/Roaming/Code/User/globalStorage/vexrobotics.vexcode/sdk/cpp/V5/V5_20220726_10_00_00/vexv5/gcc/include/c++/4.9.3/arm-none-eabi/armv7-ar/thumb/softfp"
    Alternative: "C:/Users/Administrator/AppData/Roaming/Code/User/globalStorage/vexrobotics.vexcode/sdk/cpp/V5/V5_20220726_10_00_00/vexv5/gcc/include/c++/4.9.3/arm-none-eabi/armv7-m"
    Alternative: "C:/Users/Administrator/AppData/Roaming/Code/User/globalStorage/vexrobotics.vexcode/sdk/cpp/V5/V5_20220726_10_00_00/vexv5/gcc/include/c++/4.9.3/arm-none-eabi/armv7e-m"
    Alternative: "C:/Users/Administrator/AppData/Roaming/Code/User/globalStorage/vexrobotics.vexcode/sdk/cpp/V5/V5_20220726_10_00_00/vexv5/gcc/include/c++/4.9.3/arm-none-eabi/armv7e-m/fpu"
    Alternative: "C:/Users/Administrator/AppData/Roaming/Code/User/globalStorage/vexrobotics.vexcode/sdk/cpp/V5/V5_20220726_10_00_00/vexv5/gcc/include/c++/4.9.3/arm-none-eabi/armv7e-m/softfp"
    Alternative: "C:/Users/Administrator/AppData/Roaming/Code/User/globalStorage/vexrobotics.vexcode/sdk/cpp/V5/V5_20220726_10_00_00/vexv5/gcc/include/c++/4.9.3/arm-none-eabi/cortex-m7"
    Alternative: "C:/Users/Administrator/AppData/Roaming/Code/User/globalStorage/vexrobotics.vexcode/sdk/cpp/V5/V5_20220726_10_00_00/vexv5/gcc/include/c++/4.9.3/arm-none-eabi/cortex-m7/fpu/fpv5-d16"
    Alternative: "C:/Users/Administrator/AppData/Roaming/Code/User/globalStorage/vexrobotics.vexcode/sdk/cpp/V5/V5_20220726_10_00_00/vexv5/gcc/include/c++/4.9.3/arm-none-eabi/cortex-m7/fpu/fpv5-sp-d16"
    Alternative: "C:/Users/Administrator/AppData/Roaming/Code/User/globalStorage/vexrobotics.vexcode/sdk/cpp/V5/V5_20220726_10_00_00/vexv5/gcc/include/c++/4.9.3/arm-none-eabi/cortex-m7/softfp/fpv5-d16"
    Alternative: "C:/Users/Administrator/AppData/Roaming/Code/User/globalStorage/vexrobotics.vexcode/sdk/cpp/V5/V5_20220726_10_00_00/vexv5/gcc/include/c++/4.9.3/arm-none-eabi/cortex-m7/softfp/fpv5-sp-d16"
    Alternative: "C:/Users/Administrator/AppData/Roaming/Code/User/globalStorage/vexrobotics.vexcode/sdk/cpp/V5/V5_20220726_10_00_00/vexv5/gcc/include/c++/4.9.3/arm-none-eabi/fpu"
    Alternative: "C:/Users/Administrator/AppData/Roaming/Code/User/globalStorage/vexrobotics.vexcode/sdk/cpp/V5/V5_20220726_10_00_00/vexv5/gcc/include/c++/4.9.3/arm-none-eabi/thumb"
Using: C:/Users/Administrator/AppData/Roaming/Code/User/globalStorage/vexrobotics.vexcode/sdk/cpp/V5/V5_20220726_10_00_00/vexv5/gcc/include/c++/4.9.3/cstdint
    Alternative: "C:/Users/Administrator/AppData/Roaming/Code/User/globalStorage/vexrobotics.vexcode/sdk/cpp/V5/V5_20220726_10_00_00/vexv5/gcc/include/c++/4.9.3/tr1"
Using: C:/Users/Administrator/AppData/Roaming/Code/User/globalStorage/vexrobotics.vexcode/sdk/cpp/V5/V5_20220726_10_00_00/vexv5/gcc/include/limits.h
    Alternative: "C:/Users/Administrator/AppData/Roaming/Code/User/globalStorage/vexrobotics.vexcode/sdk/cpp/V5/V5_20220726_10_00_00/vexv5/clang/8.0.0/include"
Using: C:/Users/Administrator/AppData/Roaming/Code/User/globalStorage/vexrobotics.vexcode/sdk/cpp/V5/V5_20220726_10_00_00/vexv5/gcc/include/c++/4.9.3/ratio
    Alternative: "C:/Users/Administrator/AppData/Roaming/Code/User/globalStorage/vexrobotics.vexcode/sdk/cpp/V5/V5_20220726_10_00_00/vexv5/gcc/include/c++/4.9.3/tr2"

language server logging
loggingLevel: Debug
LSP: (received) cpptools/initialize (id: 1)
LSP: (invoked) cpptools/initialize (id: 1)
cpptools version (TypeScript): 1.18.5
cpptools version (native): 1.18.3.0
Autocomplete is enabled.
Error squiggles are enabled if all header dependencies are resolved.
Hover is enabled.
IntelliSense Engine = default.
LSP: (received) cpptools/queryCompilerDefaults (id: 2)
Custom configuration provider 'Makefile Tools' registered
LSP: (invoked) cpptools/queryCompilerDefaults (id: 2)
Querying compiler for default C++ language standard using command line: c:\Users\Administrator\AppData\Roaming\Code\User\globalStorage\vexrobotics.vexcode\tools\cpp\toolchain_win32\clang\bin\clang -x c++ -E -dM nul
LSP: (received) cpptools/didChangeCppProperties (id: 3)
LSP: (received) cpptools/queryCompilerDefaults (id: 4)
LSP: Message ignored due to no registered handler: $/setTrace
Querying compiler for default C++ language standard using command line: c:\Users\Administrator\AppData\Roaming\Code\User\globalStorage\vexrobotics.vexcode\tools\cpp\toolchain_win32\clang\bin\clang -x c++ -E -dM /dev/null
Querying compiler for default C language standard using command line: c:\Users\Administrator\AppData\Roaming\Code\User\globalStorage\vexrobotics.vexcode\tools\cpp\toolchain_win32\clang\bin\clang -x c -E -dM nul
Querying compiler for default C language standard using command line: c:\Users\Administrator\AppData\Roaming\Code\User\globalStorage\vexrobotics.vexcode\tools\cpp\toolchain_win32\clang\bin\clang -x c -E -dM /dev/null
LSP: (invoked) cpptools/didChangeCppProperties (id: 3)
Code browsing service initialized
Querying compiler for default C++ language standard using command line: c:\Users\Administrator\AppData\Roaming\Code\User\globalStorage\vexrobotics.vexcode\tools\cpp\toolchain_win32\clang\bin\clang -x c++ -E -dM nul
Querying compiler for default C++ language standard using command line: c:\Users\Administrator\AppData\Roaming\Code\User\globalStorage\vexrobotics.vexcode\tools\cpp\toolchain_win32\clang\bin\clang -x c++ -E -dM /dev/null
Querying compiler for default C language standard using command line: c:\Users\Administrator\AppData\Roaming\Code\User\globalStorage\vexrobotics.vexcode\tools\cpp\toolchain_win32\clang\bin\clang -x c -E -dM nul
Querying compiler for default C language standard using command line: c:\Users\Administrator\AppData\Roaming\Code\User\globalStorage\vexrobotics.vexcode\tools\cpp\toolchain_win32\clang\bin\clang -x c -E -dM /dev/null
Compiler query command line: c:\Users\Administrator\AppData\Roaming\Code\User\globalStorage\vexrobotics.vexcode\tools\cpp\toolchain_win32\clang\bin\clang -std=gnu++11 -m32 -Wp,-v -E -dM -x c++ nul
Failed to query compiler. Falling back to 64-bit intelliSenseMode.
Compiler query command line: c:\Users\Administrator\AppData\Roaming\Code\User\globalStorage\vexrobotics.vexcode\tools\cpp\toolchain_win32\clang\bin\clang -std=gnu++11 -m64 -Wp,-v -E -dM -x c++ nul
Failed to query compiler. Falling back to no bitness.
Compiler query command line: c:\Users\Administrator\AppData\Roaming\Code\User\globalStorage\vexrobotics.vexcode\tools\cpp\toolchain_win32\clang\bin\clang -std=gnu++11 -Wp,-v -E -dM -x c++ nul
Attempting to get defaults from C++ compiler in "compilerPath" property: 'c:\Users\Administrator\AppData\Roaming\Code\User\globalStorage\vexrobotics.vexcode\tools\cpp\toolchain_win32\clang\bin\clang'
Unable to configure for compiler cl.exe.
Querying compiler for default C++ language standard using command line: c:\Users\Administrator\AppData\Roaming\Code\User\globalStorage\vexrobotics.vexcode\tools\cpp\toolchain_win32\clang\bin\clang -x c++ -E -dM nul
Querying compiler for default C++ language standard using command line: c:\Users\Administrator\AppData\Roaming\Code\User\globalStorage\vexrobotics.vexcode\tools\cpp\toolchain_win32\clang\bin\clang -x c++ -E -dM /dev/null
Querying compiler for default C language standard using command line: c:\Users\Administrator\AppData\Roaming\Code\User\globalStorage\vexrobotics.vexcode\tools\cpp\toolchain_win32\clang\bin\clang -x c -E -dM nul
Querying compiler for default C language standard using command line: c:\Users\Administrator\AppData\Roaming\Code\User\globalStorage\vexrobotics.vexcode\tools\cpp\toolchain_win32\clang\bin\clang -x c -E -dM /dev/null
Compiler query command line: c:\Users\Administrator\AppData\Roaming\Code\User\globalStorage\vexrobotics.vexcode\tools\cpp\toolchain_win32\clang\bin\clang -std=gnu99 -m32 -Wp,-v -E -dM -x c nul
Failed to query compiler. Falling back to 64-bit intelliSenseMode.
Compiler query command line: c:\Users\Administrator\AppData\Roaming\Code\User\globalStorage\vexrobotics.vexcode\tools\cpp\toolchain_win32\clang\bin\clang -std=gnu99 -m64 -Wp,-v -E -dM -x c nul
Failed to query compiler. Falling back to no bitness.
Compiler query command line: c:\Users\Administrator\AppData\Roaming\Code\User\globalStorage\vexrobotics.vexcode\tools\cpp\toolchain_win32\clang\bin\clang -std=gnu99 -Wp,-v -E -dM -x c nul
Attempting to get defaults from C compiler in "compilerPath" property: 'c:\Users\Administrator\AppData\Roaming\Code\User\globalStorage\vexrobotics.vexcode\tools\cpp\toolchain_win32\clang\bin\clang'
Unable to configure for compiler cl.exe.
  Unable to retrieve file system information for ${config:vexrobotics.vexcode.Cpp.Sdk.Home}\V5\V5_20220726_10_00_00\vexv5\gcc\include\sys. error = -1
  Unable to retrieve file system information for c:/Users/Administrator/AppData/Roaming/Code/User/globalStorage/vexrobotics.vexcode/sdk/cpp/V5/V5_20220726_10_00_00/vexv5/gcc/include/c++/4.9.3/arm-none-eabi/armv7-arm/thumb. error = -1
  Folder: C:/USERS/ADMINISTRATOR/APPDATA/ROAMING/CODE/USER/GLOBALSTORAGE/VEXROBOTICS.VEXCODE/SDK/CPP/V5/V5_20220726_10_00_00/VEXV5/CLANG/8.0.0/INCLUDE/ will be indexed
  Folder: C:/USERS/ADMINISTRATOR/APPDATA/ROAMING/CODE/USER/GLOBALSTORAGE/VEXROBOTICS.VEXCODE/SDK/CPP/V5/V5_20220726_10_00_00/VEXV5/GCC/INCLUDE/ will be indexed
  Folder: C:/USERS/ADMINISTRATOR/APPDATA/ROAMING/CODE/USER/GLOBALSTORAGE/VEXROBOTICS.VEXCODE/SDK/CPP/V5/V5_20220726_10_00_00/VEXV5/INCLUDE/ will be indexed
  Folder: C:/USERS/ADMINISTRATOR/DOCUMENTS/VEX-VSCODE-PROJECTS/TEST/ will be indexed
LSP: (invoked) cpptools/queryCompilerDefaults (id: 4)
Discovering files...
Querying compiler for default C++ language standard using command line: c:\Users\Administrator\AppData\Roaming\Code\User\globalStorage\vexrobotics.vexcode\tools\cpp\toolchain_win32\clang\bin\clang -x c++ -E -dM nul
Querying compiler for default C++ language standard using command line: c:\Users\Administrator\AppData\Roaming\Code\User\globalStorage\vexrobotics.vexcode\tools\cpp\toolchain_win32\clang\bin\clang -x c++ -E -dM /dev/null
Querying compiler for default C language standard using command line: c:\Users\Administrator\AppData\Roaming\Code\User\globalStorage\vexrobotics.vexcode\tools\cpp\toolchain_win32\clang\bin\clang -x c -E -dM nul
  Processing folder (recursive): C:/USERS/ADMINISTRATOR/APPDATA/ROAMING/CODE/USER/GLOBALSTORAGE/VEXROBOTICS.VEXCODE/SDK/CPP/V5/V5_20220726_10_00_00/VEXV5/CLANG/8.0.0/INCLUDE/
Querying compiler for default C language standard using command line: c:\Users\Administrator\AppData\Roaming\Code\User\globalStorage\vexrobotics.vexcode\tools\cpp\toolchain_win32\clang\bin\clang -x c -E -dM /dev/null
  Processing folder (recursive): C:/USERS/ADMINISTRATOR/APPDATA/ROAMING/CODE/USER/GLOBALSTORAGE/VEXROBOTICS.VEXCODE/SDK/CPP/V5/V5_20220726_10_00_00/VEXV5/GCC/INCLUDE/
  Processing folder (recursive): C:/USERS/ADMINISTRATOR/APPDATA/ROAMING/CODE/USER/GLOBALSTORAGE/VEXROBOTICS.VEXCODE/SDK/CPP/V5/V5_20220726_10_00_00/VEXV5/INCLUDE/
  Processing folder (recursive): C:/USERS/ADMINISTRATOR/DOCUMENTS/VEX-VSCODE-PROJECTS/TEST/
  Discovering files: 1326 file(s) processed
  0 file(s) removed from database
Done discovering files.
Populating include completion cache.
Parsing remaining files...
  Parsing: 0 files(s) processed
Done parsing remaining files.
LSP: Message ignored due to no registered handler: $/setTrace
LSP: (received) cpptools/didChangeCppProperties (id: 5)
LSP: (invoked) cpptools/didChangeCppProperties (id: 5)
LSP: (received) cpptools/didChangeSettings
LSP: (invoked) cpptools/didChangeSettings
Autocomplete is enabled.
Error squiggles are enabled if all header dependencies are resolved.
Hover is enabled.
IntelliSense Engine = default.
Enhanced Colorization is enabled.
LSP: (received) cpptools/didChangeSettings
LSP: (invoked) cpptools/didChangeSettings
Autocomplete is enabled.
Error squiggles are enabled if all header dependencies are resolved.
Hover is enabled.
LSP: (received) textDocument/didOpen: file:///c%3A/Users/Administrator/Documents/vex-vscode-projects/test/src/main.cpp
IntelliSense Engine = default.
Enhanced Colorization is enabled.
LSP: (invoked) textDocument/didOpen: file:///c%3A/Users/Administrator/Documents/vex-vscode-projects/test/src/main.cpp
Unable to resolve include path: c:/Users/Administrator/AppData/Roaming/Code/User/globalStorage/vexrobotics.vexcode/sdk/cpp/V5/V5_20220726_10_00_00/vexv5/gcc/include/c++/4.9.3/arm-none-eabi/armv7-arm/thumb
Unable to resolve include path: ${config:vexrobotics.vexcode.Cpp.Sdk.Home}/V5/V5_20220726_10_00_00/vexv5/gcc/include/sys
LSP: (received) cpptools/didChangeSettings
LSP: (invoked) cpptools/didChangeSettings
Autocomplete is enabled.
Error squiggles are enabled if all header dependencies are resolved.
Hover is enabled.
IntelliSense Engine = default.
Enhanced Colorization is enabled.
LSP: (received) cpptools/getInlayHints: file:///c%3A/Users/Administrator/Documents/vex-vscode-projects/test/src/main.cpp (id: 6)
LSP: (invoked) cpptools/getInlayHints: file:///c%3A/Users/Administrator/Documents/vex-vscode-projects/test/src/main.cpp (id: 6)
LSP: (received) cpptools/didChangeCppProperties (id: 7)
LSP: (invoked) cpptools/didChangeCppProperties (id: 7)
LSP: (received) cpptools/didChangeSettings
LSP: (invoked) cpptools/didChangeSettings
Autocomplete is enabled.
Error squiggles are enabled if all header dependencies are resolved.
Hover is enabled.
IntelliSense Engine = default.
Enhanced Colorization is enabled.
LSP: (received) cpptools/activeDocumentChange: file:///c%3A/Users/Administrator/Documents/vex-vscode-projects/test/src/main.cpp
LSP: (invoked) cpptools/activeDocumentChange: file:///c%3A/Users/Administrator/Documents/vex-vscode-projects/test/src/main.cpp
LSP: (received) cpptools/textEditorSelectionChange
LSP: (invoked) cpptools/textEditorSelectionChange
LSP: (received) cpptools/clearCustomConfigurations
LSP: (invoked) cpptools/clearCustomConfigurations
LSP: (received) cpptools/clearCustomConfigurations
LSP: (invoked) cpptools/clearCustomConfigurations
sending compilation args for C:\Users\Administrator\Documents\vex-vscode-projects\test\src\main.cpp
  include: C:\USERS\ADMINISTRATOR\APPDATA\ROAMING\CODE\USER\GLOBALSTORAGE\VEXROBOTICS.VEXCODE\SDK\CPP\V5\V5_20220726_10_00_00\VEXV5\GCC\INCLUDE
  include: C:\USERS\ADMINISTRATOR\DOCUMENTS\VEX-VSCODE-PROJECTS\TEST\INCLUDE
  include: C:\USERS\ADMINISTRATOR\APPDATA\ROAMING\CODE\USER\GLOBALSTORAGE\VEXROBOTICS.VEXCODE\SDK\CPP\V5\V5_20220726_10_00_00\VEXV5\INCLUDE
  include: C:\USERS\ADMINISTRATOR\APPDATA\ROAMING\CODE\USER\GLOBALSTORAGE\VEXROBOTICS.VEXCODE\SDK\CPP\V5\V5_20220726_10_00_00\VEXV5\CLANG\8.0.0\INCLUDE
  include: C:\USERS\ADMINISTRATOR\APPDATA\ROAMING\CODE\USER\GLOBALSTORAGE\VEXROBOTICS.VEXCODE\SDK\CPP\V5\V5_20220726_10_00_00\VEXV5\GCC\INCLUDE\C++\4.9.3
  include: C:\USERS\ADMINISTRATOR\APPDATA\ROAMING\CODE\USER\GLOBALSTORAGE\VEXROBOTICS.VEXCODE\SDK\CPP\V5\V5_20220726_10_00_00\VEXV5\GCC\INCLUDE\C++\4.9.3\ARM-NONE-EABI
  stdver: ms_c++17
  intelliSenseMode: windows-msvc-x64
Checking for syntax errors: C:\Users\Administrator\Documents\vex-vscode-projects\test\src\main.cpp
Queueing IntelliSense update for files in translation unit of: C:\Users\Administrator\Documents\vex-vscode-projects\test\src\main.cpp
Error squiggle count: 3
Update IntelliSense time (sec): 0.838
LSP: (received) cpptools/getSemanticTokens: file:///c%3A/Users/Administrator/Documents/vex-vscode-projects/test/src/main.cpp (id: 8)
LSP: (invoked) cpptools/getSemanticTokens: file:///c%3A/Users/Administrator/Documents/vex-vscode-projects/test/src/main.cpp (id: 8)
LSP: Message ignored due to no registered handler: $/setTrace
LSP: (received) cpptools/didChangeSettings
LSP: (invoked) cpptools/didChangeSettings
Autocomplete is enabled.
Error squiggles are enabled if all header dependencies are resolved.
Hover is enabled.
IntelliSense Engine = default.
Enhanced Colorization is enabled.
LSP: (received) cpptools/getFoldingRanges: file:///c%3A/Users/Administrator/Documents/vex-vscode-projects/test/src/main.cpp (id: 9)
LSP: (invoked) cpptools/getFoldingRanges: file:///c%3A/Users/Administrator/Documents/vex-vscode-projects/test/src/main.cpp (id: 9)
LSP: (received) cpptools/getDocumentSymbols: file:///c%3A/Users/Administrator/Documents/vex-vscode-projects/test/src/main.cpp (id: 10)
LSP: (invoked) cpptools/getDocumentSymbols: file:///c%3A/Users/Administrator/Documents/vex-vscode-projects/test/src/main.cpp (id: 10)
LSP: $/cancelRequest (<unknown/completed>, id: 9)
LSP: (received) cpptools/getFoldingRanges: file:///c%3A/Users/Administrator/Documents/vex-vscode-projects/test/src/main.cpp (id: 11)
LSP: (invoked) cpptools/getFoldingRanges: file:///c%3A/Users/Administrator/Documents/vex-vscode-projects/test/src/main.cpp (id: 11)
LSP: (received) cpptools/didChangeCppProperties (id: 12)
LSP: (invoked) cpptools/didChangeCppProperties (id: 12)
LSP: (received) cpptools/didChangeCppProperties (id: 13)
LSP: (invoked) cpptools/didChangeCppProperties (id: 13)
LSP: (received) cpptools/activeDocumentChange: file:///c%3A/Users/Administrator/Documents/vex-vscode-projects/test/src/main.cpp
LSP: (invoked) cpptools/activeDocumentChange: file:///c%3A/Users/Administrator/Documents/vex-vscode-projects/test/src/main.cpp
LSP: (received) cpptools/textEditorSelectionChange
LSP: (invoked) cpptools/textEditorSelectionChange

Other Extensions

No response

Additional context

No response

browntarik commented 7 months ago

Could you explain which file you are trying to build? I have created my own Vex project and selected the configuration to run as dry but I am unable to reproduce your error?

Additionally, when you open up the main.cpp file of your project, could you provide the output of the C/C++: Log Diagnostics command. This will help us see of the include and compiler paths are being set correctly.

browntarik commented 7 months ago

image

FYI I was able to build by using the play button the extension provides in the bottom left

ghost commented 7 months ago

image

FYI I was able to build by using the play button the extension provides in the bottom left

yep thats the build button I used, and got image (as from my post)

Additionally, when you open up the main.cpp file of your project, could you provide the output of the C/C++: Log Diagnostics command. This will help us see of the include and compiler paths are being set correctly.

Will do. I thought it was image but I'll get better logs soon. (And yes, the path is correct as stated in my post, I can pull it up in file explorer, cmd/powershell etc.)

As a note, this bug only happens on ONE computer of my 4, and reinstalled windows to test too.

ghost commented 7 months ago

Additionally, when you open up the main.cpp file of your project, could you provide the output of the C/C++: Log Diagnostics command. This will help us see of the include and compiler paths are being set correctly.

-------- Diagnostics - 2/5/2024, 4:47:46 PM Version: 1.18.5 Current Configuration: { "name": "Win32", "includePath": [ "c:/Users/Administrator/AppData/Roaming/Code/User/globalStorage/vexrobotics.vexcode/sdk/cpp/V5/V5_20220726_10_00_00/vexv5/clang/8.0.0/include/", "c:/Users/Administrator/AppData/Roaming/Code/User/globalStorage/vexrobotics.vexcode/sdk/cpp/V5/V5_20220726_10_00_00/vexv5/gcc/include/c++/4.9.3/", "c:/Users/Administrator/AppData/Roaming/Code/User/globalStorage/vexrobotics.vexcode/sdk/cpp/V5/V5_20220726_10_00_00/vexv5/gcc/include/c++/4.9.3/arm-none-eabi/armv7-arm/thumb", "c:/Users/Administrator/AppData/Roaming/Code/User/globalStorage/vexrobotics.vexcode/sdk/cpp/V5/V5_20220726_10_00_00/vexv5/gcc/include", "c:/Users/Administrator/AppData/Roaming/Code/User/globalStorage/vexrobotics.vexcode/sdk/cpp/V5/V5_20220726_10_00_00/vexv5/include/", "c:/Users/Administrator/Documents/vex-vscode-projects/test_PLEASEWO/include/", "c:/Users/Administrator/Documents/vex-vscode-projects/test_PLEASEWO/src/" ], "cStandard": "gnu99", "cppStandard": "gnu++11", "intelliSenseMode": "windows-clang-x86", "compilerPathIsExplicit": true, "cStandardIsExplicit": true, "cppStandardIsExplicit": true, "intelliSenseModeIsExplicit": true, "mergeConfigurations": false, "compilerPath": "c:\Users\Administrator\AppData\Roaming\Code\User\globalStorage\vexrobotics.vexcode\tools\cpp\toolchain_win32\clang\bin\clang", "browse": { "path": [ "c:/Users/Administrator/AppData/Roaming/Code/User/globalStorage/vexrobotics.vexcode/sdk/cpp/V5/V5_20220726_10_00_00/vexv5/clang/8.0.0/include/", "c:/Users/Administrator/AppData/Roaming/Code/User/globalStorage/vexrobotics.vexcode/sdk/cpp/V5/V5_20220726_10_00_00/vexv5/gcc/include/c++/4.9.3/", "c:/Users/Administrator/AppData/Roaming/Code/User/globalStorage/vexrobotics.vexcode/sdk/cpp/V5/V5_20220726_10_00_00/vexv5/gcc/include/c++/4.9.3/arm-none-eabi/armv7-arm/thumb", "c:/Users/Administrator/AppData/Roaming/Code/User/globalStorage/vexrobotics.vexcode/sdk/cpp/V5/V5_20220726_10_00_00/vexv5/gcc/include", "c:/Users/Administrator/AppData/Roaming/Code/User/globalStorage/vexrobotics.vexcode/sdk/cpp/V5/V5_20220726_10_00_00/vexv5/include/", "c:/Users/Administrator/Documents/vex-vscode-projects/test_PLEASEWO/include/", "c:/Users/Administrator/Documents/vex-vscode-projects/test_PLEASEWO/src/", "${workspaceFolder}" ], "limitSymbolsToIncludedHeaders": true } } cpptools version (native): 1.18.3.0 Translation Unit Mappings: [ C:\Users\Administrator\Documents\vex-vscode-projects\test_PLEASEWO\src\main.cpp ]: C:\Users\Administrator\Documents\vex-vscode-projects\test_PLEASEWO\src\main.cpp Translation Unit Configurations: [ C:\Users\Administrator\Documents\vex-vscode-projects\test_PLEASEWO\src\main.cpp ]: Process ID: 14276 Memory Usage: 50 MB Includes: C:\Users\Administrator\AppData\Roaming\Code\User\globalStorage\vexrobotics.vexcode\sdk\cpp\V5\V5_20220726_10_00_00\vexv5\gcc\include C:\Users\Administrator\Documents\vex-vscode-projects\test_PLEASEWO\include C:\Users\Administrator\AppData\Roaming\Code\User\globalStorage\vexrobotics.vexcode\sdk\cpp\V5\V5_20220726_10_00_00\vexv5\include C:\Users\Administrator\AppData\Roaming\Code\User\globalStorage\vexrobotics.vexcode\sdk\cpp\V5\V5_20220726_10_00_00\vexv5\clang\8.0.0\include C:\Users\Administrator\AppData\Roaming\Code\User\globalStorage\vexrobotics.vexcode\sdk\cpp\V5\V5_20220726_10_00_00\vexv5\gcc\include\c++\4.9.3 C:\Users\Administrator\AppData\Roaming\Code\User\globalStorage\vexrobotics.vexcode\sdk\cpp\V5\V5_20220726_10_00_00\vexv5\gcc\include\c++\4.9.3\arm-none-eabi Standard Version: ms_c++17 IntelliSense Mode: windows-msvc-x64 Total Memory Usage: 50 MB

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

------- Potential include path issues -------- Some headers exist in multiple locations. If IntelliSense is behaving incorrectly, try adding one of the alternate paths to the "includePath" in your configuration in c_cpp_properties.json to override the automatic path discovery for that header.

Using: C:/Users/Administrator/AppData/Roaming/Code/User/globalStorage/vexrobotics.vexcode/sdk/cpp/V5/V5_20220726_10_00_00/vexv5/gcc/include/c++/4.9.3/arm-none-eabi/bits/c++config.h Alternative: "C:/Users/Administrator/AppData/Roaming/Code/User/globalStorage/vexrobotics.vexcode/sdk/cpp/V5/V5_20220726_10_00_00/vexv5/gcc/include/c++/4.9.3/arm-none-eabi/armv6-m" Alternative: "C:/Users/Administrator/AppData/Roaming/Code/User/globalStorage/vexrobotics.vexcode/sdk/cpp/V5/V5_20220726_10_00_00/vexv5/gcc/include/c++/4.9.3/arm-none-eabi/armv7-ar/thumb" Alternative: "C:/Users/Administrator/AppData/Roaming/Code/User/globalStorage/vexrobotics.vexcode/sdk/cpp/V5/V5_20220726_10_00_00/vexv5/gcc/include/c++/4.9.3/arm-none-eabi/armv7-ar/thumb/fpu" Alternative: "C:/Users/Administrator/AppData/Roaming/Code/User/globalStorage/vexrobotics.vexcode/sdk/cpp/V5/V5_20220726_10_00_00/vexv5/gcc/include/c++/4.9.3/arm-none-eabi/armv7-ar/thumb/softfp" Alternative: "C:/Users/Administrator/AppData/Roaming/Code/User/globalStorage/vexrobotics.vexcode/sdk/cpp/V5/V5_20220726_10_00_00/vexv5/gcc/include/c++/4.9.3/arm-none-eabi/armv7-m" Alternative: "C:/Users/Administrator/AppData/Roaming/Code/User/globalStorage/vexrobotics.vexcode/sdk/cpp/V5/V5_20220726_10_00_00/vexv5/gcc/include/c++/4.9.3/arm-none-eabi/armv7e-m" Alternative: "C:/Users/Administrator/AppData/Roaming/Code/User/globalStorage/vexrobotics.vexcode/sdk/cpp/V5/V5_20220726_10_00_00/vexv5/gcc/include/c++/4.9.3/arm-none-eabi/armv7e-m/fpu" Alternative: "C:/Users/Administrator/AppData/Roaming/Code/User/globalStorage/vexrobotics.vexcode/sdk/cpp/V5/V5_20220726_10_00_00/vexv5/gcc/include/c++/4.9.3/arm-none-eabi/armv7e-m/softfp" Alternative: "C:/Users/Administrator/AppData/Roaming/Code/User/globalStorage/vexrobotics.vexcode/sdk/cpp/V5/V5_20220726_10_00_00/vexv5/gcc/include/c++/4.9.3/arm-none-eabi/cortex-m7" Alternative: "C:/Users/Administrator/AppData/Roaming/Code/User/globalStorage/vexrobotics.vexcode/sdk/cpp/V5/V5_20220726_10_00_00/vexv5/gcc/include/c++/4.9.3/arm-none-eabi/cortex-m7/fpu/fpv5-d16" Alternative: "C:/Users/Administrator/AppData/Roaming/Code/User/globalStorage/vexrobotics.vexcode/sdk/cpp/V5/V5_20220726_10_00_00/vexv5/gcc/include/c++/4.9.3/arm-none-eabi/cortex-m7/fpu/fpv5-sp-d16" Alternative: "C:/Users/Administrator/AppData/Roaming/Code/User/globalStorage/vexrobotics.vexcode/sdk/cpp/V5/V5_20220726_10_00_00/vexv5/gcc/include/c++/4.9.3/arm-none-eabi/cortex-m7/softfp/fpv5-d16" Alternative: "C:/Users/Administrator/AppData/Roaming/Code/User/globalStorage/vexrobotics.vexcode/sdk/cpp/V5/V5_20220726_10_00_00/vexv5/gcc/include/c++/4.9.3/arm-none-eabi/cortex-m7/softfp/fpv5-sp-d16" Alternative: "C:/Users/Administrator/AppData/Roaming/Code/User/globalStorage/vexrobotics.vexcode/sdk/cpp/V5/V5_20220726_10_00_00/vexv5/gcc/include/c++/4.9.3/arm-none-eabi/fpu" Alternative: "C:/Users/Administrator/AppData/Roaming/Code/User/globalStorage/vexrobotics.vexcode/sdk/cpp/V5/V5_20220726_10_00_00/vexv5/gcc/include/c++/4.9.3/arm-none-eabi/thumb" Using: C:/Users/Administrator/AppData/Roaming/Code/User/globalStorage/vexrobotics.vexcode/sdk/cpp/V5/V5_20220726_10_00_00/vexv5/gcc/include/c++/4.9.3/cstdint Alternative: "C:/Users/Administrator/AppData/Roaming/Code/User/globalStorage/vexrobotics.vexcode/sdk/cpp/V5/V5_20220726_10_00_00/vexv5/gcc/include/c++/4.9.3/tr1" Using: C:/Users/Administrator/AppData/Roaming/Code/User/globalStorage/vexrobotics.vexcode/sdk/cpp/V5/V5_20220726_10_00_00/vexv5/gcc/include/limits.h Alternative: "C:/Users/Administrator/AppData/Roaming/Code/User/globalStorage/vexrobotics.vexcode/sdk/cpp/V5/V5_20220726_10_00_00/vexv5/clang/8.0.0/include" Using: C:/Users/Administrator/AppData/Roaming/Code/User/globalStorage/vexrobotics.vexcode/sdk/cpp/V5/V5_20220726_10_00_00/vexv5/gcc/include/c++/4.9.3/ratio Alternative: "C:/Users/Administrator/AppData/Roaming/Code/User/globalStorage/vexrobotics.vexcode/sdk/cpp/V5/V5_20220726_10_00_00/vexv5/gcc/include/c++/4.9.3/tr2"

ghost commented 7 months ago

And this is logs from a working pc -------- Diagnostics - 2/5/2024, 4:51:31 PM Version: 1.18.5 Current Configuration: { "name": "Win32", "includePath": [ "c:/Users/Administrator/AppData/Roaming/Code/User/globalStorage/vexrobotics.vexcode/sdk/cpp/V5/V5_20220726_10_00_00/vexv5/clang/8.0.0/include/", "c:/Users/Administrator/AppData/Roaming/Code/User/globalStorage/vexrobotics.vexcode/sdk/cpp/V5/V5_20220726_10_00_00/vexv5/gcc/include/c++/4.9.3/", "c:/Users/Administrator/AppData/Roaming/Code/User/globalStorage/vexrobotics.vexcode/sdk/cpp/V5/V5_20220726_10_00_00/vexv5/gcc/include/c++/4.9.3/arm-none-eabi/armv7-arm/thumb", "c:/Users/Administrator/AppData/Roaming/Code/User/globalStorage/vexrobotics.vexcode/sdk/cpp/V5/V5_20220726_10_00_00/vexv5/gcc/include", "c:/Users/Administrator/AppData/Roaming/Code/User/globalStorage/vexrobotics.vexcode/sdk/cpp/V5/V5_20220726_10_00_00/vexv5/include/", "c:/Users/Administrator/Documents/vex-vscode-projects/test/include/", "c:/Users/Administrator/Documents/vex-vscode-projects/test/src/" ], "compilerPath": "c:\Users\Administrator\AppData\Roaming\Code\User\globalStorage\vexrobotics.vexcode\tools\cpp\toolchain_win32\clang\bin\clang", "cStandard": "gnu99", "cppStandard": "gnu++11", "intelliSenseMode": "windows-clang-x86", "compilerPathIsExplicit": true, "cStandardIsExplicit": true, "cppStandardIsExplicit": true, "intelliSenseModeIsExplicit": true, "compilerPathInCppPropertiesJson": "${vex_compilerPath}", "mergeConfigurations": false, "browse": { "path": [ "c:/Users/Administrator/AppData/Roaming/Code/User/globalStorage/vexrobotics.vexcode/sdk/cpp/V5/V5_20220726_10_00_00/vexv5/clang/8.0.0/include/", "c:/Users/Administrator/AppData/Roaming/Code/User/globalStorage/vexrobotics.vexcode/sdk/cpp/V5/V5_20220726_10_00_00/vexv5/gcc/include/c++/4.9.3/", "c:/Users/Administrator/AppData/Roaming/Code/User/globalStorage/vexrobotics.vexcode/sdk/cpp/V5/V5_20220726_10_00_00/vexv5/gcc/include/c++/4.9.3/arm-none-eabi/armv7-arm/thumb", "c:/Users/Administrator/AppData/Roaming/Code/User/globalStorage/vexrobotics.vexcode/sdk/cpp/V5/V5_20220726_10_00_00/vexv5/gcc/include", "c:/Users/Administrator/AppData/Roaming/Code/User/globalStorage/vexrobotics.vexcode/sdk/cpp/V5/V5_20220726_10_00_00/vexv5/include/", "c:/Users/Administrator/Documents/vex-vscode-projects/test/include/", "c:/Users/Administrator/Documents/vex-vscode-projects/test/src/", "${workspaceFolder}" ], "limitSymbolsToIncludedHeaders": true } } cpptools version (native): 1.18.3.0 Translation Unit Mappings: [ C:\Users\Administrator\Documents\vex-vscode-projects\test\src\main.cpp ]: C:\Users\Administrator\Documents\vex-vscode-projects\test\src\main.cpp Translation Unit Configurations: [ C:\Users\Administrator\Documents\vex-vscode-projects\test\src\main.cpp ]: Process ID: 24344 Memory Usage: 71 MB Compiler Path: C:\Users\Administrator\AppData\Roaming\Code\User\globalStorage\vexrobotics.vexcode\tools\cpp\toolchain_win32\clang\bin\clang Includes: C:\Users\Administrator\AppData\Roaming\Code\User\globalStorage\vexrobotics.vexcode\sdk\cpp\V5\V5_20220726_10_00_00\vexv5\gcc\include C:\Users\Administrator\Documents\vex-vscode-projects\test\include C:\Users\Administrator\AppData\Roaming\Code\User\globalStorage\vexrobotics.vexcode\sdk\cpp\V5\V5_20220726_10_00_00\vexv5\include C:\Users\Administrator\AppData\Roaming\Code\User\globalStorage\vexrobotics.vexcode\sdk\cpp\V5\V5_20220726_10_00_00\vexv5\clang\8.0.0\include C:\Users\Administrator\AppData\Roaming\Code\User\globalStorage\vexrobotics.vexcode\sdk\cpp\V5\V5_20220726_10_00_00\vexv5\gcc\include\c++\4.9.3 C:\Users\Administrator\AppData\Roaming\Code\User\globalStorage\vexrobotics.vexcode\sdk\cpp\V5\V5_20220726_10_00_00\vexv5\gcc\include\c++\4.9.3\arm-none-eabi Standard Version: c++11 IntelliSense Mode: windows-clang-x86 Other Flags: --clang --clang_version=80000 --ms_compatibility Total Memory Usage: 71 MB

------- Workspace parsing diagnostics ------- Number of files discovered (not excluded): 1326 Number of files parsed: 139

------- Potential include path issues -------- Some headers exist in multiple locations. If IntelliSense is behaving incorrectly, try adding one of the alternate paths to the "includePath" in your configuration in c_cpp_properties.json to override the automatic path discovery for that header.

Using: C:/Users/Administrator/AppData/Roaming/Code/User/globalStorage/vexrobotics.vexcode/sdk/cpp/V5/V5_20220726_10_00_00/vexv5/gcc/include/c++/4.9.3/arm-none-eabi/bits/c++config.h Alternative: "C:/Users/Administrator/AppData/Roaming/Code/User/globalStorage/vexrobotics.vexcode/sdk/cpp/V5/V5_20220726_10_00_00/vexv5/gcc/include/c++/4.9.3/arm-none-eabi/armv6-m" Alternative: "C:/Users/Administrator/AppData/Roaming/Code/User/globalStorage/vexrobotics.vexcode/sdk/cpp/V5/V5_20220726_10_00_00/vexv5/gcc/include/c++/4.9.3/arm-none-eabi/armv7-ar/thumb" Alternative: "C:/Users/Administrator/AppData/Roaming/Code/User/globalStorage/vexrobotics.vexcode/sdk/cpp/V5/V5_20220726_10_00_00/vexv5/gcc/include/c++/4.9.3/arm-none-eabi/armv7-ar/thumb/fpu" Alternative: "C:/Users/Administrator/AppData/Roaming/Code/User/globalStorage/vexrobotics.vexcode/sdk/cpp/V5/V5_20220726_10_00_00/vexv5/gcc/include/c++/4.9.3/arm-none-eabi/armv7-ar/thumb/softfp" Alternative: "C:/Users/Administrator/AppData/Roaming/Code/User/globalStorage/vexrobotics.vexcode/sdk/cpp/V5/V5_20220726_10_00_00/vexv5/gcc/include/c++/4.9.3/arm-none-eabi/armv7-m" Alternative: "C:/Users/Administrator/AppData/Roaming/Code/User/globalStorage/vexrobotics.vexcode/sdk/cpp/V5/V5_20220726_10_00_00/vexv5/gcc/include/c++/4.9.3/arm-none-eabi/armv7e-m" Alternative: "C:/Users/Administrator/AppData/Roaming/Code/User/globalStorage/vexrobotics.vexcode/sdk/cpp/V5/V5_20220726_10_00_00/vexv5/gcc/include/c++/4.9.3/arm-none-eabi/armv7e-m/fpu" Alternative: "C:/Users/Administrator/AppData/Roaming/Code/User/globalStorage/vexrobotics.vexcode/sdk/cpp/V5/V5_20220726_10_00_00/vexv5/gcc/include/c++/4.9.3/arm-none-eabi/armv7e-m/softfp" Alternative: "C:/Users/Administrator/AppData/Roaming/Code/User/globalStorage/vexrobotics.vexcode/sdk/cpp/V5/V5_20220726_10_00_00/vexv5/gcc/include/c++/4.9.3/arm-none-eabi/cortex-m7" Alternative: "C:/Users/Administrator/AppData/Roaming/Code/User/globalStorage/vexrobotics.vexcode/sdk/cpp/V5/V5_20220726_10_00_00/vexv5/gcc/include/c++/4.9.3/arm-none-eabi/cortex-m7/fpu/fpv5-d16" Alternative: "C:/Users/Administrator/AppData/Roaming/Code/User/globalStorage/vexrobotics.vexcode/sdk/cpp/V5/V5_20220726_10_00_00/vexv5/gcc/include/c++/4.9.3/arm-none-eabi/cortex-m7/fpu/fpv5-sp-d16" Alternative: "C:/Users/Administrator/AppData/Roaming/Code/User/globalStorage/vexrobotics.vexcode/sdk/cpp/V5/V5_20220726_10_00_00/vexv5/gcc/include/c++/4.9.3/arm-none-eabi/cortex-m7/softfp/fpv5-d16" Alternative: "C:/Users/Administrator/AppData/Roaming/Code/User/globalStorage/vexrobotics.vexcode/sdk/cpp/V5/V5_20220726_10_00_00/vexv5/gcc/include/c++/4.9.3/arm-none-eabi/cortex-m7/softfp/fpv5-sp-d16" Alternative: "C:/Users/Administrator/AppData/Roaming/Code/User/globalStorage/vexrobotics.vexcode/sdk/cpp/V5/V5_20220726_10_00_00/vexv5/gcc/include/c++/4.9.3/arm-none-eabi/fpu" Alternative: "C:/Users/Administrator/AppData/Roaming/Code/User/globalStorage/vexrobotics.vexcode/sdk/cpp/V5/V5_20220726_10_00_00/vexv5/gcc/include/c++/4.9.3/arm-none-eabi/thumb" Using: C:/Users/Administrator/AppData/Roaming/Code/User/globalStorage/vexrobotics.vexcode/sdk/cpp/V5/V5_20220726_10_00_00/vexv5/gcc/include/c++/4.9.3/cstdint Alternative: "C:/Users/Administrator/AppData/Roaming/Code/User/globalStorage/vexrobotics.vexcode/sdk/cpp/V5/V5_20220726_10_00_00/vexv5/gcc/include/c++/4.9.3/tr1" Using: C:/Users/Administrator/AppData/Roaming/Code/User/globalStorage/vexrobotics.vexcode/sdk/cpp/V5/V5_20220726_10_00_00/vexv5/gcc/include/limits.h Alternative: "C:/Users/Administrator/AppData/Roaming/Code/User/globalStorage/vexrobotics.vexcode/sdk/cpp/V5/V5_20220726_10_00_00/vexv5/clang/8.0.0/include" Using: C:/Users/Administrator/AppData/Roaming/Code/User/globalStorage/vexrobotics.vexcode/sdk/cpp/V5/V5_20220726_10_00_00/vexv5/gcc/include/c++/4.9.3/ratio Alternative: "C:/Users/Administrator/AppData/Roaming/Code/User/globalStorage/vexrobotics.vexcode/sdk/cpp/V5/V5_20220726_10_00_00/vexv5/gcc/include/c++/4.9.3/tr2"

(they both use settings sync, i have tried off and on but they should be the same.)

browntarik commented 7 months ago

If you look at the two logs you will see there is a difference in your compilers. In the first (non-working) example, there is no {vex_compiler} in your configuration settings.

image

But in the working example, there is a {vex_compilerPath}:

image

My guess is that you have not correcty set your compiler to the vex_compilerPath in the non-working machine

I am not sure why this difference exists, you could perhaps be overriding the compilerPath in your project somewhere in your settings or the vex project did not generate the appropriate c_cpp_properties.json file. If you can correctly change your compilerPath or get the correct settings in the .vscode folder of your project you should be able to build.

ghost commented 7 months ago

If you look at the two logs you will see there is a difference in your compilers. In the first (non-working) example, there is no {vex_compiler} in your configuration settings.

image

But in the working example, there is a {vex_compilerPath}:

image

My guess is that you have not correcty set your compiler to the vex_compilerPath in the non-working machine

I am not sure why this difference exists, you could perhaps be overriding the compilerPath in your project somewhere in your settings or the vex project did not generate the appropriate c_cpp_properties.json file. If you can correctly change your compilerPath or get the correct settings in the .vscode folder of your project you should be able to build.

Hmm, odd. When I first got this "bug" I used the select compiler from vscode image (Which also did not work, and removed the compilepath from C++ Screenshot 2024-02-05 170245 and it might of broken that. I have to do something, I will be able to fix that soon. Hang tight!

ghost commented 7 months ago

compilerPathInCppPropertiesJson

Okay, I just updated C++ configurations and the json to make sure and I still cant build. heres a screenshot of my 2 computers (left is working, right is not) with both the c_cpp.json and C++ configurations UI. image

browntarik commented 7 months ago

After further investigations, this looks like it may very well be an error with your makefile as the error code is not related to our Extension (see "Build Failed: Make process closed with exit code: Error: Spawn unknown).

If the configurations you have in both projects are identical, it is unlikely the issue is due to our extension.

This error code usually means the arguments you are passing into the makefile are not correct.

Are you still receiving the "unable to resolve issue"? If not, I would recommend you file this issue with the Vex Robotics extension

ghost commented 7 months ago

After further investigations, this looks like it may very well be an error with your makefile as the error code is not related to our Extension (see "Build Failed: Make process closed with exit code: Error: Spawn unknown).

If the configurations you have in both projects are identical, it is unlikely the issue is due to our extension.

This error code usually means the arguments you are passing into the makefile are not correct.

Are you still receiving the "unable to resolve issue"? If not, I would recommend you file this issue with the Vex Robotics extension

sadily, the makefile is the same.

ghost commented 7 months ago

After further investigations, this looks like it may very well be an error with your makefile as the error code is not related to our Extension (see "Build Failed: Make process closed with exit code: Error: Spawn unknown).

If the configurations you have in both projects are identical, it is unlikely the issue is due to our extension.

This error code usually means the arguments you are passing into the makefile are not correct.

Are you still receiving the "unable to resolve issue"? If not, I would recommend you file this issue with the Vex Robotics extension

Hah! I found a vex log [02/05/2024 19:21:27:139] : [02/05/2024 19:21:27:140] :======================== VEX Extension Activate ======================== [02/05/2024 19:21:27:140] : [02/05/2024 19:21:27:141] : VEX Extension Version: 0.5.0 [02/05/2024 19:21:27:317] [Command][Vexcom Version][Result]:(0) VEX Success | vexcom.exe --version --json [02/05/2024 19:21:27:318] VEXCOM Version: 1.0.0b28 Mar 6 2023 [02/05/2024 19:21:27:318]

[02/05/2024 19:21:27:342] [VEX Websocket Server]: " VEX Websocket Server Initialized [02/05/2024 19:21:28:810] [Project Manager]: Platform: Windows_NT [02/05/2024 19:21:28:811] [Project Manager]: Arch: x64 [02/05/2024 19:21:28:811] [Project Manager]: OS Endline: 13,10 [02/05/2024 19:21:28:812] [Project Manager]: Make Type: make.exe [02/05/2024 19:21:28:813] [Project Manager]: Clang Type: clang.exe [02/05/2024 19:21:28:814] [Project Manager]: Setting Default User Settings [02/05/2024 19:21:28:864] [Project Manager]: Checking if toolchain exist------------- [02/05/2024 19:21:28:865] [Project Manager]: Toolchain Found @: c:\Users\Administrator\AppData\Roaming\Code\User\globalStorage\vexrobotics.vexcode\tools\cpp\toolchain_win32 [02/05/2024 19:21:28:865] [Project Manager]: Project Home Path: c:\Users\Administrator\Documents\vex-vscode-projects [02/05/2024 19:21:28:866] [Project Manager]: Toolchain Home: c:\Users\Administrator\AppData\Roaming\Code\User\globalStorage\vexrobotics.vexcode\tools\cpp [02/05/2024 19:21:28:866] [Project Manager]: Toolchain Path: c:\Users\Administrator\AppData\Roaming\Code\User\globalStorage\vexrobotics.vexcode\tools\cpp\toolchain_win32 [02/05/2024 19:21:28:866] [Project Manager]: Sdk CPP Home: c:\Users\Administrator\AppData\Roaming\Code\User\globalStorage\vexrobotics.vexcode\sdk\cpp [02/05/2024 19:21:28:867] [Project Manager]: Sdk Python Home: c:\Users\Administrator\AppData\Roaming\Code\User\globalStorage\vexrobotics.vexcode\sdk\python [02/05/2024 19:21:28:867] [Project Manager]: [02/05/2024 19:21:28:867] [Project Manager]: Looking for Projects in workspace ---------------- [02/05/2024 19:21:28:870] [Project Manager]: Project found: Test [02/05/2024 19:21:28:879] [Project Manager]: Checking for latest SDK------------- [02/05/2024 19:21:28:894] [Device Manager]: Starting VEX Device Search [02/05/2024 19:21:29:266] [Project Manager]: SDK Versions Recieved [02/05/2024 19:21:29:266] [Project Manager]: Online SDK: V5_20220726_10_00_00 [02/05/2024 19:21:29:267] [Project Manager]: Local SDK : V5_20220726_10_00_00 [02/05/2024 19:21:29:268] [Project Manager]: SDK Found @: c:\Users\Administrator\AppData\Roaming\Code\User\globalStorage\vexrobotics.vexcode\sdk\cpp ver:V5_20220726_10_00_00 [02/05/2024 19:21:29:268] [Project Manager]: SDK - Up To Date [02/05/2024 19:21:29:616] V5: {"local":{"latest":"VEXOS_V5_1_1_2_0","catalog":["VEXOS_V5_1_1_2_0"]},"online":{"latest":"VEXOS_V5_1_1_2_0"}} [02/05/2024 19:21:29:616] IQ2: {"local":{"latest":"VEXOS_IQ2_1_0_8_0","catalog":["VEXOS_IQ2_1_0_8_0"]},"online":{"latest":"VEXOS_IQ2_1_0_8_0"}} [02/05/2024 19:21:29:616] EXP: {"local":{"latest":"VEXOS_EXP_1_0_3_0","catalog":["VEXOS_EXP_1_0_3_0"]},"online":{"latest":"VEXOS_EXP_1_0_3_0"}} [02/05/2024 19:21:29:616] EXP: Latest vexos file available locally [02/05/2024 19:21:29:617] IQ2: Latest vexos file available locally [02/05/2024 19:21:29:617] V5: Latest vexos file available locally [02/05/2024 19:22:03:535] [02/05/2024 19:22:03:536] CPP Build

[02/05/2024 19:22:03:537] [Project Manager]: Test: Save All [02/05/2024 19:22:03:539] [Project Manager]: Test: Build Args: P=Test,T=c:\Users\Administrator\AppData\Roaming\Code\User\globalStorage\vexrobotics.vexcode\sdk\cpp\V5\V5_20220726_10_00_00,OS=Windows_NT,PRINTF_FLOAT=1 [02/05/2024 19:22:03:540] [Project Manager]: Test: Setup Build Env [02/05/2024 19:22:03:540] [Project Manager]: Test: Project Path: c:\Users\Administrator\Documents\vex-vscode-projects\Test [02/05/2024 19:22:03:541] [Project Manager]: Test: Toolchain Path: c:\Users\Administrator\AppData\Roaming\Code\User\globalStorage\vexrobotics.vexcode\tools\cpp [02/05/2024 19:22:03:541] [Project Manager]: Test: SDK NAME: V5_20220726_10_00_00 SDK Path: c:\Users\Administrator\AppData\Roaming\Code\User\globalStorage\vexrobotics.vexcode\sdk\cpp\V5\V5_20220726_10_00_00 [02/05/2024 19:22:03:542] [Project Manager]: Test: Make Path: c:\Users\Administrator\AppData\Roaming\Code\User\globalStorage\vexrobotics.vexcode\tools\cpp\toolchain_win32\tools\bin\make.exe [02/05/2024 19:22:03:542] [Project Manager]: Test: EnvOptions: {"cwd":"c:\Users\Administrator\Documents\vex-vscode-projects\Test","env":{"PATH":"c:\Users\Administrator\AppData\Roaming\Code\User\globalStorage\vexrobotics.vexcode\sdk\cpp\V5\V5_20220726_10_00_00;c:\Users\Administrator\AppData\Roaming\Code\User\globalStorage\vexrobotics.vexcode\tools\cpp\toolchain_win32\gcc\bin;c:\Users\Administrator\AppData\Roaming\Code\User\globalStorage\vexrobotics.vexcode\tools\cpp\toolchain_win32\clang\bin;C:\Program Files (x86)\Microsoft\Edge\Application;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Windows\System32\OpenSSH\;C:\Program Files\Git\cmd;C:\Users\Administrator\AppData\Local\Programs\Python\Python312\Scripts\;C:\Users\Administrator\AppData\Local\Programs\Python\Python312\;C:\Users\Administrator\AppData\Local\Microsoft\WindowsApps;C:\Users\Administrator\AppData\Local\Programs\Microsoft VS Code\bin;C:\Users\Administrator\AppData\Local\GitHubDesktop\bin"}} [02/05/2024 19:22:03:542] [Project Manager]: Test: Build Type: Build [02/05/2024 19:22:03:543] [Project Manager]: Test: Spawning Make Process [02/05/2024 19:22:03:546] [Command][Build][Error]: Error: spawn UNKNOWN [02/05/2024 19:22:03:547] Build Failed: Make process closed with exit code: Error: spawn UNKNOWN

Edit:

and a VScode log that does not look right... 2024-02-05 19:05:19.400 [info] Started local extension host with pid 8788. 2024-02-05 19:05:19.468 [info] Started initializing default profile extensions in extensions installation folder. file:///c%3A/Users/Administrator/.vscode/extensions 2024-02-05 19:05:19.666 [info] Completed initializing default profile extensions in extensions installation folder. file:///c%3A/Users/Administrator/.vscode/extensions 2024-02-05 19:05:22.746 [info] [perf] Render performance baseline is 48ms 2024-02-05 19:05:49.925 [warning] [cmake-tools]: Couldn't find message for key cmake-tools.configuration.cmake.options.advanced.statusBarVisibility.variant.description. 2024-02-05 19:05:49.955 [warning] [twxs.cmake]: Cannot register 'cmake.cmakePath'. This property is already registered. 2024-02-05 19:07:34.959 [info] Started local extension host with pid 16096. 2024-02-05 19:07:34.979 [warning] [cmake-tools]: Couldn't find message for key cmake-tools.configuration.cmake.options.advanced.statusBarVisibility.variant.description. 2024-02-05 19:07:37.052 [warning] [cmake-tools]: Couldn't find message for key cmake-tools.configuration.cmake.options.advanced.statusBarVisibility.variant.description. 2024-02-05 19:07:37.102 [warning] [twxs.cmake]: Cannot register 'cmake.cmakePath'. This property is already registered. 2024-02-05 19:07:38.318 [info] [perf] Render performance baseline is 42ms 2024-02-05 19:12:02.046 [error] Cancelled: Canceled at re.B (vscode-file://vscode-app/c:/Users/Administrator/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/out/vs/workbench/workbench.desktop.main.js:782:32466) at async re.z (vscode-file://vscode-app/c:/Users/Administrator/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/out/vs/workbench/workbench.desktop.main.js:782:29361) at async re.z (vscode-file://vscode-app/c:/Users/Administrator/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/out/vs/workbench/workbench.desktop.main.js:782:30301) at async re.getExtensions (vscode-file://vscode-app/c:/Users/Administrator/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/out/vs/workbench/workbench.desktop.main.js:782:26345) at async oe.getExtensions (vscode-file://vscode-app/c:/Users/Administrator/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/out/vs/workbench/workbench.desktop.main.js:2741:12374) at async fe.Ec (vscode-file://vscode-app/c:/Users/Administrator/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/out/vs/workbench/workbench.desktop.main.js:2677:24452) at async fe.Nc (vscode-file://vscode-app/c:/Users/Administrator/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/out/vs/workbench/workbench.desktop.main.js:2677:27116) at async fe.lc (vscode-file://vscode-app/c:/Users/Administrator/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/out/vs/workbench/workbench.desktop.main.js:2677:14478) at async vscode-file://vscode-app/c:/Users/Administrator/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/out/vs/workbench/workbench.desktop.main.js:2677:12777 2024-02-05 19:13:19.051 [error] Error while getting the engine for the version 1.1.1. Server returned 404 2024-02-05 19:13:19.053 [error] Error while getting the engine for the version 1.1.2. Server returned 404 2024-02-05 19:13:19.077 [error] Error while getting the engine for the version 0.5.1. Server returned 404 2024-02-05 19:13:19.086 [error] Error while getting the engine for the version 1.0.1. Server returned 404 2024-02-05 19:13:19.095 [error] Error while getting the engine for the version 0.9.0. Server returned 404 2024-02-05 19:13:19.096 [error] Error while getting the engine for the version 0.4.2. Server returned 404 2024-02-05 19:13:19.098 [error] Error while getting the engine for the version 1.0.0. Server returned 404 2024-02-05 19:13:19.099 [error] Error while getting the engine for the version 0.5.4. Server returned 404 2024-02-05 19:13:19.100 [error] Error while getting the engine for the version 0.7.0. Server returned 404 2024-02-05 19:13:19.102 [error] Error while getting the engine for the version 0.5.7. Server returned 404 2024-02-05 19:13:19.105 [error] Error while getting the engine for the version 0.10.2. Server returned 404 2024-02-05 19:13:19.109 [error] Error while getting the engine for the version 0.9.7. Server returned 404 2024-02-05 19:13:19.110 [error] Error while getting the engine for the version 0.9.4. Server returned 404 2024-02-05 19:13:19.114 [error] Error while getting the engine for the version 0.6.0. Server returned 404 2024-02-05 19:13:19.121 [error] Error while getting the engine for the version 0.5.2. Server returned 404 2024-02-05 19:13:19.131 [error] Error while getting the engine for the version 0.9.2. Server returned 404 2024-02-05 19:13:19.134 [error] Error while getting the engine for the version 0.9.5. Server returned 404 2024-02-05 19:13:19.145 [error] Error while getting the engine for the version 0.9.1. Server returned 404 2024-02-05 19:13:19.146 [error] Error while getting the engine for the version 0.10.3. Server returned 404 2024-02-05 19:13:19.154 [error] Error while getting the engine for the version 0.9.6. Server returned 404 2024-02-05 19:13:19.155 [error] Error while getting the engine for the version 0.8.3. Server returned 404 2024-02-05 19:13:19.161 [error] Error while getting the engine for the version 1.1.0. Server returned 404 2024-02-05 19:13:19.161 [error] Error while getting the engine for the version 0.6.1. Server returned 404 2024-02-05 19:13:19.162 [error] Error while getting the engine for the version 0.7.2. Server returned 404 2024-02-05 19:13:19.165 [error] Error while getting the engine for the version 0.10.0. Server returned 404 2024-02-05 19:13:19.168 [error] Error while getting the engine for the version 0.5.3. Server returned 404 2024-02-05 19:13:19.176 [error] Error while getting the engine for the version 0.7.3. Server returned 404 2024-02-05 19:13:19.176 [error] Error while getting the engine for the version 0.8.2. Server returned 404 2024-02-05 19:13:19.187 [error] Error while getting the engine for the version 0.11.0. Server returned 404 2024-02-05 19:13:19.189 [error] Error while getting the engine for the version 0.10.4. Server returned 404 2024-02-05 19:13:19.202 [error] Error while getting the engine for the version 0.9.3. Server returned 404 2024-02-05 19:13:19.205 [error] Error while getting the engine for the version 0.8.5. Server returned 404 2024-02-05 19:13:19.209 [error] Error while getting the engine for the version 0.7.4. Server returned 404 2024-02-05 19:13:19.209 [error] Error while getting the engine for the version 0.10.1. Server returned 404 2024-02-05 19:13:19.211 [error] Error while getting the engine for the version 0.8.0. Server returned 404 2024-02-05 19:13:19.212 [error] Error while getting the engine for the version 0.7.1. Server returned 404 2024-02-05 19:13:19.218 [error] Error while getting the engine for the version 0.8.4. Server returned 404 2024-02-05 19:13:19.221 [error] Error while getting the engine for the version 0.8.1. Server returned 404 2024-02-05 19:13:19.223 [error] Error while getting the engine for the version 0.7.5. Server returned 404 2024-02-05 19:13:19.224 [error] Error while getting the engine for the version 0.11.1. Server returned 404 2024-02-05 19:13:19.225 [error] Error while getting the engine for the version 0.5.5. Server returned 404 2024-02-05 19:13:19.240 [error] Error while getting the engine for the version 0.8.6. Server returned 404 2024-02-05 19:13:19.241 [error] Error while getting the engine for the version 0.6.2. Server returned 404 2024-02-05 19:13:19.242 [error] Error while getting the engine for the version 0.5.0. Server returned 404 2024-02-05 19:13:19.254 [error] Error while getting the engine for the version 0.8.8. Server returned 404 2024-02-05 19:13:19.296 [error] Error while getting the engine for the version 0.5.6. Server returned 404 2024-02-05 19:13:19.296 [error] Error while getting the engine for the version 0.4.1. Server returned 404 2024-02-05 19:13:19.297 [error] Error while getting the engine for the version 0.8.7. Server returned 404 2024-02-05 19:13:37.171 [info] Settings Sync: Updating due to change in sessions 2024-02-05 19:13:37.172 [info] Settings Sync: Updated current session ea584725795dee7 2024-02-05 19:14:33.312 [error] Unable to sync settings as there are errors/warning in settings file.: LocalInvalidContent (UserDataSyncError) syncResource:settings operationId:unknown: Unable to sync settings as there are errors/warning in settings file. at o.$ [as toUserDataSyncError] (vscode-file://vscode-app/c:/Users/Administrator/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/out/vs/workbench/workbench.desktop.main.js:775:30384) at vscode-file://vscode-app/c:/Users/Administrator/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/out/vs/workbench/workbench.desktop.main.js:784:62155 at async u.run (vscode-file://vscode-app/c:/Users/Administrator/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/out/vs/workbench/workbench.desktop.main.js:2663:56641) 2024-02-05 19:14:51.586 [error] [Extension Host] (node:16096) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead. (Use Code --trace-deprecation ... to show where the warning was created) 2024-02-05 19:17:38.833 [info] Started local extension host with pid 7016. 2024-02-05 19:17:38.943 [warning] [cmake-tools]: Couldn't find message for key cmake-tools.configuration.cmake.options.advanced.statusBarVisibility.variant.description. 2024-02-05 19:17:39.031 [warning] [twxs.cmake]: Cannot register 'cmake.cmakePath'. This property is already registered. 2024-02-05 19:17:41.958 [error] [Extension Host] (node:7016) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead. (Use Code --trace-deprecation ... to show where the warning was created) 2024-02-05 19:17:41.959 [info] [perf] Render performance baseline is 38ms 2024-02-05 19:19:47.784 [warning] Settings pattern "application." doesn't match any settings 2024-02-05 19:21:23.613 [warning] [twxs.cmake]: Cannot register 'cmake.cmakePath'. This property is already registered. 2024-02-05 19:21:23.724 [info] Started local extension host with pid 6064. 2024-02-05 19:21:26.386 [error] [Extension Host] (node:6064) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead. (Use Code --trace-deprecation ... to show where the warning was created) 2024-02-05 19:21:26.850 [warning] [cmake-tools]: Couldn't find message for key cmake-tools.configuration.cmake.options.advanced.statusBarVisibility.variant.description. 2024-02-05 19:21:26.887 [info] [perf] Render performance baseline is 40ms 2024-02-05 19:26:51.030 [error] Error: Unable to read file '\vscode-app\c:\Users\Administrator\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\workbench.desktop.main.js:775:30384' (Unknown (FileSystemError): UNC host 'vscode-app' access is not allowed. Please update the 'security.allowedUNCHosts' setting if you want to allow this host.) at n.F (vscode-file://vscode-app/c:/Users/Administrator/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/out/vs/workbench/workbench.desktop.main.js:657:19968) at n.D (vscode-file://vscode-app/c:/Users/Administrator/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/out/vs/workbench/workbench.desktop.main.js:657:19763) at async f.M (vscode-file://vscode-app/c:/Users/Administrator/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/out/vs/workbench/workbench.desktop.main.js:2203:42897) at async f.readStream (vscode-file://vscode-app/c:/Users/Administrator/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/out/vs/workbench/workbench.desktop.main.js:2203:42654) at async L.Cb (vscode-file://vscode-app/c:/Users/Administrator/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/out/vs/workbench/workbench.desktop.main.js:2192:13459) at async L.resolve (vscode-file://vscode-app/c:/Users/Administrator/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/out/vs/workbench/workbench.desktop.main.js:2192:11906) at async s.W (vscode-file://vscode-app/c:/Users/Administrator/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/out/vs/workbench/workbench.desktop.main.js:2203:39048) at async s.ib (vscode-file://vscode-app/c:/Users/Administrator/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/out/vs/workbench/workbench.desktop.main.js:1910:41984) at async P.setInput (vscode-file://vscode-app/c:/Users/Administrator/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/out/vs/workbench/workbench.desktop.main.js:2188:22543) at async f.S (vscode-file://vscode-app/c:/Users/Administrator/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/out/vs/workbench/workbench.desktop.main.js:2186:24503) at async f.L (vscode-file://vscode-app/c:/Users/Administrator/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/out/vs/workbench/workbench.desktop.main.js:2186:23112) at async f.openEditor (vscode-file://vscode-app/c:/Users/Administrator/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/out/vs/workbench/workbench.desktop.main.js:2186:22101) at async vscode-file://vscode-app/c:/Users/Administrator/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/out/vs/workbench/workbench.desktop.main.js:2309:23514 at async w.M (vscode-file://vscode-app/c:/Users/Administrator/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/out/vs/workbench/workbench.desktop.main.js:1215:82355) at async w.openCodeEditor (vscode-file://vscode-app/c:/Users/Administrator/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/out/vs/workbench/workbench.desktop.main.js:732:4538) at async a.open (vscode-file://vscode-app/c:/Users/Administrator/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/out/vs/workbench/workbench.desktop.main.js:657:44562) at async h.open (vscode-file://vscode-app/c:/Users/Administrator/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/out/vs/workbench/workbench.desktop.main.js:657:45692) 2024-02-05 19:26:52.961 [error] [File Watcher (node.js)] Error [ERR_UNC_HOST_NOT_ALLOWED]: UNC host 'vscode-app' access is not allowed 2024-02-05 19:27:39.287 [warning] Settings pattern "application." doesn't match any settings 2024-02-05 19:28:32.893 [warning] Settings pattern "application." doesn't match any settings 2024-02-05 19:28:33.059 [warning] [twxs.cmake]: Cannot register 'cmake.cmakePath'. This property is already registered. 2024-02-05 19:28:33.216 [info] Started local extension host with pid 14096. 2024-02-05 19:28:33.269 [warning] Settings pattern "GitHub.copilot.manageExtension" doesn't match any settings 2024-02-05 19:28:34.025 [warning] Settings pattern "application." doesn't match any settings 2024-02-05 19:28:35.833 [error] [Extension Host] (node:14096) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead. (Use Code --trace-deprecation ... to show where the warning was created) 2024-02-05 19:28:36.171 [warning] Settings pattern "application." doesn't match any settings 2024-02-05 19:28:36.417 [warning] [cmake-tools]: Couldn't find message for key cmake-tools.configuration.cmake.options.advanced.statusBarVisibility.variant.description. 2024-02-05 19:28:37.988 [warning] Settings pattern "application." doesn't match any settings 2024-02-05 19:28:38.199 [info] [perf] Render performance baseline is 52ms 2024-02-05 19:28:47.602 [warning] [twxs.cmake]: Cannot register 'cmake.cmakePath'. This property is already registered. 2024-02-05 19:28:47.716 [info] Started local extension host with pid 3564. 2024-02-05 19:28:50.990 [error] [Extension Host] (node:3564) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead. (Use Code --trace-deprecation ... to show where the warning was created) 2024-02-05 19:28:51.055 [info] [perf] Render performance baseline is 41ms 2024-02-05 19:28:51.084 [warning] [cmake-tools]: Couldn't find message for key cmake-tools.configuration.cmake.options.advanced.statusBarVisibility.variant.description. 2024-02-05 19:29:46.608 [warning] Settings pattern "application.*" doesn't match any settings 2024-02-05 19:30:36.476 [warning] [twxs.cmake]: Cannot register 'cmake.cmakePath'. This property is already registered. 2024-02-05 19:30:36.605 [info] Started local extension host with pid 5776. 2024-02-05 19:30:39.588 [warning] [cmake-tools]: Couldn't find message for key cmake-tools.configuration.cmake.options.advanced.statusBarVisibility.variant.description. 2024-02-05 19:30:39.692 [error] [Extension Host] (node:5776) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead. (Use Code --trace-deprecation ... to show where the warning was created) 2024-02-05 19:30:39.904 [info] [perf] Render performance baseline is 60ms (Output - Window)

Colengms commented 7 months ago

Hi @DVT7125 . Regarding your original report of a Unable to resolve configuration with compilerPath error, I see the following in the log you posted:

Compiler query command line: c:\Users\Administrator\AppData\Roaming\Code\User\globalStorage\vexrobotics.vexcode\tools\cpp\toolchain_win32\clang\bin\clang -std=gnu++11 -m32 -Wp,-v -E -dM -x c++ nul
Failed to query compiler. Falling back to 64-bit intelliSenseMode.
Compiler query command line: c:\Users\Administrator\AppData\Roaming\Code\User\globalStorage\vexrobotics.vexcode\tools\cpp\toolchain_win32\clang\bin\clang -std=gnu++11 -m64 -Wp,-v -E -dM -x c++ nul
Failed to query compiler. Falling back to no bitness.

This indicates specific command lines that either resulted in an error or unexpected results being returned.

Could you try executing one of the command lines manually and providing the output? i.e. c:\Users\Administrator\AppData\Roaming\Code\User\globalStorage\vexrobotics.vexcode\tools\cpp\toolchain_win32\clang\bin\clang -std=gnu++11 -m32 -Wp,-v -E -dM -x c++ nul

sean-mcmanus commented 7 months ago

I haven't followed this thread at all, but I just saw that "clang" didn't have the ".exe" at the end? Normally, it does on Windows.

ghost commented 7 months ago

Hi @DVT7125 . Regarding your original report of a Unable to resolve configuration with compilerPath error, I see the following in the log you posted:

Compiler query command line: c:\Users\Administrator\AppData\Roaming\Code\User\globalStorage\vexrobotics.vexcode\tools\cpp\toolchain_win32\clang\bin\clang -std=gnu++11 -m32 -Wp,-v -E -dM -x c++ nul
Failed to query compiler. Falling back to 64-bit intelliSenseMode.
Compiler query command line: c:\Users\Administrator\AppData\Roaming\Code\User\globalStorage\vexrobotics.vexcode\tools\cpp\toolchain_win32\clang\bin\clang -std=gnu++11 -m64 -Wp,-v -E -dM -x c++ nul
Failed to query compiler. Falling back to no bitness.

This indicates specific command lines that either resulted in an error or unexpected results being returned.

Could you try executing one of the command lines manually and providing the output? i.e. c:\Users\Administrator\AppData\Roaming\Code\User\globalStorage\vexrobotics.vexcode\tools\cpp\toolchain_win32\clang\bin\clang -std=gnu++11 -m32 -Wp,-v -E -dM -x c++ nul

Hey there, I have been in contact with vex, and it's not on C++, but the path is valid. I have to go, but Ill update this at around 8:30pm est.

ghost commented 7 months ago

Okay, it was the vex extension, not C++.

Wiffed commented 7 months ago

I have the same issue, how did you fix this

ghost commented 7 months ago

I have the same issue, how did you fix this

See this: https://github.com/VEX-Robotics/vex-vsc-extension/discussions/10#discussioncomment-8437808

(I had my way of reinstalling the SDK and toolchain, or switch to vscode 1.85.2)