microsoft / vscode

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

Code is not running. #211207

Open fahim2443 opened 5 months ago

fahim2443 commented 5 months ago

Type: Bug

I check for my compiler and it's installed. But when I tried to run or build my code in c++ it says, "Cannot build and debug because the active file is not a C or C+ source file". But when I tried to run same code in online compiler it's runs well without error. Please help me to solve this problem. I have exam soon.

VS Code version: Code 1.88.1 (Universal) (e170252f762678dec6ca2cc69aba1570769a5d39, 2024-04-10T17:42:52.765Z) OS version: Darwin arm64 23.4.0 Modes:

System Info |Item|Value| |---|---| |CPUs|Apple M3 (8 x 24)| |GPU Status|2d_canvas: enabled
canvas_oop_rasterization: enabled_on
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
multiple_raster_threads: enabled_on
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
skia_graphite: disabled_off
video_decode: enabled
video_encode: enabled
webgl: enabled
webgl2: enabled
webgpu: enabled| |Load (avg)|2, 2, 2| |Memory (System)|16.00GB (0.34GB free)| |Process Argv|--crash-reporter-id 41277dd8-edd2-4cba-8d50-58f14f7adcf9| |Screen Reader|no| |VM|0%|
Extensions (48) Extension|Author (truncated)|Version ---|---|--- vscode-django|bat|1.15.0 emojisense|bie|0.10.0 vscode-tailwindcss|bra|0.10.5 npm-intellisense|chr|1.4.5 doxdocgen|csc|1.4.0 vscode-eslint|dba|2.4.4 python-environment-manager|don|1.2.4 python-extension-pack|don|1.7.0 es7-react-js-snippets|dsz|4.4.3 gitlens|eam|14.9.0 prettier-vscode|esb|10.4.0 auto-close-tag|for|0.5.15 auto-rename-tag|for|0.1.10 code-runner|for|0.12.2 c-cpp-runner|fra|9.4.7 vscode-pull-request-github|Git|0.86.1 vscode-cdnjs|Jak|0.19.0 better-cpp-syntax|jef|1.17.2 vsc-python-indent|Kev|1.18.0 csharp|ms-|2.23.15 vscode-dotnet-runtime|ms-|2.0.3 vscode-edge-devtools|ms-|2.1.5 debugpy|ms-|2024.4.0 python|ms-|2024.4.1 vscode-pylance|ms-|2024.4.1 remote-containers|ms-|0.354.0 remote-ssh|ms-|0.110.1 remote-ssh-edit|ms-|0.86.0 remote-wsl|ms-|0.88.0 cmake-tools|ms-|1.17.17 cpptools|ms-|1.19.9 cpptools-extension-pack|ms-|1.3.0 notepadplusplus-keybindings|ms-|1.0.7 remote-explorer|ms-|0.4.3 autodocstring|njp|0.6.1 material-icon-theme|PKi|5.1.0 polacode|pnp|0.3.4 LiveServer|rit|5.7.9 bootstrap4-vscode|the|6.1.0 pdf|tom|1.2.2 python-extended-snippets|tus|0.0.1 cmake|twx|0.0.17 vscode-lldb|vad|1.10.0 intellicode-api-usage-examples|Vis|0.2.8 vscodeintellicode|Vis|1.3.1 jinja|who|0.0.8 JavaScriptSnippets|xab|1.8.0 html-css-class-completion|Zig|1.20.0 (1 theme extensions excluded)
A/B Experiments ``` vsliv368cf:30146710 vspor879:30202332 vspor708:30202333 vspor363:30204092 vswsl492cf:30256860 vscod805cf:30301675 binariesv615:30325510 vsaa593cf:30376535 py29gd2263:31024239 c4g48928:30535728 azure-dev_surveyone:30548225 vscrpc:30673769 a9j8j154:30646983 962ge761:30959799 pythongtdpath:30769146 welcomedialog:30910333 pythonidxpt:30866567 pythonnoceb:30805159 asynctok:30898717 pythontestfixt:30902429 pythonregdiag2:30936856 pyreplss1:30897532 pythonmypyd1:30879173 pythoncet0:30885854 2e7ec940:31000449 pythontbext0:30879054 accentitlementsc:30995553 dsvsc016:30899300 dsvsc017:30899301 dsvsc018:30899302 cppperfnew:31000557 d34g3935:30971562 fegfb526:30981948 bg6jg535:30979843 ccp2r3:30993541 dsvsc020:30976470 pythonait:31006305 gee8j676:31009558 dsvsc021:30996838 bdiig495:31013172 pythoncenvpt:31022790 ```
roblourens commented 5 months ago

Please file on the extension you're using