microsoft / vscode

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

C&C++ cannot recognize like "int a[i][j]={0}" #230386

Closed LFRon closed 3 weeks ago

LFRon commented 3 weeks ago

Type: Bug

I am coding with C++ and found if I type "int a[5][5]={0}",it will show error at the VSCode but compile successfully,could developers fix the problem that do not show the error message?Thanks!

VS Code version: Code 1.93.1 (38c31bc77e0dd6ae88a4e9cc93428cc27a56ba40, 2024-09-11T17:20:05.685Z) OS version: Linux x64 6.11.0-1005-oem Modes:

System Info |Item|Value| |---|---| |CPUs|AMD Ryzen 7 8845HS w/ Radeon 780M Graphics (16 x 4683)| |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: disabled_software
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: disabled_off
webnn: disabled_off| |Load (avg)|1, 1, 2| |Memory (System)|29.17GB (19.51GB free)| |Process Argv|--crash-reporter-id 6897e141-785b-46bf-a445-cabf718f924a| |Screen Reader|no| |VM|0%| |DESKTOP_SESSION|plasmawayland| |XDG_CURRENT_DESKTOP|KDE| |XDG_SESSION_DESKTOP|KDE| |XDG_SESSION_TYPE|wayland|
Extensions (22) Extension|Author (truncated)|Version ---|---|--- codegeex|AMi|2.17.0 vscode-docker|ms-|1.29.3 vscode-language-pack-zh-hans|MS-|1.93.2024091109 vscode-kubernetes-tools|ms-|1.3.16 debugpy|ms-|2024.10.0 python|ms-|2024.14.1 vscode-pylance|ms-|2024.9.2 remote-containers|ms-|0.384.0 cmake-tools|ms-|1.19.52 cpptools|ms-|1.21.6 cpptools-extension-pack|ms-|1.3.0 java|red|1.35.1 vscode-yaml|red|1.15.0 cmake|twx|0.0.17 intellicode-api-usage-examples|Vis|0.2.8 vscodeintellicode|Vis|1.3.1 vscode-gradle|vsc|3.16.4 vscode-java-debug|vsc|0.58.0 vscode-java-dependency|vsc|0.24.0 vscode-java-pack|vsc|0.29.0 vscode-java-test|vsc|0.42.0 vscode-maven|vsc|0.44.0 (1 theme extensions excluded)
A/B Experiments ``` vsliv368:30146709 vspor879:30202332 vspor708:30202333 vspor363:30204092 vscod805cf:30301675 binariesv615:30325510 vsaa593:30376534 py29gd2263:31024239 c4g48928:30535728 azure-dev_surveyone:30548225 a9j8j154:30646983 962ge761:30959799 pythongtdpath:30769146 pythonnoceb:30805159 asynctok:30898717 pythonmypyd1:30879173 2e7ec940:31000449 pythontbext0:30879054 dsvsc016:30899300 dsvsc017:30899301 dsvsc018:30899302 cppperfnew:31000557 dsvsc020:30976470 pythonait:31006305 dsvsc021:30996838 f3je6385:31013174 a69g1124:31058053 dvdeprecation:31068756 dwnewjupytercf:31046870 impr_priority:31102340 nativerepl1:31139838 refactort:31108082 pythonrstrctxt:31112756 flighttreat:31134774 wkspc-onlycs-t:31132770 wkspc-ranged-t:31151552 cf971741:31144450 autoexpandse:31146404 notype1:31151523 5fd0e150:31146321 ```

图片

zwuis commented 3 weeks ago

It seems not relavent to vscode, but the 'cpptools' extension. Please open issue in https://github.com/microsoft/vscode-cpptools.

gjsjohnmurray commented 3 weeks ago

/extC++

vs-code-engineering[bot] commented 3 weeks ago

It looks like this is caused by the C++ extension. Please file the issue to the C++ extension repository. Make sure to check their issue reporting template and provide them relevant information such as the extension version you're using. See also our issue reporting guidelines for more information.

Happy Coding!