Repository navigation
Conversation
The interpreter path and extension paths were interpolated into the settings.json template verbatim, so Windows paths produced invalid JSON escape sequences (e.g. "C:\Users\..."). Serialize them with json.dumps instead. Fixes isaac-sim#3965 Signed-off-by: Michael Wedd <[email protected]>
8 tasks done
StafaH
added a commit
that referenced
this pull request
Sep 22, 2026
# Description Clean up the VS Code configuration for the Isaac Lab checkout and generated external projects, and fix the open VS Code debugging and settings-generation bugs. **Recommendations and settings** - Keep the Python and Pylance extensions and recommend the Ruff extension used by the current formatter and linter configuration. - Remove the unused C/C++, ROS, MyST, spelling, Black, and Flake8 recommendations. This also retires the archived `ms-iot.vscode-ros` recommendation that #4402 proposed to replace. - Remove the corresponding dead `.tpp`, Spell Right/cSpell, autoDocstring, and ROS Noetic settings from both settings templates. - Remove the deprecated Black, Flake8, and Jedi settings from the fallback settings written by `isaaclab --editor`. **Debugging (#2238)** - Since Python extension 2024.18.0, VS Code resolves `python.defaultInterpreterPath` wrapper scripts such as `_isaac_sim/python.sh` to the underlying executable, so launch configurations skip Isaac Sim's environment setup. Every launch configuration in both templates now sets `"python": "${config:python.defaultInterpreterPath}"`, the interpreter recorded by `isaaclab --editor`. - Update the repository launch template: use the `debugpy` type instead of the deprecated `python` type, use `connect` for the attach configuration, run training and playback through `isaaclab train`/`play` (the old `scripts/reinforcement_learning/rsl_rl/*.py` paths no longer exist), use the current `Isaac-Reach-Franka` task ID, and document `uv run python -m debugpy` for attach. - Document how to update an existing preserved `launch.json`. **Settings generation (#3965)** - #6644 already moved import paths to `pyrightconfig.json` via `json.dumps`. This PR also JSON-encodes the interpreter path in `.vscode/settings.json` and passes it to `re.sub` without escape processing. Before this change, an interpreter path containing a backslash crashed with `re.error: bad escape \U`. #6757 targets `tools/wheel_builder/res/__main__.py`, which no longer exists. **Tasks** - Replace the deprecated `isaaclab.sh --format` / `isaaclab.bat --format` task with `uv run isaaclab --format`. Fixes #2238 Fixes #3965 Supersedes #4402 and #6757. ## Type of change - Bug fix (non-breaking change which fixes an issue) ## Release backport - [x] <!-- backport-active-release --> Backport this pull request to the active release branch after it merges into `develop` ## Screenshots Not applicable. ## Validation - `uv run python -m pytest source/isaaclab_rl/test/test_template_generator.py` (28 passed). The editor setup test now also runs with a backslash interpreter path and parses the generated settings as JSON; this case fails without the fix. - `uv run isaaclab -f` (all hooks passed, including the changelog fragment check against upstream `develop`) ## Checklist - [x] I have read and understood the contribution guidelines. - [x] I have run the complete pre-commit checks. - [x] I have updated the editor setup documentation. - [x] My changes generate no new warnings. - [x] I have extended the closest editor setup test. - [x] I have added a changelog fragment for `isaaclab` and a `.skip` fragment for the `isaaclab_rl` test change. - [x] My name already exists in `CONTRIBUTORS.md`.
isaaclab-bot Bot
pushed a commit
that referenced
this pull request
Sep 22, 2026
# Description Clean up the VS Code configuration for the Isaac Lab checkout and generated external projects, and fix the open VS Code debugging and settings-generation bugs. **Recommendations and settings** - Keep the Python and Pylance extensions and recommend the Ruff extension used by the current formatter and linter configuration. - Remove the unused C/C++, ROS, MyST, spelling, Black, and Flake8 recommendations. This also retires the archived `ms-iot.vscode-ros` recommendation that #4402 proposed to replace. - Remove the corresponding dead `.tpp`, Spell Right/cSpell, autoDocstring, and ROS Noetic settings from both settings templates. - Remove the deprecated Black, Flake8, and Jedi settings from the fallback settings written by `isaaclab --editor`. **Debugging (#2238)** - Since Python extension 2024.18.0, VS Code resolves `python.defaultInterpreterPath` wrapper scripts such as `_isaac_sim/python.sh` to the underlying executable, so launch configurations skip Isaac Sim's environment setup. Every launch configuration in both templates now sets `"python": "${config:python.defaultInterpreterPath}"`, the interpreter recorded by `isaaclab --editor`. - Update the repository launch template: use the `debugpy` type instead of the deprecated `python` type, use `connect` for the attach configuration, run training and playback through `isaaclab train`/`play` (the old `scripts/reinforcement_learning/rsl_rl/*.py` paths no longer exist), use the current `Isaac-Reach-Franka` task ID, and document `uv run python -m debugpy` for attach. - Document how to update an existing preserved `launch.json`. **Settings generation (#3965)** - #6644 already moved import paths to `pyrightconfig.json` via `json.dumps`. This PR also JSON-encodes the interpreter path in `.vscode/settings.json` and passes it to `re.sub` without escape processing. Before this change, an interpreter path containing a backslash crashed with `re.error: bad escape \U`. #6757 targets `tools/wheel_builder/res/__main__.py`, which no longer exists. **Tasks** - Replace the deprecated `isaaclab.sh --format` / `isaaclab.bat --format` task with `uv run isaaclab --format`. Fixes #2238 Fixes #3965 Supersedes #4402 and #6757. ## Type of change - Bug fix (non-breaking change which fixes an issue) ## Release backport - [x] <!-- backport-active-release --> Backport this pull request to the active release branch after it merges into `develop` ## Screenshots Not applicable. ## Validation - `uv run python -m pytest source/isaaclab_rl/test/test_template_generator.py` (28 passed). The editor setup test now also runs with a backslash interpreter path and parses the generated settings as JSON; this case fails without the fix. - `uv run isaaclab -f` (all hooks passed, including the changelog fragment check against upstream `develop`) ## Checklist - [x] I have read and understood the contribution guidelines. - [x] I have run the complete pre-commit checks. - [x] I have updated the editor setup documentation. - [x] My changes generate no new warnings. - [x] I have extended the closest editor setup test. - [x] I have added a changelog fragment for `isaaclab` and a `.skip` fragment for the `isaaclab_rl` test change. - [x] My name already exists in `CONTRIBUTORS.md`. (cherry picked from commit 00ecf5a)
Collaborator
|
Fixed in #7940 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
python -m isaaclab --generate-vscode-settingswrites.vscode/settings.jsonbysubstituting the interpreter path and every discovered extension path into a JSON
template verbatim. On Windows those paths contain backslashes, so the generated
file is full of invalid JSON escape sequences (
"C:\Users\..."—\Uis not avalid escape) and VS Code rejects the settings, which is exactly what #3965 reports.
This change serializes each path with
json.dumpsbefore substitution, whichescapes backslashes (and any other JSON-special characters) correctly on every
platform. On Linux/macOS the output is byte-identical to before, since POSIX paths
contain nothing to escape.
Fixes #3965
Type of change
Checklist
pre-commitchecks with./isaaclab.sh --formatchangelog.ddirectoryCONTRIBUTORS.mdor my name already exists thereVerification (no Isaac Sim needed — the substitution is pure string logic): a
standalone check renders the template both ways with a Windows-style interpreter
path and extension path. The pre-fix rendering fails
json.loads(after strippingthe
//comment lines VS Code allows); the fixed rendering parses and round-tripsthe exact input paths. The fix can't be a no-op on POSIX either: rendered output
for POSIX paths is unchanged.