microsoft / vscode-cpptools

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

Printf is 'undefined' even though it compiles #12778

Open Voidless7125 opened 1 month ago

Voidless7125 commented 1 month ago

Environment

Bug Summary and Steps to Reproduce

Bug Summary: When using Clang 18 or 19, intelasense refuses to see printf as defined. This will happen using any version of C++ intel sense. (With "cStandard": "gnu23", "cppStandard": "gnu++23",) or any version like C17, C11, etc.

Steps to reproduce:

  1. Install clang and ARM gcc, use clang as the compiler, and ARM gcc as C++ headers
  2. Set VsCode to any C++/C version and poof, printf is marked as undefined in intelasense, but compiles fine.

Configuration and Logs

Logs:
loggingLevel: Debug
Custom configuration provider 'Makefile Tools' registered
LSP: (received) cpptools/initialize (id: 1)
LSP: (invoked) cpptools/initialize (id: 1)
cpptools version (TypeScript): 1.22.6
cpptools version (native): 1.22.6.0
Autocomplete is enabled.
Error squiggles are enabled.
Hover is enabled.
IntelliSense Engine = default.
LSP: Sending response (id: 1)
LSP: (received) cpptools/queryCompilerDefaults (id: 2)
LSP: (invoked) cpptools/queryCompilerDefaults (id: 2)
LSP: Sending response (id: 2)
LSP: (received) cpptools/queryCompilerDefaults (id: 3)
LSP: (invoked) cpptools/queryCompilerDefaults (id: 3)
Querying compiler for default C++ language standard using command line: "c:\Users\%username%\AppData\Roaming\Code - Insiders\User\globalStorage\vexrobotics.vexcode\tools\cpp\toolchain_win32\clang\bin\clang" -x c++ -E -dM nul
LSP: (received) cpptools/didChangeCppProperties (id: 4)
Detected language standard version: c++14
Querying compiler's default target using command line: "c:\Users\%username%\AppData\Roaming\Code - Insiders\User\globalStorage\vexrobotics.vexcode\tools\cpp\toolchain_win32\clang\bin\clang" -dumpmachine
Compiler returned default target value: x86_64-pc-windows-msvc
Compiler info database not connected - skipping load.
Compiler query command line: "c:\Users\%username%\AppData\Roaming\Code - Insiders\User\globalStorage\vexrobotics.vexcode\tools\cpp\toolchain_win32\clang\bin\clang" -std=c17 -m64 -Wp,-v -fno-blocks -E -dM -x c nul
Attempting to get defaults from C compiler in "compilerPath" property: 'c:\Users\%username%\AppData\Roaming\Code - Insiders\User\globalStorage\vexrobotics.vexcode\tools\cpp\toolchain_win32\clang\bin\clang'
Compiler info database not connected - skipping load.
Compiler query command line: "c:\Users\%username%\AppData\Roaming\Code - Insiders\User\globalStorage\vexrobotics.vexcode\tools\cpp\toolchain_win32\clang\bin\clang" -std=c++14 -m64 -Wp,-v -fno-blocks -E -dM -x c++ nul
Attempting to get defaults from C++ compiler in "compilerPath" property: 'c:\Users\%username%\AppData\Roaming\Code - Insiders\User\globalStorage\vexrobotics.vexcode\tools\cpp\toolchain_win32\clang\bin\clang'
LSP: Sending response (id: 3)
LSP: (invoked) cpptools/didChangeCppProperties (id: 4)
Code browsing service initialized
Populating file name cache...
Compiler query command line: "c:\Users\%username%\AppData\Roaming\Code - Insiders\User\globalStorage\vexrobotics.vexcode\tools\cpp\toolchain_win32\clang\bin\clang" -std=gnu++23 -m32 -Wp,-v -fno-blocks -E -dM -x c++ nul
Compiler query command line: "c:\Users\%username%\AppData\Roaming\Code - Insiders\User\globalStorage\vexrobotics.vexcode\tools\cpp\toolchain_win32\clang\bin\clang" -std=gnu23 -m32 -Wp,-v -fno-blocks -E -dM -x c nul
Done populating filename cache. Elapsed time: 65 ms
Attempting to get defaults from C compiler in "compilerPath" property: 'c:\Users\%username%\AppData\Roaming\Code - Insiders\User\globalStorage\vexrobotics.vexcode\tools\cpp\toolchain_win32\clang\bin\clang'
Attempting to get defaults from C++ compiler in "compilerPath" property: 'c:\Users\%username%\AppData\Roaming\Code - Insiders\User\globalStorage\vexrobotics.vexcode\tools\cpp\toolchain_win32\clang\bin\clang'
  Unable to retrieve file system information for ${config:vexrobotics.vexcode.Cpp.Sdk.Home}\V5\V5_20240223_11_00_00\vexv5\gcc\include\sys. error = -1
  Folder: C:\USERS\%username%\APPDATA\ROAMING\CODE - INSIDERS\USER\GLOBALSTORAGE\VEXROBOTICS.VEXCODE\SDK\CPP\V5\V5_20240223_11_00_00\VEXV5\CLANG\19\INCLUDE\ will be indexed
  Folder: C:\USERS\%username%\APPDATA\ROAMING\CODE - INSIDERS\USER\GLOBALSTORAGE\VEXROBOTICS.VEXCODE\SDK\CPP\V5\V5_20240223_11_00_00\VEXV5\GCC\INCLUDE\ will be indexed
  Folder: C:\USERS\%username%\APPDATA\ROAMING\CODE - INSIDERS\USER\GLOBALSTORAGE\VEXROBOTICS.VEXCODE\SDK\CPP\V5\V5_20240223_11_00_00\VEXV5\INCLUDE\ will be indexed
  Folder: H:\DOCUMENTS\COMP-V5\ will be indexed
