Skip to content

[Bug Report] Isaac Lab with Isaac Sim pip Installation Failed to setup VSCode #1951

@j3soon

Description

@j3soon

Describe the bug

Cannot setup VSCode when using Isaac Lab with Isaac Sim pip Installation.

Issue #629 has a related discussion on this. However, I'm unsure whether this issue was never fully resolved or if it is a regression in Isaac Lab v2.x. Another user also encountered this issue and commented in #629 (comment).

Steps to reproduce

  1. Install Isaac Lab with Isaac Sim pip (https://isaac-sim.github.io/IsaacLab/main/source/setup/installation/pip_installation.html)
  2. Attempt to setup VSCode (https://isaac-sim.github.io/IsaacLab/main/source/overview/developer-guide/vs_code.html) and execute Ctrl+Shift+P > Tasks: Run Task > setup_python_env, observe the following error:
 *  Executing task: /home/johnson/IsaacLab/isaaclab.sh -p /home/johnson/IsaacLab/.vscode/tools/setup_vscode.py 

[INFO] Using python from: /home/johnson/miniconda3/envs/env_isaaclab/bin/python                                                             
[WARN] Could not find Isaac Sim VSCode settings: /home/johnson/miniconda3/envs/env_isaaclab/lib/python3.10/site-packages/isaacsim/.vscode/settings.json.
    This will result in missing 'python.analysis.extraPaths' in the VSCode
    settings, which limits the functionality of the Python language server.
    However, it does not affect the functionality of the Isaac Lab project.
    We are working on a fix for this issue with the Isaac Sim team.
 *  Terminal will be reused by tasks, press any key to close it. 

System Info

Describe the characteristic of your environment:

  • Commit: f1a4975
  • Isaac Sim Version: 4.5.0 (pip)
  • OS: Ubuntu 22.04.5 LTS
  • GPU: L40
  • CUDA: 11.8
  • GPU Driver: 550.127.05

Additional context

Further investigation:

$ ls -a /home/johnson/miniconda3/envs/env_isaaclab/lib/python3.10/site-packages/isaacsim/
.   apps  extscache       extsPhysics  LICENSE.txt  VERSION
..  exts  extsDeprecated  __init__.py  __pycache__

It can be observed that Isaac Sim 4.5.0 pip package doesn't include the .vscode folder.

PR #631 is a partial fix to this issue, it doesn't solve this issue since the Isaac Sim upstream package doesn't provide the .vscode/settings.json file.

This issue also exists on Windows 11: #629 (comment).

There may be 2 ways to resolve this:

  1. Ask upstream to include the .vscode directory in all future Isaac Sim pip packages.
  2. Include the full .vscode/settings.json file directly in the Isaac Lab repo, removing the need to depend on upstream Isaac Sim settings.

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

Acceptance Criteria

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions