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

Installation problems on Ubuntu via Termux #2148

Closed
rieser opened this issue Aug 26, 2021 · 6 comments
Closed

Installation problems on Ubuntu via Termux #2148

rieser opened this issue Aug 26, 2021 · 6 comments
Labels

Comments

@rieser
Copy link

rieser commented Aug 26, 2021

Description

I get the following error when trying to install vimtex on a Samsung S6 Lite Tablet using Ubuntu under Termux. I get the same error under vim using vim-plug or the native vim package system, and also in neovim. Any help would be much appreciated.

Error detected while processing function vimtex#init[7]..<SNR>26_init_state[1]..
vimtex#state#init[9]..vimtex#state#class#new[32]..vimtex#compiler#init_state[3].
.<SNR>41_init_compiler[5]..vimtex#compiler#latexmk#init[1]..1[5]..20:
line    9:
E121: Undefined variable: l:cmd
E116: Invalid arguments for function vimtex#log#warning
Error detected while processing function vimtex#init[7]..<SNR>26_init_state[1]..
vimtex#state#init[9]..vimtex#state#class#new:
line   32:
E170: Missing :endfor
Error detected while processing function vimtex#init[7]..<SNR>26_init_state[1]..
vimtex#state#init:
line    9:
E171: Missing :endif

Steps to reproduce

vim or nvim. Any .tex file. I used:

\documentclass{article}

\begin{document}
This is a test.
\end{document}

Expected behavior

vim or nvim to open normally

Actual behavior

I get the error described above when opening a .tex file. Also, the \ll and \lv commands don't work.

Do you use a latexmkrc file?

No

VimtexInfo

I get the error: "E492: Not an editor command: VimtexInfo"
@rieser rieser added the bug label Aug 26, 2021
@rieser
Copy link
Author

rieser commented Aug 26, 2021

I get a similar error in Fedora and Debian (installed via proot-distro). In Termux it works fine.

@lervag
Copy link
Owner

lervag commented Aug 26, 2021

I get the following error when trying to install vimtex on a Samsung S6 Lite Tablet using Ubuntu under Termux. I get the same error under vim using vim-plug or the native vim package system, and also in neovim. Any help would be much appreciated.

It seems to me that this does not have anything to do with installation. Instead, it looks like a problem during initialization of VimTeX when you open a .tex file.

:VimtexInfo would probably not be available if this initialization is not working. So, in this case: What's the version of Vim and/or neovim?

Please also note that the proper way to write code blocks in Markdown is to use three backtics, i.e.

Markdown stuff

```
code block here
```

You used multiple =s, which makes the preceding text recognized as a header. Feel free to read the guide to github flavored markdown

lervag added a commit that referenced this issue Aug 26, 2021
@lervag
Copy link
Owner

lervag commented Aug 26, 2021

I've pushed a minor fix that should resolve the error. Please update and let me know what happens now.

@rieser
Copy link
Author

rieser commented Aug 26, 2021

It works! Many thanks!

(Sorry about the sloppy formatting. Thanks for the advice as well.)

@lervag
Copy link
Owner

lervag commented Aug 26, 2021

Glad to hear it! And you're welcome :)

@lervag lervag closed this as completed Aug 26, 2021
@rieser
Copy link
Author

rieser commented Aug 26, 2021

The version of vim was 8.1.2269, and the neovim version was 0.4.3.

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

No branches or pull requests

2 participants