microsoft / vscode

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

Caching environment variables in internal terminal #230530

Closed felipenmoura closed 3 weeks ago

felipenmoura commented 3 weeks ago

Type: Bug

I don't know! It just cached the .env variables in a way it's impossible to get rid of! I killed it, cleared all possible caches, deleted the .env file, restarted the machine and yet, there they are, using the wrong values (production values, a very dangerous problem) and wont load the correct ones, nor changes to the existing ones, nor identify that the file was deleted.

VS Code version: Code 1.94.0 (Universal) (d78a74bcdfad14d5d3b1b782f87255d802b57511, 2024-10-02T13:08:12.626Z) OS version: Darwin arm64 23.6.0 Modes:

System Info |Item|Value| |---|---| |CPUs|Apple M1 (8 x 2400)| |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
webnn: disabled_off| |Load (avg)|4, 3, 3| |Memory (System)|16.00GB (0.06GB free)| |Process Argv|--crash-reporter-id bc4697e4-94ba-4907-b280-8141218b12b3| |Screen Reader|no| |VM|0%|
Extensions (56) Extension|Author (truncated)|Version ---|---|--- better-comments|aar|3.0.2 vscode-file-peek|abi|1.0.1 vscode-node-readme|ben|3.0.2 lit-html|bie|1.11.1 vscode-intelephense-client|bme|1.12.6 vscode-better-align|cho|1.4.2 npm-intellisense|chr|1.4.5 vscode-eslint|dba|3.0.10 githistory|don|0.6.20 eslint-disable-snippets|drK|1.4.1 gitlens|eam|15.5.1 EditorConfig|Edi|0.16.4 swagger-panel|els|1.0.2 magick-image-reader|ely|0.5.0 nasc-touchbar|fel|1.12.0 vscode-mysql|for|0.5.0 godot-tools|gee|2.2.0 copilot|Git|1.235.0 copilot-chat|Git|0.21.0 imagesprites|gur|1.0.0 jsx|Hen|1.3.0 svgeditor|hen|2.9.0 mysql-syntax|jak|1.3.1 vscode-peacock|joh|4.2.2 vscode-gutter-preview|kis|0.31.2 graphql-for-vscode|kum|1.15.3 rainbow-csv|mec|3.12.0 code-beautifier|mic|2.3.3 dotenv|mik|1.0.1 vscode-json5|mrm|1.0.0 vscode-scss|mrm|0.10.0 vscode-language-pack-es|MS-|1.94.2024100209 debugpy|ms-|2024.10.0 python|ms-|2024.16.0 vscode-pylance|ms-|2024.9.2 remote-containers|ms-|0.388.0 vsliveshare|ms-|1.0.5941 vscode-project-name-in-statusbar|muj|1.0.0 env-cmd-file-syntax|Nix|0.3.0 a-frame-for-vscode|pas|1.2.5 vscode-versionlens|pfl|1.14.2 vscode-css-peek|pra|4.4.1 prisma|Pri|5.20.0 vscode-xml|red|0.27.1 LiveServer|rit|5.7.9 vscode-sass-format|sas|1.1.7 language-stylus|sys|1.16.0 pdf|tom|1.2.2 vscode-mdx|uni|1.8.11 vscode-icons|vsc|12.9.0 image-viewer|vsc|1.6.5 volar|Vue|2.1.6 markdown-auto-toc|wib|0.3.0 JavaScriptSnippets|xab|1.8.0 php-debug|xde|1.35.0 markdown-all-in-one|yzh|3.6.2
A/B Experiments ``` vsliv368cf:30146710 vspor879:30202332 vspor708:30202333 vspor363:30204092 vswsl492cf:30256860 vscod805cf:30301675 binariesv615:30325510 vsaa593:30376534 py29gd2263:31024239 c4g48928:30535728 azure-dev_surveyone:30548225 2i9eh265:30646982 962ge761:30959799 pythongtdpath:30769146 welcomedialog:30910333 pythonnoceb:30805159 asynctok:30898717 pythonmypyd1:30879173 h48ei257:31000450 pythontbext0:30879054 accentitlementsc:30995553 dsvsc016:30899300 dsvsc017:30899301 dsvsc018:30899302 cppperfnew:31000557 dsvsc020:30976470 pythonait:31006305 dsvsc021:30996838 da93g388:31013173 a69g1124:31058053 dvdeprecation:31068756 dwnewjupyter:31046869 impr_priority:31102340 nativerepl2:31139839 refactort:31108082 pythonrstrctxt:31112756 flighttreat:31134774 wkspc-onlycs-t:31132770 wkspc-ranged-t:31151552 cf971741:31144450 defaultse:31146405 notype1:31151523 cc771715:31146322 ```
vs-code-engineering[bot] commented 3 weeks ago

We closed this issue because it is a question about using VS Code rather than an issue or feature request. Please search for help on StackOverflow, where the community has already answered thousands of similar questions. You may find their guide on asking a new question helpful if your question has not already been asked. See also our issue reporting guidelines.

Happy Coding!