LSP: Sending response (id: 4)
Discovering files...
  Processing folder (recursive): C:\USERS\%username%\APPDATA\ROAMING\CODE - INSIDERS\USER\GLOBALSTORAGE\VEXROBOTICS.VEXCODE\SDK\CPP\V5\V5_20240223_11_00_00\VEXV5\GCC\INCLUDE\
  Processing folder (recursive): C:\USERS\%username%\APPDATA\ROAMING\CODE - INSIDERS\USER\GLOBALSTORAGE\VEXROBOTICS.VEXCODE\SDK\CPP\V5\V5_20240223_11_00_00\VEXV5\CLANG\19\INCLUDE\
  Processing folder (recursive): C:\USERS\%username%\APPDATA\ROAMING\CODE - INSIDERS\USER\GLOBALSTORAGE\VEXROBOTICS.VEXCODE\SDK\CPP\V5\V5_20240223_11_00_00\VEXV5\INCLUDE\
  Processing folder (recursive): H:\DOCUMENTS\COMP-V5\
  Discovering files: 2152 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: (received) cpptools/didChangeCppProperties (id: 5)
LSP: (invoked) cpptools/didChangeCppProperties (id: 5)
LSP: Sending response (id: 5)
LSP: (received) cpptools/didChangeVisibleTextEditors
LSP: (invoked) cpptools/didChangeVisibleTextEditors
LSP: (received) cpptools/didChangeVisibleTextEditors
LSP: (invoked) cpptools/didChangeVisibleTextEditors
LSP: (received) cpptools/pauseParsing
LSP: (invoked) cpptools/pauseParsing
LSP: (received) cpptools/clearCustomConfigurations
LSP: (invoked) cpptools/clearCustomConfigurations
LSP: (received) cpptools/clearCustomConfigurations
LSP: (invoked) cpptools/clearCustomConfigurations
LSP: (received) cpptools/clearCustomConfigurations
LSP: (invoked) cpptools/clearCustomConfigurations
LSP: (received) cpptools/resumeParsing
LSP: (invoked) cpptools/resumeParsing
LSP: (received) cpptools/didChangeCppProperties (id: 6)
LSP: (invoked) cpptools/didChangeCppProperties (id: 6)
Compiler query command line: "c:\Users\%username%\AppData\Roaming\Code - Insiders\User\globalStorage\vexrobotics.vexcode\tools\cpp\toolchain_win32\clang\bin\clang" -std=gnu++23 -m32 -Wp,-v -fno-blocks -E -dM -x c++ nul
Compiler query command line: "c:\Users\%username%\AppData\Roaming\Code - Insiders\User\globalStorage\vexrobotics.vexcode\tools\cpp\toolchain_win32\clang\bin\clang" -std=gnu23 -m32 -Wp,-v -fno-blocks -E -dM -x c nul
LSP: (received) cpptools/didChangeVisibleTextEditors
LSP: (received) cpptools/didChangeCppProperties (id: 7)
LSP: (received) cpptools/didChangeVisibleTextEditors
Attempting to get defaults from C compiler in "compilerPath" property: 'c:\Users\%username%\AppData\Roaming\Code - Insiders\User\globalStorage\vexrobotics.vexcode\tools\cpp\toolchain_win32\clang\bin\clang'
Attempting to get defaults from C++ compiler in "compilerPath" property: 'c:\Users\%username%\AppData\Roaming\Code - Insiders\User\globalStorage\vexrobotics.vexcode\tools\cpp\toolchain_win32\clang\bin\clang'
  Unable to retrieve file system information for ${config:vexrobotics.vexcode.Cpp.Sdk.Home}\V5\V5_20240223_11_00_00\vexv5\gcc\include\sys. error = -1
  Unable to retrieve file system information for c:/Users/%username%/AppData/Roaming/Code - Insiders/User/globalStorage/vexrobotics.vexcode/sdk/cpp/V5/V5_20240223_11_00_00/vexv5/clang/8.0.0/include/**. error = -1
  Unable to retrieve file system information for c:/Users/%username%/AppData/Roaming/Code - Insiders/User/globalStorage/vexrobotics.vexcode/sdk/cpp/V5/V5_20240223_11_00_00/vexv5/gcc/include/c++/4.9.3/**. error = -1
  Unable to retrieve file system information for c:/Users/%username%/AppData/Roaming/Code - Insiders/User/globalStorage/vexrobotics.vexcode/sdk/cpp/V5/V5_20240223_11_00_00/vexv5/gcc/include/c++/4.9.3/arm-none-eabi/thumb. error = -1
  Folder: C:\USERS\%username%\APPDATA\ROAMING\CODE - INSIDERS\USER\GLOBALSTORAGE\VEXROBOTICS.VEXCODE\SDK\CPP\V5\V5_20240223_11_00_00\VEXV5\GCC\INCLUDE\ will be indexed
  Folder: C:\USERS\%username%\APPDATA\ROAMING\CODE - INSIDERS\USER\GLOBALSTORAGE\VEXROBOTICS.VEXCODE\SDK\CPP\V5\V5_20240223_11_00_00\VEXV5\INCLUDE\ will be indexed
  Folder: H:\DOCUMENTS\COMP-V5\ will be indexed
LSP: Sending response (id: 6)
LSP: (invoked) cpptools/didChangeCppProperties (id: 7)
Discovering files...
LSP: Sending response (id: 7)
LSP: (invoked) cpptools/didChangeVisibleTextEditors
  Processing folder (recursive): C:\USERS\%username%\APPDATA\ROAMING\CODE - INSIDERS\USER\GLOBALSTORAGE\VEXROBOTICS.VEXCODE\SDK\CPP\V5\V5_20240223_11_00_00\VEXV5\GCC\INCLUDE\
  Processing folder (recursive): H:\DOCUMENTS\COMP-V5\
  Processing folder (recursive): C:\USERS\%username%\APPDATA\ROAMING\CODE - INSIDERS\USER\GLOBALSTORAGE\VEXROBOTICS.VEXCODE\SDK\CPP\V5\V5_20240223_11_00_00\VEXV5\INCLUDE\
  Discovering files: 1894 file(s) processed
  258 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: (received) cpptools/didChangeCppProperties (id: 8)
LSP: (invoked) cpptools/didChangeCppProperties (id: 8)
Compiler query command line: "c:\Users\%username%\AppData\Roaming\Code - Insiders\User\globalStorage\vexrobotics.vexcode\tools\cpp\toolchain_win32\clang\bin\clang" -std=gnu++23 -m32 -Wp,-v -fno-blocks -E -dM -x c++ nul
Compiler query command line: "c:\Users\%username%\AppData\Roaming\Code - Insiders\User\globalStorage\vexrobotics.vexcode\tools\cpp\toolchain_win32\clang\bin\clang" -std=gnu23 -m32 -Wp,-v -fno-blocks -E -dM -x c nul
Attempting to get defaults from C compiler in "compilerPath" property: 'c:\Users\%username%\AppData\Roaming\Code - Insiders\User\globalStorage\vexrobotics.vexcode\tools\cpp\toolchain_win32\clang\bin\clang'
Attempting to get defaults from C++ compiler in "compilerPath" property: 'c:\Users\%username%\AppData\Roaming\Code - Insiders\User\globalStorage\vexrobotics.vexcode\tools\cpp\toolchain_win32\clang\bin\clang'
  Unable to retrieve file system information for ${config:vexrobotics.vexcode.Cpp.Sdk.Home}\V5\V5_20240223_11_00_00\vexv5\gcc\include\sys. error = -1
  Unable to retrieve file system information for h:/Documents/Comp-V5/${vex_sdIncludes}. error = -1
  Folder: H:\DOCUMENTS\COMP-V5\ will be indexed
LSP: Sending response (id: 8)
Discovering files...
  Processing folder (recursive): H:\DOCUMENTS\COMP-V5\
  Discovering files: 37 file(s) processed
LSP: (received) cpptools/didChangeCppProperties (id: 9)
LSP: (invoked) cpptools/didChangeCppProperties (id: 9)
Compiler query command line: "c:\Users\%username%\AppData\Roaming\Code - Insiders\User\globalStorage\vexrobotics.vexcode\tools\cpp\toolchain_win32\clang\bin\clang" -std=gnu23 -m32 -Wp,-v -fno-blocks -E -dM -x c nul
Compiler query command line: "c:\Users\%username%\AppData\Roaming\Code - Insiders\User\globalStorage\vexrobotics.vexcode\tools\cpp\toolchain_win32\clang\bin\clang" -std=gnu++23 -m32 -Wp,-v -fno-blocks -E -dM -x c++ nul
Attempting to get defaults from C compiler in "compilerPath" property: 'c:\Users\%username%\AppData\Roaming\Code - Insiders\User\globalStorage\vexrobotics.vexcode\tools\cpp\toolchain_win32\clang\bin\clang'
Attempting to get defaults from C++ compiler in "compilerPath" property: 'c:\Users\%username%\AppData\Roaming\Code - Insiders\User\globalStorage\vexrobotics.vexcode\tools\cpp\toolchain_win32\clang\bin\clang'
  Unable to retrieve file system information for ${config:vexrobotics.vexcode.Cpp.Sdk.Home}\V5\V5_20240223_11_00_00\vexv5\gcc\include\sys. error = -1
  Folder: C:\USERS\%username%\APPDATA\ROAMING\CODE - INSIDERS\USER\GLOBALSTORAGE\VEXROBOTICS.VEXCODE\SDK\CPP\V5\V5_20240223_11_00_00\VEXV5\CLANG\19\INCLUDE\ will be indexed
  Folder: C:\USERS\%username%\APPDATA\ROAMING\CODE - INSIDERS\USER\GLOBALSTORAGE\VEXROBOTICS.VEXCODE\SDK\CPP\V5\V5_20240223_11_00_00\VEXV5\GCC\INCLUDE\ will be indexed
  Folder: C:\USERS\%username%\APPDATA\ROAMING\CODE - INSIDERS\USER\GLOBALSTORAGE\VEXROBOTICS.VEXCODE\SDK\CPP\V5\V5_20240223_11_00_00\VEXV5\INCLUDE\ will be indexed
  Folder: H:\DOCUMENTS\COMP-V5\ will be indexed
  1032 file(s) removed from database
Done discovering files.
LSP: Sending response (id: 9)
Discovering files...
  Processing folder (recursive): C:\USERS\%username%\APPDATA\ROAMING\CODE - INSIDERS\USER\GLOBALSTORAGE\VEXROBOTICS.VEXCODE\SDK\CPP\V5\V5_20240223_11_00_00\VEXV5\INCLUDE\
  Processing folder (recursive): C:\USERS\%username%\APPDATA\ROAMING\CODE - INSIDERS\USER\GLOBALSTORAGE\VEXROBOTICS.VEXCODE\SDK\CPP\V5\V5_20240223_11_00_00\VEXV5\CLANG\19\INCLUDE\
  Processing folder (recursive): C:\USERS\%username%\APPDATA\ROAMING\CODE - INSIDERS\USER\GLOBALSTORAGE\VEXROBOTICS.VEXCODE\SDK\CPP\V5\V5_20240223_11_00_00\VEXV5\GCC\INCLUDE\
  Processing folder (recursive): H:\DOCUMENTS\COMP-V5\
  Discovering files: 2152 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.

C++ config:
{
    "env": {
        "vex_compilerPath": "${config:vexrobotics.vexcode.Cpp.Toolchain.Path}\\clang\\bin\\clang",
        "vex_sdkPath": "${config:vexrobotics.vexcode.Cpp.Sdk.Home}\\V5\\V5_20240223_11_00_00\\vexv5",
        "vex_gcc": "${vex_sdkPath}/gcc/include/c++/13.3.1",
        "vex_sdkIncludes": [
            "${vex_sdkPath}/clang/19/include/**",
            "${vex_gcc}/**",
            "${vex_gcc}/arm-none-eabi/thumb/v7-a+fp/softfp/**",
            "${vex_sdkPath}/gcc/include/**",
            "${vex_sdkPath}/include/**",
            "${workspaceFolder}/include/**",
            "${workspaceFolder}/src/**"
        ]
    },
    "configurations": [
        {
            "name": "Win32",
            "includePath": [
                "${vex_sdkIncludes}"
            ],
            "defines": ["_DEBUG"],
            "compilerPath": "${vex_compilerPath}",
            "cStandard": "gnu23",
            "cppStandard": "gnu++23",
            "intelliSenseMode": "windows-clang-x86",
            "configurationProvider": "ms-vscode.makefile-tools"
        },
        {
            "name": "Mac",
            "includePath": [
                "${vex_sdkIncludes}"
            ],
            "compilerPath": "${vex_compilerPath}",
            "cStandard": "gnu23",
            "cppStandard": "gnu++23",
            "intelliSenseMode": "macos-clang-x86",
            "configurationProvider": "ms-vscode.makefile-tools"
        },
        {
            "name": "Linux",
            "includePath": [
                "${vex_sdkIncludes}"
            ],
            "compilerPath": "${vex_compilerPath}",
            "cStandard": "gnu23",
            "cppStandard": "gnu++23",
            "intelliSenseMode": "linux-clang-x86",
            "configurationProvider": "ms-vscode.makefile-tools"
        }
    ],
    "version": 4
}

-------- Diagnostics - 9/27/2024, 1:11:15 PM
Version: 1.22.6
Current Configuration:
{
    "name": "Win32",
    "includePath": [
        "c:/Users/%username%/AppData/Roaming/Code - Insiders/User/globalStorage/vexrobotics.vexcode/sdk/cpp/V5/V5_20240223_11_00_00/vexv5/clang/19/include/**",
        "c:/Users/%username%/AppData/Roaming/Code - Insiders/User/globalStorage/vexrobotics.vexcode/sdk/cpp/V5/V5_20240223_11_00_00/vexv5/gcc/include/c++/13.3.1/**",
        "c:/Users/%username%/AppData/Roaming/Code - Insiders/User/globalStorage/vexrobotics.vexcode/sdk/cpp/V5/V5_20240223_11_00_00/vexv5/gcc/include/c++/13.3.1/arm-none-eabi/thumb/v7-a+fp/softfp/**",
        "c:/Users/%username%/AppData/Roaming/Code - Insiders/User/globalStorage/vexrobotics.vexcode/sdk/cpp/V5/V5_20240223_11_00_00/vexv5/gcc/include/**",
        "c:/Users/%username%/AppData/Roaming/Code - Insiders/User/globalStorage/vexrobotics.vexcode/sdk/cpp/V5/V5_20240223_11_00_00/vexv5/include/**",
        "h:/Documents/Comp-V5/include/**",
        "h:/Documents/Comp-V5/src/**"
    ],
    "defines": [
        "_DEBUG"
    ],
    "compilerPath": "c:\\Users\\%username%\\AppData\\Roaming\\Code - Insiders\\User\\globalStorage\\vexrobotics.vexcode\\tools\\cpp\\toolchain_win32\\clang\\bin\\clang",
    "cStandard": "gnu23",
    "cppStandard": "gnu++23",
    "intelliSenseMode": "windows-clang-x86",
    "configurationProvider": "ms-vscode.makefile-tools",
    "compilerPathIsExplicit": true,
    "cStandardIsExplicit": true,
    "cppStandardIsExplicit": true,
    "intelliSenseModeIsExplicit": true,
    "compilerPathInCppPropertiesJson": "${vex_compilerPath}",
    "configurationProviderInCppPropertiesJson": "ms-vscode.makefile-tools",
    "mergeConfigurations": false,
    "browse": {
        "path": [
            "c:/Users/%username%/AppData/Roaming/Code - Insiders/User/globalStorage/vexrobotics.vexcode/sdk/cpp/V5/V5_20240223_11_00_00/vexv5/clang/19/include/**",
            "c:/Users/%username%/AppData/Roaming/Code - Insiders/User/globalStorage/vexrobotics.vexcode/sdk/cpp/V5/V5_20240223_11_00_00/vexv5/gcc/include/c++/13.3.1/**",
            "c:/Users/%username%/AppData/Roaming/Code - Insiders/User/globalStorage/vexrobotics.vexcode/sdk/cpp/V5/V5_20240223_11_00_00/vexv5/gcc/include/c++/13.3.1/arm-none-eabi/thumb/v7-a+fp/softfp/**",
            "c:/Users/%username%/AppData/Roaming/Code - Insiders/User/globalStorage/vexrobotics.vexcode/sdk/cpp/V5/V5_20240223_11_00_00/vexv5/gcc/include/**",
            "c:/Users/%username%/AppData/Roaming/Code - Insiders/User/globalStorage/vexrobotics.vexcode/sdk/cpp/V5/V5_20240223_11_00_00/vexv5/include/**",
            "h:/Documents/Comp-V5/include/**",
            "h:/Documents/Comp-V5/src/**",
            "${workspaceFolder}"
        ],
        "limitSymbolsToIncludedHeaders": true
    }
}
Modified Settings:
{
    "C_Cpp.intelliSenseUpdateDelay": 500,
    "C_Cpp.autocompleteAddParentheses": true,
    "C_Cpp.errorSquiggles": "enabledIfIncludesResolve",
    "C_Cpp.default.systemIncludePath": [
        "${config:vexrobotics.vexcode.Cpp.Sdk.Home}\\V5\\V5_20240223_11_00_00\\vexv5\\gcc\\include\\sys"
    ],
    "C_Cpp.codeAnalysis.updateDelay": 0,
    "C_Cpp.loggingLevel": "Debug"
}
Additional Tracked Settings:
{
    "editorTabSize": 4,
    "editorInsertSpaces": true,
    "editorAutoClosingBrackets": "languageDefined",
    "filesEncoding": "utf8",
    "filesAssociations": {},
    "filesExclude": {
        "**/.git": true,
        "**/.svn": true,
        "**/.hg": true,
        "**/CVS": true,
        "**/.DS_Store": true,
        "**/Thumbs.db": true
    },
    "filesAutoSaveAfterDelay": true,
    "editorInlayHintsEnabled": true,
    "editorParameterHintsEnabled": true,
    "searchExclude": {
        "**/node_modules": true,
        "**/bower_components": true,
        "**/*.code-search": true
    },
    "workbenchSettingsEditor": "ui"
}
cpptools version (native): 1.22.6.0
Current database path: C:\USERS\%username%\APPDATA\LOCAL\MICROSOFT\VSCODE-CPPTOOLS\47171E6200878930630735028DE3F1F0\.BROWSE.VC.DB
No active translation units.

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

