BetaRavener / uPyLoader

File transfer and communication tool for MicroPython boards
MIT License
355 stars 76 forks source link

Unable to use external editor on Ubuntu #62

Closed DanielIbaseta closed 5 years ago

DanielIbaseta commented 5 years ago

The external editor doesn't seem to work in Ubuntu, ¿How is the reference to the loaded file passed to the "External editor arguments"? "%f" doesn't seem to work. Also, I'm passing the correct path for the editor, and it just don't show up empty or give an error, it just opens the built-in code editor.

BetaRavener commented 5 years ago

Sorry didn't get notified on this issue. The external editor is started through Python API Popen which handles all the argument passing. You can see how the wildcard is replaced with file path here: https://github.com/BetaRavener/uPyLoader/blob/master/src/gui/main_window.py#L574.

The internal editor is opened only in case the "Path to external editor" is left out empty. As long as there is something (not even correct path) entered, it should attempt to launch anything with that path. You could try to debug and see why it goes into wrong branch of code.

BetaRavener commented 5 years ago

Closing due to inactivity.