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

fix(latex-renderer): fixed renderer failing silently #1462

Merged
merged 1 commit into from
Jun 12, 2024

Conversation

ALVAROPING1
Copy link
Contributor

Commit 8ec38e0 changed the implementation of the treesitter module's execute_query function. The function asks for a non-nil source, but the latex renderer wasn't providing one (which should have caused a type error, but didn't because the way the module.required table works prevents lua_ls from getting the function's signature). The previous implementation happened to use a function internally that used the buffer 0 when source was omitted to get the parser, which is what allowed the latex renderer to work previously, but the new implementation didn't do that

Commit [8ec38e0](8ec38e0)
changed the implementation of the treesitter module's `execute_query` function. The function
asks for a non-nil source, but the latex renderer wasn't providing one (which should have
caused a type error, but didn't because the way the `module.required` table works prevents
lua_ls from getting the function's signature). The previous implementation happened to use a
function internally that used the buffer 0 when `source` was omitted to get the parser, which
is what allowed the latex renderer to work previously, but the new implementation didn't do that
@vhyrro vhyrro merged commit 4b22a4e into nvim-neorg:main Jun 12, 2024
5 checks passed
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.

2 participants