Cover interpreter selection in the debugging guide - #65
Merged
Conversation
Both VS Code debug configurations run the dev server under the interpreter VS Code has selected, so point at the status-bar item and the Pyxle: Select Python Interpreter command that Pyxle Language Tools shows while a .pyxl file is open, rather than only telling the reader to upgrade. Also note that the pre-launch check tests what the interpreter can run instead of the version its package metadata reports, so an editable install with stale dist-info is not refused.
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.
The issue
The debugging guide told readers that the debugger "checks it has pyxle before launching and guides you if not", and that a too-old interpreter means "run
pip install --upgrade pyxle-framework". Both were incomplete in a way that misled people who hit the error with a working pyxle installed:.pyxlfile. The Python extension only shows its interpreter indicator for.pyfiles, so the environment driving the launch was effectively invisible.The change
Docs only — no framework code.
.pyxlfile is open.The editor-side behaviour these lines describe is in pyxle-dev/pyxle-langkit#13. The changelog entry is under Unreleased so the published docs don't describe an editor release that isn't out yet.
Checklist
pytestpasses and coverage stays ≥ 95% (no code changed — docs only)ruff check pyxle/ tests/is clean (no code changed)tests/directory (n/a — documentation change)pyxle init+pyxle devstill work end-to-end (n/a — neither touched)scope:compiler,ssr,cli, …)