Thanks to visit codestin.com
Credit goes to github.com

Skip to content

fix ReloadException when in REPL #6168

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 16, 2022

Conversation

dhalbert
Copy link
Collaborator

Do not raise ReloadException if in the REPL.
Also undo autoreload suspend before triggering autoreload. This is not imperative, but if autoreload_trigger() were to check the suspend state (it does not currently), it would have the wrong value. This was originally necessary when I was testing a different fix.

Please test! I tested on macOS and Linux with a Metro M4 and a Feather RP2040,
modifying a running code.py, copying a 40kB file while running, and also editing code.py and copying a file when in the REPL.

@dhalbert dhalbert requested a review from tannewt March 16, 2022 16:56
Copy link
Member

@tannewt tannewt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. Works well on Linux and Mac with file transfers and code.py edits from Sublime Text.

@dhalbert
Copy link
Collaborator Author

Tested with Thonny on Linux, seems to work as expected. I am not very familiar with a Thonny workflow.

@dhalbert dhalbert merged commit 66fa923 into adafruit:7.2.x Mar 16, 2022
@dhalbert dhalbert deleted the ReloadException-in-repl branch March 16, 2022 18:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants