Closed
Description
Type: Bug
Behaviour
When I launch a new terminal in vscode, my .env variables are incorrectly read.
Steps to reproduce:
- Use the following env variable
ORACLE_DB_CONN_STR=oracle+oracledb://user:password@(DESCRIPTION=(LOAD_BALANCE=on)(FAILOVER=ON)...)
- When you launch a terminal you can see that it was read as
ORACLE_DB_CONN_STR=oracle+oracledb://user:password@(DESCRIPTION
- I tried to load the same env var with
django-environ
,python-dotenv
and they are working fine if there is no auto-load from the python extension. - I tried escaping.
- My app works totally fine when I disable auto-loading of env variables with
"python.envFile": "",
in my settings.json file. - When the env variable is exported incorrectly during the terminal launch, it's also causing my application to fail. Basically django-environ is reading the already incorrectly exported value.
launch.json
configuration
{
"editor.rulers": [
100
],
"editor.linkedEditing": true,
"editor.codeActionsOnSave": {
"source.organizeImports": "explicit"
},
"editor.unicodeHighlight.allowedLocales": {
"tr": true
},
"files.insertFinalNewline": true,
"explorer.confirmDragAndDrop": false,
"explorer.confirmDelete": false,
"terminal.integrated.defaultProfile.linux": "fish",
"[oraclesql]": {
"editor.suggest.showSnippets": true,
"editor.quickSuggestions": {
"comments": "on",
"strings": "on",
"other": "on"
}
},
"github.copilot.editor.enableAutoCompletions": true,
"mypy.runUsingActiveInterpreter": true,
"debugpy.debugJustMyCode": false,
"editor.formatOnSave": true,
"[html]": {
"editor.defaultFormatter": "monosans.djlint"
},
"[javascript]": {
"editor.defaultFormatter": "biomejs.biome"
},
"python.envFile": "",
}
Extension version: 2024.10.0
VS Code version: Code 1.93.1 (38c31bc77e0dd6ae88a4e9cc93428cc27a56ba40, 2024-09-11T17:20:05.685Z)
OS version: Linux x64 6.10.10-arch1-1
Modes:
- Python version (& distribution if applicable, e.g. Anaconda): 3.12.6
- Type of virtual environment used (e.g. conda, venv, virtualenv, etc.): VirtualEnvironment
System Info
Item | Value |
---|---|
CPUs | AMD Ryzen 7 5700X 8-Core Processor (16 x 3718) |
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) | 3, 2, 1 |
Memory (System) | 15.54GB (3.96GB free) |
Process Argv | Documents/global/global-middleware/ --crash-reporter-id 75bdb8ad-a1f1-4222-99ed-6b14720fe7f7 |
Screen Reader | no |
VM | 0% |
DESKTOP_SESSION | plasma |
XDG_CURRENT_DESKTOP | KDE |
XDG_SESSION_DESKTOP | KDE |
XDG_SESSION_TYPE | wayland |
A/B Experiments
vsliv368:30146709
vspor879:30202332
vspor708:30202333
vspor363:30204092
vscod805:30301674
binariesv615:30325510
vsaa593:30376534
py29gd2263:31024239
c4g48928:30535728
azure-dev_surveyone:30548225
962ge761:30959799
pythongtdpath:30769146
welcomedialogc:30910334
pythonnoceb:30805159
asynctok:30898717
pythonmypyd1:30879173
2e7ec940:31000449
pythontbext0:30879054
accentitlementst:30995554
dsvsc016:30899300
dsvsc017:30899301
dsvsc018:30899302
cppperfnew:31000557
dsvsc020:30976470
pythonait:31006305
dsvsc021:30996838
da93g388:31013173
a69g1124:31058053
dvdeprecation:31068756
dwnewjupytercf:31046870
2f103344:31071589
impr_priority:31102340
nativerepl1:31139838
refactort:31108082
pythonrstrctxt:31112756
flighttreat:31134774
wkspc-onlycs-t:31132770
wkspc-ranged-c:31125598
cf971741:31144450
autoexpandse:31146404
iacca2:31144504
cc771715:31146322
Metadata
Metadata
Assignees
Labels
Issue identified by VS Code Team member as probable bugIssue identified by VS Code Team member as probable bugIssues identified as good community contribution opportunitiesIssues identified as good community contribution opportunities