microsoft / vscode

Visual Studio Code
https://code.visualstudio.com
MIT License
163.75k stars 29.1k forks source link

False command-line error #179285

Closed alinichim closed 1 year ago

alinichim commented 1 year ago

Type: Bug

C files show a command-line error: "command-line error: language modes specified are incompatible". This is not true of course, the code compiles just fine and the error disappears after a couple of window reloads.

VS Code version: Code 1.77.1 (b7886d7461186a5eac768481578c1d7ca80e2d21, 2023-04-04T23:20:37.202Z) OS version: Linux x64 5.10.0-21-amd64 Modes: Sandboxed: No

System Info |Item|Value| |---|---| |CPUs|Intel(R) Core(TM) i7-7700K CPU @ 4.20GHz (4 x 4200)| |GPU Status|2d_canvas: unavailable_software
canvas_oop_rasterization: disabled_off
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: disabled_software
multiple_raster_threads: enabled_on
opengl: disabled_off
rasterization: disabled_software
raw_draw: disabled_off_ok
skia_renderer: enabled_on
video_decode: disabled_software
video_encode: disabled_software
vulkan: disabled_off
webgl: unavailable_software
webgl2: unavailable_software
webgpu: disabled_off| |Load (avg)|2, 1, 0| |Memory (System)|7.77GB (5.77GB free)| |Process Argv|. --crash-reporter-id 987ca314-b09b-4dee-a21f-917026d900a9| |Screen Reader|no| |VM|100%| |DESKTOP_SESSION|plasma| |XDG_CURRENT_DESKTOP|KDE| |XDG_SESSION_DESKTOP|plasma| |XDG_SESSION_TYPE|x11|
Extensions (48) Extension|Author (truncated)|Version ---|---|--- language-x86-64-assembly|13x|3.0.0 better-comments|aar|3.0.2 asciidoctor-vscode|asc|2.9.8 doxdocgen|csc|1.4.0 vsc-material-theme|Equ|33.8.0 matlab|Gim|2.3.1 vscode-pull-request-github|Git|0.62.0 go|gol|0.38.0 vscode-test-explorer|hbe|2.21.1 Ionide-fsharp|Ion|7.5.2 latex-workshop|Jam|9.8.2 better-cpp-syntax|jef|1.17.2 rainbow-csv|mec|3.6.0 vscode-docker|ms-|1.24.0 csharp|ms-|1.25.4 dotnet-interactive-vscode|ms-|1.0.4172011 vscode-dotnet-pack|ms-|1.0.12 isort|ms-|2022.8.0 python|ms-|2023.6.0 vscode-pylance|ms-|2023.3.40 jupyter|ms-|2023.3.1000892223 jupyter-keymap|ms-|1.1.0 jupyter-renderers|ms-|1.0.15 vscode-jupyter-cell-tags|ms-|0.1.8 vscode-jupyter-slideshow|ms-|0.1.5 remote-containers|ms-|0.288.0 cmake-tools|ms-|1.13.45 cpptools|ms-|1.15.1 cpptools-extension-pack|ms-|1.3.0 makefile-tools|ms-|0.6.0 powershell|ms-|2023.3.3 test-adapter-converter|ms-|0.1.7 vsliveshare|ms-|1.0.5834 vsliveshare-audio|ms-|0.1.93 material-icon-theme|PKi|4.25.0 java|red|1.16.0 cmake|twx|0.0.17 intellicode-api-usage-examples|Vis|0.2.7 vscodeintellicode|Vis|1.2.30 vscode-gradle|vsc|3.12.7 vscode-java-debug|vsc|0.49.1 vscode-java-dependency|vsc|0.21.2 vscode-java-pack|vsc|0.25.10 vscode-java-test|vsc|0.38.2 vscode-maven|vsc|0.41.0 vscode-spring-initializr|vsc|0.11.2 code-d|web|0.23.2 material-theme|zhu|3.15.8 (8 theme extensions excluded)
A/B Experiments ``` vsliv368:30146709 vsreu685:30147344 python383:30185418 vspor879:30202332 vspor708:30202333 vspor363:30204092 vslsvsres303:30308271 vserr242cf:30382550 pythontb:30283811 vsjup518:30340749 pythonptprofiler:30281270 vshan820:30294714 vstes263cf:30335440 vscoreces:30445986 pythondataviewer:30285071 vscod805cf:30301675 binariesv615:30325510 bridge0708:30335490 bridge0723:30353136 cmake_vspar411:30581797 vsaa593:30376534 pythonvs932:30410667 cppdebug:30492333 vscaat:30438848 vsclangdf:30486550 c4g48928:30535728 dsvsc012cf:30540253 pynewext54:30695312 azure-dev_surveyone:30548225 nodejswelcome1cf:30587006 3biah626:30602489 pyind779:30671433 89544117:30613380 pythonsymbol12:30671437 6233i204:30672705 vsccsb:30705552 pythonb192cf:30669361 defaultazurewalk:30687958 pythonms35:30701012 03d35959:30706073 pythonclientmv:30705673 ```
IllusionMH commented 1 year ago

/causedByExtension

This issue is provided by extension and should be reported in extension's repo.

Please check for duplicate first, as https://github.com/microsoft/vscode-cpptools/issues/9684 looks similar to this one

vscodenpa commented 1 year ago

This issue is caused by an extension, please file it with the repository (or contact) the extension has linked in its overview in VS Code or the marketplace for VS Code. See also our issue reporting guidelines. If you don't know which extension is causing the problem, you can run Help: Start extension bisect from the command palette (F1) to help identify the problem extension.

Happy Coding!