I was just doing some experiment with the scriptSop, and found that my toe file was causing an error with the OP Snippet. I get the following error in my Text Port. I have attached my project file with this post, so you can try it out for yourself.
Traceback (most recent call last):
File “/ui/dialogs/OPSnippetsShell/extSnippets”, line 20, in OpenSnippets
File “/ui/dialogs/OPSnippetsShell/extSnippets”, line 36, in Initialize
td.Error: Invalid or duplicate pane name.
/ui/dialogs/mainmenu/menu/dropdown/script (Line 15 - tab("$gadget/commands",$digit,0)): dialogs: Invalid usage
dialogs
Usage:
dialogs [interface]
Description:
This command will open a window containing a selection for all
available dialogs. If an interface is specified, that dialog will
be opened instead.
This is a strange situation where the pane’s name you are using in your main worksheet became ‘snippets’ which is used to open the OP Snippets example. You can see a pane’s name in the drop-down menu in the top-right of the of the pane.
To fix this file, split the panes left/right or top/bottom, then close the original one called ‘snippets’. Now your file should work normally.
We’ll look at how this ‘snippets’ pane got into your worksheet, but haven’t seen this before. Do you remember doing anything specifically with OP Snippets?
I am having something similar happening. I just sent an email to support with a Toe file, but was asked to post here because my file was not giving the same problem, which is strange because when it happens to me it seems to persist across toe saves and on both my computers.
very similar error
Traceback (most recent call last):
File “”, line “op.OPSnippetsShell.OpenSnippets(optype=‘baseCOMP’, example=1)”
File “/ui/dialogs/OPSnippetsShell/extSnippets”, line 24, in OpenSnippets
File “/ui/dialogs/OPSnippetsShell/extSnippets”, line 47, in Initialize
td.tdError: Invalid or duplicate pane name.
python >>>
I don’t know the behavior that causes it, but it may be related to::
When multiple sessions of TD are open at the same time as op snippets, and/or
When changes are being made in snippets,
and/or when a crash occurs on one instance when snippets is open. I do have multiple toe files from the last few years that this behavior persists on my machines.
If support would like further toe files that do this please feel free to reach out.