KeyError: 'path'
ndarilek opened this issue · 1 comments
ndarilek commented
Getting the following when running in snippets mode, arrowing to a snippet, and attempting to copy it to the clipboard.
Traceback (most recent call last):
File "C:\Users\nolan\src\launchtype\src\managers\ui_manager.py", line 132, in copyButtonClicked
with CommandEditionDialog(
^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\nolan\src\launchtype\src\ui\command_edition_dialog.py", line 37, in init
if not command_to_edit == {} and command_to_edit["path"]:
~~~~~~~~~~~~~~~^^^^^^^^
KeyError: 'path'
I noticed that I'd given a snippet a wrong filename (typed "gameway" instead of "gateway" in the name) and updated it in the folder, so maybe that's the reason? Maybe a Refresh button would be helpful?
Thanks.
ogomez92 commented
It should auto refresh every time the program is launched at least. Did it
work now?
El mar, 27 feb 2024 a las 18:49, Nolan Darilek ***@***.***>)
escribió:
… Getting the following when running in snippets mode, arrowing to a
snippet, and attempting to copy it to the clipboard.
Traceback (most recent call last):
File "C:\Users\nolan\src\launchtype\src\managers\ui_manager.py", line 132,
in copyButtonClicked
with CommandEditionDialog(
^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\nolan\src\launchtype\src\ui\command_edition_dialog.py",
line 37, in *init*
if not command_to_edit == {} and command_to_edit["path"]:
~~~~~~~~~~~~~~~^^^^^^^^
KeyError: 'path'
I noticed that I'd given a snippet a wrong filename (typed "gameway"
instead of "gateway" in the name) and updated it in the folder, so maybe
that's the reason? Maybe a Refresh button would be helpful?
Thanks.
—
Reply to this email directly, view it on GitHub
<#4>, or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AA4P75OPXIWRULM7LEBAU3TYVYMCFAVCNFSM6AAAAABD4R55U2VHI2DSMVQWIX3LMV43ASLTON2WKOZSGE2TOMRXGMZDQMA>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>