The problem here is not with findGnx() or es_clickable_link(). The problem is that g.app.gui.runAskOkCancelStringDialog(c,'SEARCH Node by GNX',"Enter search GNX: ") is failing to find an existing gnx*.* Checking to see if it has returned None or not will prevent a exception, but the failure is a bug.
This statement is based on the one test case I ran, in which I got the gnx into the clipboard and pasted it from there into the dialog. On Tuesday, July 18, 2023 at 9:20:47 AM UTC-4 Edward K. Ream wrote: > On Tue, Jul 18, 2023 at 7:11 AM lewis <lewi...@fastmail.com.au> wrote: > > Have you used >> *p0 = g.findGnx(GNX_ID, c) # moves to position p0 * >> to replicate the issue? >> > > No. Why should I? The problem is with GNX_ID. > > execute-script with the following works for me: > > print(p) > prev = p.back() > gnx = prev.gnx > p0 = g.findGnx(gnx, c) # moves to position p0 > print(p0) > > The result: > > <pos 2813234759936 childIndex: 7 lvl: 0 key: 2813208689856:7 --- response > re script error> > <pos 2813234779584 childIndex: 7 lvl: 0 key: 2813208689856:7 --- response > re script error> > <pos 2813235231360 childIndex: 7 lvl: 0 key: 2813208689856:7 --- response > re script error> > <pos 2815272710784 childIndex: 6 lvl: 0 key: 2813207467584:6 Recent code> > > This is *your* scripting problem, not mine. > > Edward > -- You received this message because you are subscribed to the Google Groups "leo-editor" group. To unsubscribe from this group and stop receiving emails from it, send an email to leo-editor+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/leo-editor/b6e8f7bb-95b8-4e50-99b0-c32115b6a8bbn%40googlegroups.com.