Skip to content

Fix: set org src block cache (fix autocomplete) #591

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

dalanicolai
Copy link

The completion-at-point functionality is broken because the org src-block-cache is set to a nested list, instead of just a list. Therefore, the pcase-let destructuring in the
jupyter-org--src-block-cache does not work correctly, and fails to bind the cached markers. 'Unnesting' the cache-list fixes the set-cache and completion functionality.

I did not 'investigate' how the what the src-cache is supposed to look like, but it makes sense to me that it should not be a list of lists (as there should probably be only one 'cache' per src-block).

The completion-at-point functionality is broken because the org
src-block-cache is set to a nested list, instead of just a list.
Therefore, the pcase-let destructuring in the
jupyter-org--src-block-cache does not work correctly, and fails to
bind the cached markers. 'Unnesting' the cache-list fixes the
set-cache and completion functionality.
@dalanicolai
Copy link
Author

dalanicolai commented Jun 28, 2025

Oh... only now I see that #582 already fixes this (just it is not a very elaborate issue description). I keep this open for others to easier find the solution. You can just close it, when fixed...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant