-
Notifications
You must be signed in to change notification settings - Fork 8
Unable to get digestif to work with ConTeXt LuaMetaTeX (LMTX) #69
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
Comments
Try setting |
Hi, thanks for the response. Trying that did not fix the problem. Digestif is still telling me Error: can't find 'context-en.xml' or can't generate tags from it. when I run digestif -g context-en.xml. I also tried setting DIGESTIF_TEXMF to "$HOME/context/texmf-context/tex" with no luck there either. |
Correction "$HOME/context/tex/texmf-context/tex". |
This should work. What do these commands give you?
and
|
Context-en.xml is located at "~/context/tex/texmf-context/tex/context/interface/mkiv/context-en.xml". |
With the |
I set DIGESTIF_TEXMF to "$HOME/context/tex". To make sure that bash expanded it properly I echoed it, it expanded properly. I also reran "digestif -v -g context-en.xml" 2 more times with the same result (aside from the timespamp): "14:09:11 TLPDB not found |
Ah, okay, the luarocks version is somewhat old, that might be the reason then... In this case I would suggest to use the self-installing script method. You need to change the line |
Okay! Will do. |
Sorry for taking so long to reply. My internet router/modem died on me and I had to wait for a replacement. I have installed digestif using the self installer script. I set
I went ahead and installed luafilesystem using luarocks. Rerunning
I proceeded to open a tex file using my editor, but am not getting any auto completions. Also, following https://github.com/astoff/digestif/wiki/Common-installation-issues#info-nodes, I cannot find any info file in my context installation. Running
I am unsure as how to proceed from here. |
Okay this means Digestif is correctly installed now. I guess the rest of the story is editor-specific; you need to convince your editor to run the right program.
This is fine, it's irrelevant for ConTeXt. |
I was successfully getting Digestif to run inside neovime using nvim-lspconfig and nvim-cmp. IDK why it's not working now. Do you have any suggestions? |
Clarification: it was running when I was using the texlive context distribution.. |
It seems I’m at the same point somehow. I’m on macOS Intel, ConTeXt is the LMTX X86 from here, my editor is BBEdit. I’ve installed digestif from the link in the readme. Running Via BBEdit’s LSP interface, my launch command is ![]() and ![]() However, it doesn’t seem to “do” anything. E.g., when I remove an opening or closing bracket, I’d expect it to indicate the syntax error. I have not yet delved into command completion, as I suspect that something fundamental is not working here. Is there any additional launch config needed, e.g. something like Oh, and when I check the running processes I don’t find any Sorry if I’m missing something obvious, I just started playing around with digestif for the first time today. |
An update to my post above: In the meantime I got a new Mac and set it up there again, and it seems to work now. While setting it up, I experimented with variations of the Language ID in BBEdit’s LSP settings and ended up leaving it blank. So I actually don’t know what “fixed” it. I said “seems to work”, because there is still no syntax check but I now see changes to the completion menu when the server is enabled. So I guess the Features section of the ReadMe has to be taken literally (no mention of syntax checking). However, in this case, digestif’s completion comes with a huge problem: it seems to partially replace BBEdit’s native completion. (I expected it to add to the completions.) BBEdit’s native completion draws from (A) the language module (BBLM), from (B) the custom clippings, and also from (C) the word inventory of the current file. A and C are missing when the server is enabled, which means that I lose far more useful completions than are added by digestif, namely because of missing C. But I guess this is a problem with BBEdit’s implementation, and not with digestif itself. |
Hey! Sorry for not checking back in. I had forgotten that I left this issue open. If anyone else is looking into this too, the above mentioned step of setting If anyone else is also trying to setup Digestif in Nvim, it's dead simple to do so. |
Hello! I have been looking for a context lsp and came across yours. I am very excited to use it; however, I have been unable to get it to work with lmtx.
I did some digging and found a similar issue: #54. I was initially hopeful that this would fix it. It did not. I set DIGESTIF_TEXMF to '~/context/tex' without success. Trying to run 'digestif -g context-en.xml' also failed: I event cd'd to the dir containing it '~/context/tex/texmf-context/tex/context/interface/mkiv' and reran the command. All I get is cannot find or generate tags.
More techical info:
As a sanity check I installed texlive-context and was able to get completions from that. I really do not know what todo further to try and fix this.
The text was updated successfully, but these errors were encountered: