Hi,
Found an earlier post from 2022 about the same issue but doesn’t solve the problem.
I am attaching the video that leads to an error when I click Open Source Code
in Isaac Sim.
These are the steps that I do to attach VS code to Isaac Sim Container:
- Connect to AWS EC2 instance.
- SSH through VS code to connect to the instance.
- Start the Isaac Sim docker using:
docker run -v /home/ubuntu/files:/Documents --name isaac-sim --entrypoint bash -it --gpus all -e "ACCEPT_EULA=Y" --rm --network=host \
-e "PRIVACY_CONSENT=Y" \
-e "FASTRTPS_DEFAULT_PROFILES_FILE=/home/ubuntu/IsaacSim-ros_workspaces/humble_ws/fastdds.xml" \
-e "RMW_IMPLEMENTATION=rmw_fastrtps_cpp" \
-e "LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/isaac_sim/exts/omni.isaac.ros2_bridge/humble/lib" \
-v ~/docker/isaac-sim/cache/kit:/isaac-sim/kit/cache:rw \
-v ~/docker/isaac-sim/cache/ov:/root/.cache/ov:rw \
-v ~/docker/isaac-sim/cache/pip:/root/.cache/pip:rw \
-v ~/docker/isaac-sim/cache/glcache:/root/.cache/nvidia/GLCache:rw \
-v ~/docker/isaac-sim/cache/computecache:/root/.nv/ComputeCache:rw \
-v ~/docker/isaac-sim/logs:/root/.nvidia-omniverse/logs:rw \
-v ~/docker/isaac-sim/data:/root/.local/share/ov/data:rw \
-v ~/docker/isaac-sim/documents:/root/Documents:rw \
nvcr.io/nvidia/isaac-sim:4.0.0
- Attach VS Code to the container.
- Install VS Code Extension ‘Isaac Sim VS Code edition’.
- Run
./runheadless.native.sh
and enableomni.isaac.vscode
in the isaac sim. - Now clicking on any ‘Open Source code’ in Isaac Sim shows the error in terminal
/bin/sh: 1: code: not found
2024-08-09 07:15:59 [755,152ms] [Warning] [omni.isaac.vscode.ui_builder] Serving at 0.0.0.0:8226
Unable to launch VS Code (error code: 127).
Make sure VS Code is installed and accessible on the system via the command 'code'
Please do let me know if you have any questions to replicate this or need more information.
Thank you!