Skip to content

[Bug Report] VS Code Setup Guide: extraPaths setting in *settings.json* conflicts with pyproject.toml #6475

Closed

Description

@d-kleine

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

  1. Create a new Isaac Lab project (v3.0.0-beta2.patch1) using the built-in project generator (I created a manager-based workflow with rl_games).
  2. Open the project's folder in VS Code as root and run the setup_python_env task.
  3. Enable Pylance. Then open the generated .vscode/settings.json file. Observe that the above mentioned error message will be reported.
  4. Open any Python script that contains isaaclab imports in the project, for example the task's env config file at source/{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 imports from isaaclab.assets, from isaaclab.envs and from isaaclab.managers won't be recognized.

Additional context

  • I have checked that the relative extraPaths were 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 extraPaths setting from settings.json to both pyproject.toml files. 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 PYTHONPATH env 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 isaaclab pip release (v3.0.0-beta2.patch1). With the conda environment, isaaclab was recognized, but not its extra modules (e.g., from isaaclab.assets).

Question:

  • Is there any way to make the isaaclab extra 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

  1. changed the title [-][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`[/+] on Jul 13, 2026
  2. d-kleine commented on Jul 13, 2026

    @d-kleine
    Author

    Update: After several attemps, I finally made the recognition of the extra modules work by removing the extraPaths setting from settings.json and adding it to the pyproject.toml file 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 the isaaclab extra module imports in the project files work:

    [tool.pyright]
    extraPaths = [
            "{relative_path_to_isaacsim}/IsaacSim/exts/isaacsim.app.about",
            ...
            "source/{project_name}",
            "{relative_path_to_isaaclab}/IsaacLab/source/isaaclab",
            ...
        ]

    The above issue/error still requires changes, therefore I keep the issue open.

  3. RandomOakForest commented on Jul 15, 2026

    @RandomOakForest
    Collaborator

    Thank you for posting this. The team will review it.

  4. added
    bug
    on Jul 15, 2026
  5. d-kleine commented on Jul 20, 2026

    @d-kleine
    Author

    So, to sum everything up, these are the issues:

    Pre-built binaries:

    • In both Isaac Lab installation script as well as the project builder, the extraPaths setting from settings.json must be moved to the pyproject.toml file
    • Isaac Lab's project builder's setup_python_env currently only creates Isaac Sim extra paths, but the code lacks of a block for creating Isaac Lab extra paths too. Therefore, isaaclab and its extra modules won't be recognized.

    pip installation:

    • The recognition of isaacsim's and isaaclab's extra modules does not work at all for the pip installation.
  6. moved this to Backlog in Isaac Labon Jul 20, 2026
  7. StafaH commented on Jul 21, 2026

    @StafaH
    Collaborator

    Hi @d-kleine,

    Does the following PR resolve all issues: #6644 ?

  8. d-kleine commented on Jul 22, 2026

    @d-kleine
    Author

    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:

    • ✅ extraPaths seems to be set correctly for IsaacLab repo in pyproject.toml
    • ❌ When generating a project from the Isaac Lab's built-in project builder, the pyproject.toml contains the paths from the IsaacLab repo (source/isaaclab, etc.). The setup_python_env task doesn't override these paths but creates extrapaths in a new file pyrightconfig.json, that conflicts with the extrapaths in pyproject.toml.
    • The generated extrapaths in pyrightconfig.json look good, but are only working for isaacsim's extra modules. This is because the setup_python_env task only asks for the IsaacSim path, but still not for the one of Isaac Lab.
    • ❌ The extra modules of both isaacsim as well as isaaclab are therefore not recognized by Pylance when using the Python interpreter from the pre-built binaries in the project.
    • ❌ The recognition of isaacsim's and isaaclab's extra modules still does not work at all for the pip installation using a conda environment in the project.
  9. added a commit that references this issue on Sep 8, 2026
    c91b036
  10. added a commit that references this issue on Sep 8, 2026
    d43f328
  11. moved this from Backlog to Done in Isaac Labon Sep 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bug

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions