microsoft / vscode

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

c_cpp_properties.json is not detecting environment variables #227288

Closed Hruthik0x closed 2 months ago

Hruthik0x commented 2 months ago

Type: Bug

I have added env variable $IDFR_PATH, but vscode is unable able to expand this variable.

Here is the screenshot

VS Code version: Code 1.92.2 (fee1edb8d6d72a0ddff41e5f71a671c23ed924b9, 2024-08-14T17:29:30.058Z) OS version: Linux x64 6.1.0-23-amd64 Modes:

System Info |Item|Value| |---|---| |CPUs|12th Gen Intel(R) Core(TM) i5-12450H (12 x 4099)| |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, 1| |Memory (System)|15.25GB (7.92GB free)| |Process Argv|--crash-reporter-id a81bd3fa-2d2d-401a-a8fd-5a672e1e3238| |Screen Reader|no| |VM|0%| |DESKTOP_SESSION|plasmawayland| |XDG_CURRENT_DESKTOP|KDE| |XDG_SESSION_DESKTOP|KDE| |XDG_SESSION_TYPE|wayland|
Extensions (29) Extension|Author (truncated)|Version ---|---|--- dart-code|Dar|3.94.0 flutter|Dar|3.94.0 copilot|Git|1.224.0 copilot-chat|Git|0.18.2 rainbow-csv|mec|3.12.0 debugpy|ms-|2024.10.0 python|ms-|2024.12.3 vscode-pylance|ms-|2024.8.2 remote-containers|ms-|0.380.0 cpptools|ms-|1.21.6 cpptools-extension-pack|ms-|1.3.0 hexeditor|ms-|1.10.0 vscode-serial-monitor|ms-|0.12.0 postman-for-vscode|Pos|1.2.1 sqlite-viewer|qwt|0.5.12 java|red|1.34.0 LiveServer|rit|5.7.9 rust-analyzer|rus|0.3.2089 preview-vscode|sea|2.3.7 ayu|tea|1.0.5 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 JavaScriptSnippets|xab|1.8.0 (7 theme extensions excluded)
A/B Experiments ``` vsliv368:30146709 vspor879:30202332 vspor708:30202333 vspor363:30204092 vswsl492:30256859 vscod805cf:30301675 binariesv615:30325510 vsaa593:30376534 py29gd2263:31024239 c4g48928:30535728 azure-dev_surveyone:30548225 962ge761:30959799 pythongtdpath:30769146 welcomedialogc:30910334 pythonnoceb:30805159 asynctok:30898717 pythonregdiag2:30936856 pythonmypyd1:30879173 h48ei257:31000450 pythontbext0:30879054 accentitlementst:30995554 dsvsc016:30899300 dsvsc017:30899301 dsvsc018:30899302 cppperfnew:31000557 dsvsc020:30976470 pythonait:31006305 dsvsc021:30996838 f3je6385:31013174 pythoncenvpt:31062603 a69g1124:31058053 dvdeprecation:31068756 dwnewjupytercf:31046870 impr_priority:31102340 nativerepl2:31104044 refactort:31108082 pythonrstrctxt:31112756 wkspc-onlycs-t:31111718 wkspc-ranged-c:31125598 fje88620:31121564 aajjf12562cf:31125794 ```
Hruthik0x commented 2 months ago

I have rebooted my device, it's working fine now.