unobserved-io / espanso-gui

GUI frontend for espanso
GNU General Public License v3.0
54 stars 3 forks source link

Program crashes when trying to open existing config file #1

Closed JonathanStreet closed 1 year ago

JonathanStreet commented 1 year ago

Steps to reproduce the bug:

Resulting and expected behaviour:

Program crashes (no errors). Expect the file to be loaded with no contents (as there's nothing in the file matching 'trigger/replace' in the yaml tree.

System/Device Information:

JonathanStreet commented 1 year ago

Was also able to recreate with the following - however, this one isn't a valid espanso config!

- trigger: "input"
  crash: "output"
rickykresslein commented 1 year ago

Thanks for pointing this out! Right now it only expects trigger/replace, so I will work on updating it to not crash when something else is loaded.

rickykresslein commented 1 year ago

This bug is now fixed with e6937fd. espansoGUI cannot read the regex line as of now, and that line will be erased if you save a file that used it, but it will no longer crash the program. I've added regex to the list of features to add.