zyedidia / micro

A modern and intuitive terminal-based text editor
https://micro-editor.github.io
MIT License
25.17k stars 1.18k forks source link

Running remote commands causes the editor to freeze up #3413

Open Wuzado opened 3 months ago

Wuzado commented 3 months ago

Description of the problem or steps to reproduce

Running any commands that require internet connection causes the UI to lock up.

Reproduction:

  1. Run plugin available in the command bar (preferably under bad internet conditions)
  2. Attempt to do any action in a separate, local pane (eg. change the focus, attempt to write something etc.)

Specifications

Commit hash: 68d88b57 OS: Linux (Arch Linux using the packaged version) Terminal: Konsole 24.05.2

JoeKar commented 3 months ago

Seems to be addressed by #3389 already.

Wuzado commented 3 months ago

Interesting PR. Reading the comments under it, I feel like async(-ish? don't know too much about Go's asynchronous programming) is probably still the way to go for true UI responsiveness. Perhaps running the download task in a separate thread could work?