Hello,
TL;DR: Scripts opened in Visual Studio Code revert to their original state despite saving, and script changes on prims within Isaac Sim only apply after restarting the application.
Setup Information:
- Server: Nucleus Localhost
- Software: Isaac Sim 2023.1.1
- Operating System: Windows 11
- Hardware: RTX 3090, Ryzen9 7950X, 128GB RAM
Detailed Steps and Observations:
-
Both .usd and .py files are stored in the same directory on a localhost nucleus server. Opening a .py file (e.g., TestMovement.py) with Visual Studio Code reveals its path in the Pycache directory (
C:\Users\username\.nvidia-omniverse\pycache\omniverse\localhost\Projects\WareHouseTwin\TestMovement.py
). Despite saving changes (Ctrl+S), these changes revert when the script is attached to a prim or the script is opened with Script Editor. -
Contrarily, when opening the .py file via Isaac Sim’s Script Editor, the file path is different (
C:\users\username\appdata\local\temp\...\script_****.py
), and changes persist after saving. -
An interesting discovery is that if I first open and save the file in Isaac Sim’s Script Editor and then in Visual Studio Code, the changes are retained, regardless of the path still pointing to the Pycache directory.
-
However, adding or removing the script to/from a prim and press play in Isaac Sim doesn’t apply the changes until after a system restart. Simply saving the scene does not circumvent this issue.
-
This behavior persists until I clear both local and application caches and restart Isaac Sim, which apply the changes, but as soon as I remove/add a script from a prim, Isaac Sim needs to be restarted to reflect the changes. The debug prints continue to output as if the scripts were still attached, indicating a potential caching or synchronization issue.
Could this be a configuration mistake on my end, or is it related to known issues with caching or windows?
Thank you very much for your assistance.
Best regards.