Skip to content

saving +run in the web intereface adds extra wrong characters in REPL console that prevent import <file> from running #9390

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

Open
aguaviva opened this issue Jul 1, 2024 · 6 comments
Milestone

Comments

@aguaviva
Copy link

aguaviva commented Jul 1, 2024

CircuitPython version

Adafruit CircuitPython 9.0.5 on 2024-07-01; Espressif ESP32 TTGO T8 v1.7 with ESP32

Code/REPL

just pressing `save+run` causes `Aimport test` to show up, the wrong `A` causes the action to fail

Behavior

soft reboot

Auto-reload is on. Simply save files over USB to run them or enter REPL to disable.
code.py output:
Hello World!

Code done running.

Adafruit CircuitPython 9.0.5 on 2024-07-01; Espressif ESP32 TTGO T8 v1.7 with ESP32
>>> 
paste mode; Ctrl-C to cancel, Ctrl-D to finish
=== Aimport test

Traceback (most recent call last):
  File "<stdin>", line 1
SyntaxError: invalid syntax

Description

No response

Additional information

No response

@aguaviva aguaviva added the bug label Jul 1, 2024
@dhalbert
Copy link
Collaborator

dhalbert commented Jul 1, 2024

Is this in the bare web workflow interface or is it using https://code.circuitpython.org ?

@tannewt tannewt added the esp32 label Jul 1, 2024
@tannewt tannewt added this to the 9.x.x milestone Jul 1, 2024
@aguaviva
Copy link
Author

aguaviva commented Jul 1, 2024

I access directly the web interface using circuitpython.local or cpy-xxxxxx.local, y also get an R sometimes, not sure where that is coming from. Not sure this is specific to the ESP32

Adafruit CircuitPython 9.0.5 on 2024-07-01; Espressif ESP32 TTGO T8 v1.7 with ESP32
>>> 
raw REPL; CTRL-B to exit
>R

I get the same issue on a esp32-cam, all very consistently.

@dhalbert
Copy link
Collaborator

dhalbert commented Jul 1, 2024

@makermelissa This looks like web-editor?

@aguaviva
Copy link
Author

aguaviva commented Jul 1, 2024

all runs consistently fine using Thonny (no extra characters showin up)

@aguaviva
Copy link
Author

Should I file this bug in the web-editor repo? Also, am I the only one seeing these issues?

@RetiredWizard
Copy link

I get the second results you indicated, when I click on the button, the editor appears to put the REPL into raw REPL mode, display an "R" and then disconnect/reconnect the web serial terminal. When reconnected, the REPL seems to be in the middle of a RAW paste operation, pressing ctrl-d closes the paste and then a ctrl-b exits the RAW REPL mode.

@dhalbert dhalbert modified the milestones: 9.x.x, 10.x.x Mar 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants