new error: " Bad @data contextmenu_commands entry:"

16 views
Skip to first unread message

jkn

unread,
Jul 10, 2023, 2:45:50 AM7/10/23
to leo-editor
I'm noticing this when leo loads, I am pretty sure I have not seen this before:

repeated several times:
Bad @data contextmenu_commands entry: ['---']


I think this is coming from my myLeoSettings.leo, which has


@data contextmenu_commands

    copy-node Copy Node
    cut-node Cut Node
    paste-node Paste Node
    ---
    insert-node Insert Node
    ---
   open-url-under-cursor Open URL


(NB: only two separators, not three)


Has something changed here recently? Maybe just the error message?...


Thanks

J^n



Leo Log Window
Leo 6.7.4-devel, devel branch, build 103f5c5e1e
2023-07-09 09:20:05 -0500
Python 3.9.5, PyQt version 5.15.2
linux


jkn

unread,
Jul 10, 2023, 5:21:51 AM7/10/23
to leo-editor
Hmm - on a different machine which doesn't show the error, I see that the equivalent entries in myLeoSettings.py only have a single dash:

@data contextmenu_commands
copy-node Copy Node
cut-node Cut Node
paste-node Paste Node
-
insert-node Insert Node
insert-child Insert Child
-
open-url-under-cursor Open URL


So it looks like this is the correct format to use.

OTOH I am pretty sure I haven't seen the other error before, on that machine. Maybe error mesages have been improved?

Apologies if it turns out this is just noise...

Regards, Jon N

Edward K. Ream

unread,
Jul 10, 2023, 5:41:41 AM7/10/23
to leo-e...@googlegroups.com
On Mon, Jul 10, 2023 at 4:21 AM jkn <jkn...@nicorp.f9.co.uk> wrote:
Hmm - on a different machine which doesn't show the error, I see that the equivalent entries in myLeoSettings.py only have a single dash:

Afaik error messages have not changed.

Edward
Reply all
Reply to author
Forward
0 new messages