You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to automate one of my workflows where I need to pass in a dynamic environment variable.
I created a tasks for generating the dynamic string
I tried to configure the launch.json to call the workbench.action.tasks.runTasks.
This command seems to be never invoked. I also have a problem passing default arguments to the workbench.action.tasks.runTasks command.
When I pass this input command in the args section. Its getting invoked but is not registering the string from the dynamic process.
launch.json
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "Python: Current File (Integrated Terminal)",
"type": "python",
"request": "launch",
"program": "${file}",
"console": "integratedTerminal",
"args": [
"others",
],
"env": {
"test":"${inputs:test}"
}
},
],
"inputs": [
{
"id" : "test",
"type": "command",
"command": "workbench.action.tasks.runTask",
"args": ["echo"]
},
]
}
tasks.json
{
// See https://go.microsoft.com/fwlink/?LinkId=733558
// for the documentation about the tasks.json format
"version": "2.0.0",
"tasks": [
{
"label": "echo",
"type": "shell",
"command": "${config:python.pythonPath} ${workspaceFolder}/runner.py"
},
],
}
runner.py
print("hellopython")
temp.py
import os
import sys
print(os.environ["test"])
print("test")
print(sys.argv)
Does this issue occur when all extensions are disabled?: Yes
The text was updated successfully, but these errors were encountered:
Steps to Reproduce:
I am trying to automate one of my workflows where I need to pass in a dynamic environment variable.
I created a tasks for generating the dynamic string
I tried to configure the launch.json to call the workbench.action.tasks.runTasks.
This command seems to be never invoked. I also have a problem passing default arguments to the workbench.action.tasks.runTasks command.
When I pass this input command in the args section. Its getting invoked but is not registering the string from the dynamic process.
launch.json
tasks.json
runner.py
temp.py
Does this issue occur when all extensions are disabled?: Yes
The text was updated successfully, but these errors were encountered: