ViperIDE icon indicating copy to clipboard operation
ViperIDE copied to clipboard

Reworking the board connection mechanism

Open vshymanskyy opened this issue 1 year ago • 1 comments

I think of reworking the board connection mechanism:

  1. Upon connection verify if user code is running (send Enter, see if REPL responds)
    • If REPL responds, automatically load system info and FS structure
  2. If no REPL responce, check if user have selected the Interrupt Running Code setting
    • If no interruption is needed, stay in Terminal mode, disable FS and Editor temporarily until the code exits or is interrupted by the developer
    • If interrupting is needed, interrupt code, load FS contents

Also, I think auto-restart setting would be useful, that would soft-reset board when:

  • initial connection interrupted the app execution
  • user saves any file

But before that, I want to play a bit with aiorepl: https://github.com/vshymanskyy/ViperIDE/issues/30

👉 feedback is welcome 👈

vshymanskyy avatar Sep 17 '24 13:09 vshymanskyy

I think this is the right thing to do - I love auto connecting and smart IDEs , But not if they break into the application running on my MCU without asking. personally I would prefer to have

  • [ ] Interrupt running code ( Default off)

Josverl avatar Mar 26 '25 15:03 Josverl