Repository navigation
fix: catch dedented return and check after any edit (0.4.2) - #3
Merged
Merged
Conversation
Removing a line's indentation in Python so that return or break lands outside its function or loop parsed fine, so no problem was reported. Python code is now compiled (still without running anything), which reports those. And the check for new problems ran only after a typed character: deleting (Delete, Backspace, control+Backspace, control+Delete), cutting, pasting and Code Compass's own commands such as shift+Tab now schedule it too, with the known problems noted before the change. Version 0.4.2. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
Reported while coding: removing a line's indentation gave no error.
returnorbreakthat a removed indentation moved outside its function or loop; compiling reports them ("'return' outside function"). A line moved out of a block on purpose stays valid Python and is no problem, as before.505 tests pass. Merging publishes 0.4.2 (
buildVars.pyandCHANGELOG.mdupdated; docs in English and Indonesian updated).🤖 Generated with Claude Code