vshymanskyy / ViperIDE

An innovative MicroPython IDE for Web and Mobile
https://viper-ide.org
MIT License
47 stars 4 forks source link

Web_repl file operations don't work with Chromium (Linux). #11

Open rkompass opened 6 days ago

rkompass commented 6 days ago

Hello,

I have the error: Timeout reached before finding the ending sequence when connecting with the Wemos w600 Pico (robert-hh s port) through the web_repl. The hierarchy of the few files on the board at first is displayed correctly. Terminal works. But: When I double-click a file to open in the editor, (or create a new file, after entering it's name) then this error occurrs. The terminal then also stops echoing my keystrokes. At the w600 primary terminal (screen /dev/ttyUSB0 115200) then I see (if file doubleclick)

raw REPL; CTRL-B to exit

is displayed without accepting any input (tried also the Ctrl-B: no reaction).

This problem only occurs on my Chromium browser (with Manjaro Linux).

On Firefox the file operations work o.k., as previously tested by Robert.

So perhaps a solution might be to complement the Tested with - list by a list of browsers tested to work.

vshymanskyy commented 5 days ago

Sometimes it works, sometimes doesn't. WebREPL is not stable on W600 in general, but it works on ESP8266, ESP32 and Pi Pico W.

rkompass commented 5 days ago

Oh, on Firefox it was very stable today.I could do everything. So w600 port and your latest viper version seem fine. You can close this. Just wanted to tell you that there is heavy dependence on the browser variant and that might be emphasized in the intro/docs.--Diese Nachricht wurde von meinem Android Mobiltelefon mit GMX Mail gesendet.Am 25.06.24, 11:29 schrieb Volodymyr Shymanskyy @.***>:

Sometimes it works, sometimes doesn't. WebREPL is not stable on W600 in general, but it works on ESP8266, ESP32 and Pi Pico W. —Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you authored the thread.Message ID: @.***>

vshymanskyy commented 5 days ago

@robert-hh this is an interesting observation

robert-hh commented 5 days ago

I tested that with Google Chrome and it worked.

robert-hh commented 5 days ago

I installed Brave on my Debian system, and the Viper IDE works fine with a W600. No problem with file operations. Brave: Version 1.67.119 Chromium: 126.0.6478.114 (Offizieller Build) (64-Bit)

vshymanskyy commented 5 days ago

Try doing this:

Usually it works after this but it fails if i reconnect to the device, maybe after several times (on my side)

rkompass commented 5 days ago

Of course I did that. web_repl is started in main.py. After re-plugging the w600 viper-ide is there.

All (including file-) operations work with Firefox (Version 127.0 64-bit for Manjaro Linux) and Brave (Version 1.67.119 Chromium: 126.0.6478.114 (Offizieller Build) (64-Bit)), from the WebRepl.

Only terminal and first directory tree display with pure Chromium (Version 126.0.6478.114 (Offizieller Build) Arch Linux (64-Bit)), and Opera.

At an attempt to do file operations (after clicking a file for display, for example) the above error: Timeout reached before finding the ending sequence is diplayed in the upper right corner.

Some strange configuration detail with the browsers, I suppose. Probably not worth investigating too much. No problem with w600 firmware anymore, as Robert stated already :-)

My suggestion again is to only document that, so that users aren't thinking their board or firmware might have a problem.

vshymanskyy commented 5 days ago

Got it. Let's leave the ticket open for now

rkompass commented 4 days ago

Can add: With the Pico W and web_repl it's exactly the same: Firefox, Brave work. Chromium(linux) and Opera same error. No difference between w600 and Pico W (what is what we want :-)).

vshymanskyy commented 4 days ago

Interesting! I'll try it later, probably Opera.