nyxt icon indicating copy to clipboard operation
nyxt copied to clipboard

Cannot Debug Prompter Bug

Open hendursaga opened this issue 1 year ago • 3 comments

On 7e8c1d4fc99e4ab3f46b71c6cd243af37d304311, whenever I get prompted for hints, I get the following:

WARNING:
   Error on separate prompter thread: There is no applicable method for the generic function
                                        #<STANDARD-GENERIC-FUNCTION NYXT:URL (18)>
                                      when called with arguments
                                        (#<PROMPTER:SUGGESTION {1008EDFFB3}>).

While trying to locate the source of the bug by running toggle-debug-on-error and (setf nyxt::*run-from-repl-p* t), however, it refuses to put me into a breakloop. Grepping for the error message, I find some duplicated, probably outdated code:

https://github.com/atlas-engineer/nyxt/blob/7e8c1d4fc99e4ab3f46b71c6cd243af37d304311/libraries/prompter/prompter-source.lisp#L37-L47

I then find a similar macro:

https://github.com/atlas-engineer/nyxt/blob/7e8c1d4fc99e4ab3f46b71c6cd243af37d304311/source/concurrency.lisp#L82-L90

Both of which use the with-protect macro. How do I proceed here?

hendursaga avatar Sep 06 '22 17:09 hendursaga

Indeed, it's duplicated and out of sync! (>_<)

aartaka avatar Sep 06 '22 17:09 aartaka

This will go when we switch to Lparallel (at least for the prompter).

Ambrevar avatar Sep 07 '22 05:09 Ambrevar

See #2381.

Ambrevar avatar Sep 07 '22 05:09 Ambrevar