Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

describe-slot crashes Nyxt #3377

Open
aadcg opened this issue Apr 4, 2024 · 1 comment
Open

describe-slot crashes Nyxt #3377

aadcg opened this issue Apr 4, 2024 · 1 comment
Assignees
Labels
4-series Related to releases whose major version is 4. bug

Comments

@aadcg
Copy link
Member

aadcg commented Apr 4, 2024

Three issues here:

@aadcg aadcg added the bug label Apr 4, 2024
@aadcg aadcg self-assigned this Apr 4, 2024
@aadcg
Copy link
Member Author

aadcg commented Apr 8, 2024

The more general issue here is that all forms defined via define-internal-page-command that call prompt will invoke a condition since, in this case, *interactive-p* is NIL. Note that those defined via define-command don't suffer from this issue.

(define-internal-page-command test-internal-page-cmd ()
    (buffer "test")
  ;; *interactive-p* => NIL
  (prompt1 :prompt "Describe slot"
           :sources '(slot-source
                      slot-non-nyxt-source
                      slot-internal-source)))

(define-command test-cmd ()
    (buffer "test")
  ;; *interactive-p* => T
  (prompt1 :prompt "Describe slot"
           :sources '(slot-source
                      slot-non-nyxt-source
                      slot-internal-source)))

The bug is present in the master branch, not on the 3-series releases. The direct culprit is a688e8c. It seemed bogus to set *interactive-p* to T in order to run custom scheme callbacks, so I got rid of it. It is now clear that it was done to hide bad design.

The underlying issue is commit 62b7dc9.

The only sane decision is to delete the logic behind *interactive-p* and *headless-p* since it's poorly implemented and misaligned with the Nyxt's priorities.

@aadcg aadcg added the 4-series Related to releases whose major version is 4. label Apr 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
4-series Related to releases whose major version is 4. bug
Development

No branches or pull requests

1 participant