isaac-sim / IsaacLabExtensionTemplate

External extenstion template based on Isaac Lab
MIT License
125 stars 47 forks source link

VScode doesn't index the IsaacSim extensions #40

Open ThanasisTs opened 3 weeks ago

ThanasisTs commented 3 weeks ago

Hi,

after following the instruction on README.md to setup VScode, the extensions of IsaacSim are not indexed by VScode. The reason (according to VScode) is that 'python.analysis.extraPaths' cannot be set when a pyrightconfig.json or pyproject.toml is being used. There is also this relevant issue, which states that we have to add the changes (extra paths in this case) to pyproject.toml.

Is there some other way to fix this?

JacquesCloete commented 2 weeks ago

Hi, I have the same issue.

The (very inelegant) workaround I'm using for now is to append the bottom of pyproject.toml in IsaacLabExtensionTemplate with the absolute paths to the following folders from IsaacLab, as well as the absolute paths to each extension from IsaacSim:

extraPaths = [
    "/absolute_path_to/IsaacLab/source/extensions/omni.isaac.lab_tasks",
    "/absolute_path_to/IsaacLab/source/extensions/omni.isaac.lab",
    "/absolute_path_to/IsaacLab/source/extensions/omni.isaac.lab_assets",
    "/absolute_path_to/miniconda3/envs/env_name/lib/python3.10/site-packages/isaacsim/exts/extension_name",
]

While we wait for this issue to be fixed, if anyone has a better workaround please let me know!