Makefile tools
No current configuration is defined in the workspace state. Assuming 'Default'.
No target defined in the workspace state. Assuming 'Default'.
Dropping various extension output files at c:\Users\913296\AppData\Roaming\Code - Insiders\User\workspaceStorage\47171e6200878930630735028de3f1f0\ms-vscode.makefile-tools
Logging level: Debug
Configurations cached at c:\Users\913296\AppData\Roaming\Code - Insiders\User\workspaceStorage\47171e6200878930630735028de3f1f0\ms-vscode.makefile-tools\configurationCache.log
No path to the makefile is defined in the settings file.
No folder path to the makefile is defined in the settings file.
Always pre-configure: false
Always post-configure: false
Dry-run switches: '--always-make', '--keep-going', '--print-directory'
No current launch configuration is set in the workspace state.
Default launch configuration: MIMode = undefined,
                miDebuggerPath = undefined,
                stopAtEntry = undefined,
                symbolSearchPath = undefined
Configure on open: true
Configure on edit: true
Configure after command: true
Only .PHONY targets: false
Save before build or configure: true
Build before launch: true
Clear output before build: true
Ignore directory commands: true
compile_commands.json path: null
Deduced command 'make.exe ' for configuration "Default"
Make was not given any path in settings and is also not found on the environment path.
Sending telemetry: eventName = makeNotFound
properties: reason = "not found in environment path"
Saving opened files before build.
Generating configuration cache with command: 'make.exe --dry-run --always-make --keep-going --print-directory'
Writing the dry-run output: c:\Users\913296\AppData\Roaming\Code - Insiders\User\workspaceStorage\47171e6200878930630735028de3f1f0\ms-vscode.makefile-tools\dryrun.log
Spawning child process with:
 process name: make.exe
 process args: --dry-run,--always-make,--keep-going,--print-directory
 working directory: h:\Documents\Comp-V5
 shell type: default
