vshymanskyy/ViperIDE

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

rkompass opened this issue · 10 comments

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.

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

@robert-hh this is an interesting observation

I tested that with Google Chrome and it worked.

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)

Try doing this:

  • check you're using the latest w600 firmware build
  • ensure only minimal WebREPL code is running, no custom application
  • perform power reset
  • try connecting cleanly

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

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.

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

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 :-)).

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