microsoft / vscode

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

The code suggestion and code auto-completion functions are not working properly. #207383

Closed scirac closed 6 months ago

scirac commented 6 months ago

Type: Bug

I use in WSL 2.0 , after the lastest update. i found the code suggestion and code auto-completion functions are not working. However, this issue does not occur immediately after I start the software, it begins to happen after using it for about thirty to forty minutes. Restarting the software did not resolve the issue.

version: 1.87.1 (user setup) 1e790d77f81672c49be070e04474901747115651 2024-03-06T00:21:36.258Z Electron: 27.3.2 ElectronBuildId: 26836302 Chromium: 118.0.5993.159 Node.js: 18.17.1 V8: 11.8.172.18-electron.0 OS: Windows_NT x64 10.0.19043

VS Code version: Code 1.87.1 (1e790d77f81672c49be070e04474901747115651, 2024-03-06T00:21:36.258Z) OS version: Windows_NT x64 10.0.19043 Modes: Remote OS version: Linux x64 5.10.16.3-microsoft-standard-WSL2

System Info |Item|Value| |---|---| |CPUs|11th Gen Intel(R) Core(TM) i5-1135G7 @ 2.40GHz (8 x 1382)| |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
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: enabled| |Load (avg)|undefined| |Memory (System)|15.75GB (4.62GB free)| |Process Argv|--folder-uri=vscode-remote://wsl+Ubuntu/mnt/e/work/code/HQ_Speech_1Mic --remote=wsl+Ubuntu --crash-reporter-id 7df69232-bf53-49af-8661-e135baa14e1c| |Screen Reader|no| |VM|0%| |Item|Value| |---|---| |Remote|WSL: Ubuntu| |OS|Linux x64 5.10.16.3-microsoft-standard-WSL2| |CPUs|11th Gen Intel(R) Core(TM) i5-1135G7 @ 2.40GHz (8 x 1382)| |Memory (System)|12.28GB (10.42GB free)| |VM|0%|
Extensions (13) Extension|Author (truncated)|Version ---|---|--- better-cpp-syntax|jef|1.17.2 remote-wsl|ms-|0.86.0 vscode-language-pack-zh-hans|MS-|1.87.2024030609 debugpy|ms-|2024.2.0 python|ms-|2024.2.1 vscode-pylance|ms-|2024.2.3 cmake-tools|ms-|1.17.17 cpptools|ms-|1.19.7 cpptools-extension-pack|ms-|1.3.0 makefile-tools|ms-|0.8.22 gnu-mapfiles|tro|1.1.0 cmake|twx|0.0.17 vscode-counter|uct|3.4.0 (2 theme extensions excluded)
A/B Experiments ``` vsliv368:30146709 vspor879:30202332 vspor708:30202333 vspor363:30204092 vscod805:30301674 binariesv615:30325510 vsaa593cf:30376535 py29gd2263:30899288 c4g48928:30535728 azure-dev_surveyone:30548225 962ge761:30959799 pythongtdpath:30769146 pythonidxpt:30866567 pythonnoceb:30805159 asynctok:30898717 pythontestfixt:30902429 pythonregdiag2:30936856 pyreplss1:30897532 pythonmypyd1:30879173 pythoncet0:30885854 pythontbext0:30879054 dsvsc016:30899300 dsvsc017:30899301 dsvsc018:30899302 pydisww2:30981708 cppperfnew:30979542 d34g3935:30971562 fegfb526:30981948 bg6jg535:30979843 ccp1r6:30958156 dsvsc020:30976470 ```
jonathanxia commented 6 months ago

For the record, I'm seeing this exact issue as well. Here are my details in case it is helpful as well.

VS Code version: Code 1.87.1 (1e790d77f81672c49be070e04474901747115651, 2024-03-06T00:21:36.258Z) OS version: Windows_NT x64 10.0.22631 Modes: Remote OS version: Linux x64 4.4.0-22621-Microsoft Remote OS version: Linux x64 4.4.0-22621-Microsoft

System Info |Item|Value| |---|---| |CPUs|AMD Ryzen 7 3800X 8-Core Processor (16 x 3900)| |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
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: enabled| |Load (avg)|undefined| |Memory (System)|63.95GB (44.47GB free)| |Process Argv|--crash-reporter-id 6994e4d1-bfee-40fb-a5b3-4e9ac2583bae| |Screen Reader|no| |VM|0%| |Item|Value| |---|---| |Remote|WSL: Ubuntu-20.04| |OS|Linux x64 4.4.0-22621-Microsoft| |CPUs|AMD Ryzen 7 3800X 8-Core Processor (16 x 3900)| |Memory (System)|63.95GB (44.47GB free)| |VM|0%| |Item|Value| |---|---| |Remote|WSL: Ubuntu-20.04| |OS|Linux x64 4.4.0-22621-Microsoft| |CPUs|AMD Ryzen 7 3800X 8-Core Processor (16 x 3900)| |Memory (System)|63.95GB (44.47GB free)| |VM|0%|
Extensions (18) Extension|Author (truncated)|Version ---|---|--- jupyter-keymap|ms-|1.1.2 remote-wsl|ms-|0.86.0 pdf|tom|1.2.2 vim|vsc|1.27.2 competitive-programming-helper|Div|6.1.0 gitlens|eam|14.9.0 code2snippet|lij|0.1.1 vscode-latex|mat|1.3.0 debugpy|ms-|2024.2.0 python|ms-|2024.2.1 vscode-pylance|ms-|2024.2.3 jupyter|ms-|2024.2.0 jupyter-keymap|ms-|1.1.2 jupyter-renderers|ms-|1.0.17 vscode-jupyter-cell-tags|ms-|0.1.8 vscode-jupyter-slideshow|ms-|0.1.5 cpptools|ms-|1.19.7 cpptools-extension-pack|ms-|1.3.0 (3 theme extensions excluded)
A/B Experiments ``` vsliv368:30146709 vspor879:30202332 vspor708:30202333 vspor363:30204092 vscod805cf:30301675 binariesv615:30325510 vsaa593:30376534 py29gd2263:30899288 c4g48928:30535728 azure-dev_surveyone:30548225 962ge761:30959799 pythongtdpath:30769146 welcomedialogc:30910334 pythonidxpt:30866567 pythonnoceb:30805159 asynctok:30898717 pythontestfixt:30902429 pythonregdiag2:30936856 pyreplss1:30897532 pythonmypyd1:30879173 pythoncet0:30885854 pythontbext0:30879054 dsvsc016:30899300 dsvsc017:30899301 dsvsc018:30899302 cppperfcontrol:30979541 d34g3935:30971562 fegfb526:30981948 bg6jg535:30979843 dsvsc020:30976470 666c4381:30973075 ```
mjbvz commented 6 months ago

What language is this for?

jonathanxia commented 6 months ago

For me it was C++, but also the snippets do not show up either (no autocomplete box seems to appear at all).

scirac commented 6 months ago

What language is this for?

C

mjbvz commented 6 months ago

/extC++

VSCodeTriageBot commented 6 months 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!