Generating dry-run elapsed time: 0.06
The make dry-run command failed.
IntelliSense may work only partially or not at all.
'make.exe' is not recognized as an internal or external command,
operable program or batch file.

You can see the detailed dry-run output at c:\Users\913296\AppData\Roaming\Code - Insiders\User\workspaceStorage\47171e6200878930630735028de3f1f0\ms-vscode.makefile-tools\dryrun.log
Make sure that the extension is invoking the same make command as in your development prompt environment.
You may need to define or tweak a custom makefile configuration in settings via 'makefile.configurations' like described here: [link]
Also make sure your code base does not have any known issues with the dry-run switches used by this extension (makefile.dryrunSwitches).
If you are not able to fix the dry-run, open a GitHub issue in Makefile Tools repo: https://github.com/microsoft/vscode-makefile-tools/issues
Preprocessing: "c:\Users\913296\AppData\Roaming\Code - Insiders\User\workspaceStorage\47171e6200878930630735028de3f1f0\ms-vscode.makefile-tools\dryrun.log"
Preprocess elapsed time: 0
Parsing for IntelliSense.
Updating the CppTools IntelliSense Configuration Provider.
Parsing dry-run output for CppTools Custom Configuration Provider.
Sending Workspace Browse Configuration: -----------------------------------
    Browse Path: 
    Standard: undefined
    Compiler Path: undefined
    Compiler Arguments: 
