nyxt
nyxt copied to clipboard
Cannot Debug Prompter Bug
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?
Indeed, it's duplicated and out of sync! (>_<)
This will go when we switch to Lparallel (at least for the prompter).
See #2381.