Open zhanglixuan0720 opened 4 months ago
This problem can be temporally solved by changing the console
parameter in .vscode/launch.json
to externalTerminal
as follows:
// This file is a template and is automatically generated by the setup_vscode.py script.
// Do not edit this file directly.
//
// Generated from: /home/sim/nav/IsaacLab/.vscode/tools/launch.template.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",
"type": "python",
"request": "launch",
"program": "${file}",
"console": "integratedTerminal",
// "console": "externalTerminal",
},
{
"name": "Python: Attach (windows-x86_64/linux-x86_64)",
"type": "python",
"request": "attach",
"port": 3000,
"host": "localhost"
},
{
"name": "Python: Train Environment",
"type": "python",
"request": "launch",
"args" : ["--task", "Isaac-Reach-Franka-v0", "--headless"],
"program": "${workspaceFolder}/source/standalone/workflows/rsl_rl/train.py",
"console": "integratedTerminal"
},
{
"name": "Python: Play Environment",
"type": "python",
"request": "launch",
"args" : ["--task", "Isaac-Reach-Franka-v0", "--num_envs", "32"],
"program": "${workspaceFolder}/source/standalone/workflows/rsl_rl/play.py",
"console": "integratedTerminal"
}
]
}
However, I still expect some elegant solution for integratedTerminal.
Describe the bug
I run the demo script from
source/standalone/demos/quadrupeds.py
in VSCode integrated Terminal (command line & debugger), and get the warnings "[omni.client.python] Detected a blocking function. This will cause hitches or hangs in the UI. Please switch to the async version:"The python program is blocked and does not run as expected.
This problem does not appears when I run this script in system Terminal.
Steps to reproduce
cd /path/to/IsaacLab && code .
conda activate isaaclab && source /home/sim/.local/share/ov/pkg/isaac-sim-4.0.0/setup_conda_env.sh
python source/standalone/demos/quadrupeds.py
System Info
Describe the characteristic of your environment:
Checklist