----------------------------------------------------------------------------
Parsing for IntelliSense elapsed time: 0.003
Parsing for launch targets.
No launch configurations have been detected.
Complete list of launch targets: 
Parsing for launch targets elapsed time: 0.002
Generating parse content for build targets.
Generating targets information with command: 'make.exe all --print-data-base --no-builtin-variables --no-builtin-rules --question'
Writing the dry-run output: c:\Users\913296\AppData\Roaming\Code - Insiders\User\workspaceStorage\47171e6200878930630735028de3f1f0\ms-vscode.makefile-tools\targets.log
Spawning child process with:
 process name: make.exe
 process args: all,--print-data-base,--no-builtin-variables,--no-builtin-rules,--question
 working directory: h:\Documents\Comp-V5
 shell type: default
Generating dry-run elapsed time: 0.051
Parsing for build targets from: "c:\Users\913296\AppData\Roaming\Code - Insiders\User\workspaceStorage\47171e6200878930630735028de3f1f0\ms-vscode.makefile-tools\targets.log"
No build targets have been detected.
Complete list of build targets: 
Parsing build targets elapsed time: 0
Configure finished. The status for all the subphases that ran:
loadFromCache: return code = -3, elapsed time = 0
generateParseContent: return code = 1, elapsed time = 0.06
preprocessParseContent: return code = 0, elapsed time = 0
parseIntelliSense: return code = 0, elapsed time = 0.003
parseLaunch: return code = 0, elapsed time = 0.002
dryrunTargets: return code = 1, elapsed time = 0.051
parseTargets: return code = 0, elapsed time = 0
Configure succeeded.
Configure elapsed time: 0.241
Sending telemetry: eventName = configure
properties: firstTime = "false",makeDryRun = "true",readCache = "false",isClean = "true",processTargetsSeparately = "false",resetBuildTarget = "false",triggeredBy = "configure dirty (on open), settings (configureOnOpen)",buildTarget = "(unset)"
measures: numberBuildTargets = "0",numberLaunchTargets = "0",numberIndexedSourceFiles = "0",numberMakefileConfigurations = "0",totalElapsedTime = "0.241",exitCode = "0",loadFromCache.exitCode = "-3",loadFromCache.elapsed = "0",generateParseContent.exitCode = "1",generateParseContent.elapsed = "0.06",preprocessParseContent.exitCode = "0",preprocessParseContent.elapsed = "0",parseIntelliSense.exitCode = "0",parseIntelliSense.elapsed = "0.003",parseLaunch.exitCode = "0",parseLaunch.elapsed = "0.002",dryrunTargets.exitCode = "1",dryrunTargets.elapsed = "0.051",parseTargets.exitCode = "0",parseTargets.elapsed = "0"
Sending telemetry: eventName = settings
properties: makefile.makeDirectory = "undefined",makefile.makefilePath = "undefined",makefile.configureOnOpen = "true"

(I added makefile because I use it as a configuration provider, "configurationProvider": "ms-vscode.makefile-tools"``` but even with this off, it's still there.

Other Extensions

C++, Makefile tools, are the ones I have left on, I disabled all other ones, but it made no effect.

Additional context

No response

sean-mcmanus commented 1 month ago

@Voidless7125 Your logging doesn't indicate that you've opened a file. Can you add the logging that occurs after you open a file?

Voidless7125 commented 1 month ago

Oh sorry about that, I'll get the logs as soon as I can, it will take ~1.5h because I can't access my computer in my cyber security class. I will recreate this and open a file at home.

github-actions[bot] commented 2 weeks ago

Hey @sean-mcmanus, this issue might need further attention.

@Voidless7125, you can help us out by closing this issue if the problem no longer exists, or adding more information.