In Isaac Sim examples, when I open the code in VSCode, certain properties are not linked to their definitions and appear in white. Despite this, the code runs correctly and VSCode does not throw any formatting errors. How can I resolve this issue?
Isaac Sim Version
4.0.0
Operating System
Ubuntu 22.04
Hello, @2746775899,
Yes, what you’re experiencing is quite common with Isaac Sim examples when opening code in VSCode. Some imports or properties may appear in white, but the code still runs perfectly fine. Here’s a simple fix:
Steps:
- Ensure that you have the VSCode extension for Omniverse enabled, along with auto-loading features.
- Navigate to Windows > VS Code from the Omniverse interface. This will open a new VSCode window that is specifically linked to your environment. From there, navigate to the examples or wherever you need to.
- This method should link everything correctly, avoiding the issue of white imports.
Conclusion:
If you open VSCode directly from the root directory of Isaac Sim (e.g., Isaac 4.x.x), the code should display correctly with all dependencies linked and highlighted. However, if you open it from a specific folder (e.g., examples or omni.isaac.x), the imports may still appear white.
Hope this helps! Good luck!