Closed beauxq closed 1 year ago
Thanks for creating this issue! It looks like you may be using an old version of VS Code, the latest stable release is 1.78.0. Please try upgrading to the latest version and checking whether this issue remains.
Happy Coding!
vscode doesn't change how python works, but your shell configuration might set an environment variable or something else that the program is reading. For example it might be configured with a different temp directory.
Type: Bug
Here is my GNOME Terminal:
Here os my IDLE Python application:
Here is vscode terminal:
And the same problem happens when I run a Python script with VSCode's "Run Python File" button.
I can't develop in VSCode if my program doesn't behave the same when I run in from VSCode.
VS Code version: Code 1.77.3 (704ed70d4fd1c6bd6342c436f1ede30d1cff4710, 2023-04-12T09:16:52.732Z) OS version: Linux x64 5.4.0-148-generic snap Modes: Sandboxed: No
System Info
|Item|Value| |---|---| |CPUs|Intel(R) Core(TM) i5-4460 CPU @ 3.20GHz (4 x 3200)| |GPU Status|2d_canvas: enabledcanvas_oop_rasterization: disabled_off
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_renderer: enabled_on
video_decode: disabled_software
video_encode: disabled_software
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: disabled_off| |Load (avg)|8, 6, 4| |Memory (System)|7.63GB (0.57GB free)| |Process Argv|--no-sandbox --force-user-env --unity-launch --crash-reporter-id bae8ebae-8cf6-4617-bd46-1af200efc8a3| |Screen Reader|no| |VM|0%| |DESKTOP_SESSION|cinnamon| |XDG_CURRENT_DESKTOP|X-Cinnamon| |XDG_SESSION_DESKTOP|cinnamon| |XDG_SESSION_TYPE|x11|
Extensions (62)
Extension|Author (truncated)|Version ---|---|--- language-x86-64-assembly|13x|3.0.0 language-gas-x86|bas|0.0.2 vscode-innosetup|cho|1.9.2 djinni-syntax-highlighting|cro|1.2.0 doxdocgen|csc|1.4.0 dart-code|Dar|3.62.0 flutter|Dar|3.62.0 vscode-eslint|dba|2.4.0 vscode-wasm|dts|1.4.1 gitlens|eam|13.5.0 vscode-commands|fab|1.4.3 go|gol|0.38.0 rest-client|hum|0.25.1 better-cpp-syntax|jef|1.17.2 cmake-language-support-vscode|jos|0.0.9 Lua|key|0.0.9 mypy|mat|0.2.3 asm-code-lens|maz|2.4.1 git-graph|mhu|1.30.0 vscode-docker|ms-|1.25.0 vscode-dotnet-runtime|ms-|1.6.0 flake8|ms-|2023.4.0 isort|ms-|2022.8.0 python|ms-|2023.6.1 vscode-pylance|ms-|2023.5.10 jupyter|ms-|2023.3.1201040234 jupyter-keymap|ms-|1.1.0 jupyter-renderers|ms-|1.0.15 vscode-jupyter-cell-tags|ms-|0.1.8 vscode-jupyter-slideshow|ms-|0.1.5 remote-containers|ms-|0.292.0 remote-ssh|ms-|0.100.0 remote-ssh-edit|ms-|0.84.0 remote-wsl|ms-|0.77.0 vscode-remote-extensionpack|ms-|0.24.0 cmake-tools|ms-|1.14.31 cpptools|ms-|1.15.4 cpptools-extension-pack|ms-|1.3.0 hexeditor|ms-|1.9.11 remote-explorer|ms-|0.4.0 remote-server|ms-|1.1.0 vetur|oct|0.37.3 ruby|reb|0.28.1 java|red|1.18.0 vscode-yaml|red|1.12.2 LiveServer|rit|5.7.9 rust-analyzer|rus|0.3.1498 wow-bundle|Sep|1.3.0 code-spell-checker|str|2.20.4 lua|sum|3.6.19 svelte-vscode|sve|107.4.1 pdf|tom|1.2.2 vscode-lua|tri|0.12.4 cmake|twx|0.0.17 intellicode-api-usage-examples|Vis|0.2.7 vscodeintellicode|Vis|1.2.30 vscode-java-debug|vsc|0.50.0 vscode-java-dependency|vsc|0.22.0 vscode-java-pack|vsc|0.25.11 vscode-java-test|vsc|0.38.2 vscode-maven|vsc|0.41.0 vscode-ruby|win|0.28.0 (1 theme extensions excluded)A/B Experiments
``` vsliv368:30146709 vsreu685:30147344 python383cf:30185419 vspor879:30202332 vspor708:30202333 vspor363:30204092 vslsvsres303:30308271 vserr242:30382549 pythontb:30283811 vsjup518:30340749 pythonptprofiler:30281270 vshan820:30294714 vstes263:30335439 vscorecescf:30445987 pythondataviewer:30285071 vscod805cf:30301675 binariesv615:30325510 bridge0708:30335490 bridge0723:30353136 cmake_vspar411:30581797 vsaa593:30376534 pythonvs932:30410667 cppdebug:30492333 vsclangdf:30486550 c4g48928:30535728 dsvsc012:30540252 pynewext54:30695312 azure-dev_surveyone:30548225 282f8724:30602487 pyind779:30671433 f6dab269:30613381 pythonsymbol12:30671437 showlangstatbar:30730054 vsccsb:30705552 azdwalk:30721579 pythonms35:30701012 j16hj152:30706079 pythonfmttext:30731395 pythoncmvfstr:30731969 fixshowwlkth:30730052 pythongtdpath:30731978 ```