Repository navigation
Description
Describe the bug
On Windows, using the Isaac Sim 6.0.1 pre-built binaries, I created a new Isaac Lab (v3.0.0-beta2.patch1) project using isaaclab.bat --new. Following the VS Code setup guide for the pre-built Isaac Sim binaries, I then ran the setup_python_env task. The task generated the .vscode/settings.json file (as intended), but I noticed that the included python.analysis.extraPaths setting conflicts with the pyproject.toml files (one at the root, one at source/{project_name}) that come with the generated project by default:
'python.analysis.extraPaths' cannot be set when a pyrightconfig.json or pyproject.toml is being used.
Therefore, the isaaclab imports cannot be resolved. Consequently, there is no autocompletion or docstrings displayed. This makes writing and testing the Python code in the project fairly difficult.
There are several related issues; Someone else already reported this specific issue: #629 (comment)
Steps to reproduce
- Create a new Isaac Lab project (
v3.0.0-beta2.patch1) using the built-in project generator (I created a manager-based workflow withrl_games). - Open the project's folder in VS Code as root and run the
setup_python_envtask. - Enable Pylance. Then open the generated .vscode/settings.json file. Observe that the above mentioned error message will be reported.
- Open any Python script that contains
isaaclabimports in the project, for example the task's env config file atsource/{project_name}, e.g.source/{project_name}/{project_name}/tasks/manager_based/{task_name}/{task_name}_env_cfg.py. In that file, see that the pre-defined importsfrom isaaclab.assets,from isaaclab.envsandfrom isaaclab.managerswon't be recognized.
Additional context
- I have checked that the relative
extraPathswere correctly set; yes, they were. Also, in VS Code, the Python interpreter was correctly set to the Isaac Sim pre-built binaries dir's Python. - I have tried to move the
extraPathssetting from settings.json to bothpyproject.tomlfiles. That involved some changes in the formatting (i.e.,extraPaths = [...], removing${workspaceFolder}/, and relative paths), but this didn't work either. - Idk if this related, but right now, the pre-built binaries of Isaac Sim do not export an
PYTHONPATHenv variable, see Where is setup_conda_env.sh in isaac sim 6.0? #6222. - I have also tried deleting the settings.json file (it only works for the pre-built binaries, as described in the guide) and set up a conda env with the the latest
isaaclabpip release (v3.0.0-beta2.patch1). With the conda environment,isaaclabwas recognized, but not its extra modules (e.g.,from isaaclab.assets).
Question:
- Is there any way to make the
isaaclabextra modules work with Pylance (or Pyright) - either by pre-built binaries or pip - so that features like autocompletion and docstring information are available?
System Info
- Commit: ffff603
- Isaac Sim Version: 6.0.1
- OS: Windows 11
- GPU: RTX 3080 Ti
- CUDA: 13.3.1
- GPU Driver: 581.42
Checklist
- I have checked that there is no similar issue in the repo (required)
- I have checked that the issue is not in running Isaac Sim itself and is related to the repo
Activity
[-][Bug Report] VS Code Setup Guide: `extraPaths` setting doesn't work[/-][+][Bug Report] VS Code Setup Guide: `extraPaths` setting in *settings.json* conflicts with `pyproject.toml`[/+]d-kleine commentedon Jul 13, 2026
Update: After several attemps, I finally made the recognition of the extra modules work by removing the
extraPathssetting from settings.json and adding it to thepyproject.tomlfile with above mentioned changes for the pre-built binaries. I have noticed that the Isaac Lab project did not generate the extra paths for the Isaac Lab dir, so I added them manually, which made theisaaclabextra module imports in the project files work:The above issue/error still requires changes, therefore I keep the issue open.
RandomOakForest commentedon Jul 15, 2026
Thank you for posting this. The team will review it.
d-kleine commentedon Jul 20, 2026
So, to sum everything up, these are the issues:
Pre-built binaries:
extraPathssetting from settings.json must be moved to thepyproject.tomlfilesetup_python_envcurrently only creates Isaac Sim extra paths, but the code lacks of a block for creating Isaac Lab extra paths too. Therefore,isaaclaband its extra modules won't be recognized.pip installation:
isaacsim's andisaaclab's extra modules does not work at all for the pip installation.StafaH commentedon Jul 21, 2026
Hi @d-kleine,
Does the following PR resolve all issues: #6644 ?
d-kleine commentedon Jul 22, 2026
Hi @StafaH ,
I just checked out your PR and inspected the output. Unfortunately, the recognition of the extra modules still doesn't work properly. Currently:
extraPathsseems to be set correctly for IsaacLab repo in pyproject.tomlsource/isaaclab, etc.). Thesetup_python_envtask doesn't override these paths but createsextrapathsin a new file pyrightconfig.json, that conflicts with theextrapathsin pyproject.toml.extrapathsin pyrightconfig.json look good, but are only working forisaacsim's extra modules. This is because thesetup_python_envtask only asks for the IsaacSim path, but still not for the one of Isaac Lab.isaacsimas well asisaaclabare therefore not recognized by Pylance when using the Python interpreter from the pre-built binaries in the project.isaacsim's andisaaclab's extra modules still does not work at all for the pip installation using a conda environment in the project.[Workflow] Update extra paths configuration for all workflows (#6644)
[Backport release/3.0.0] Update extra paths configuration for all wor…