fix strange error where env variables are not read but somehow cashed. fixed by renaming the .env variable.

addind auto-detect of tts language
This commit is contained in:
Dobromir Popov
2024-06-10 12:45:23 +03:00
parent aac600ebaf
commit 11de0b27d2
12 changed files with 91 additions and 36 deletions

17
.vscode/launch.json vendored
View File

@ -30,11 +30,26 @@
"name": "node: Launch server.js",
"type": "node",
"request": "launch",
"program": "conda activate node && node web/server.js",
"program": "conda activate node && ${workspaceFolder}/web/server.js",
"console": "integratedTerminal",
"skipFiles": [
"<node_internals>/**"
]
},
{
"name": "conda task: Launch server.js",
"type": "node",
"request": "launch",
"program": "${workspaceFolder}/web/server.js",
// "preLaunchTask": "conda-activate",
"console": "integratedTerminal",
"internalConsoleOptions": "neverOpen",
"env": {
"CONDA_ENV": "node", //?
//set env to dev
"NODE_ENV": "development"
}
},
{
"name": "Python Debugger: Python File",
"type": "debugpy",

28
.vscode/tasks.json vendored
View File

@ -86,17 +86,19 @@
"panel": "new"
},
},
{
"label": "conda-activate",
"type": "shell",
"command": "source ~/miniconda3/etc/profile.d/conda.sh && conda activate py && echo 'Activated Conda Environment (py)!'",
"problemMatcher": [],
"options": {
"shell": {
"executable": "/bin/bash",
"args": ["-c"]
}
}
}
]
{
"label": "conda-activate",
"type": "shell",
"command": "source ~/miniconda3/etc/profile.d/conda.sh && conda activate ${input:condaEnv} && echo 'Activated Conda Environment (${input:condaEnv})!'",
"problemMatcher": [],
}
],
"inputs": [
{
"id": "condaEnv",
"type": "promptString",
"description": "Enter the Conda environment name",
"default": "py"
}
]
}