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

E492: Not an editor command: LLPStartPreview #3 #116

Open
ErrWare opened this issue May 15, 2021 · 10 comments
Open

E492: Not an editor command: LLPStartPreview #3 #116

ErrWare opened this issue May 15, 2021 · 10 comments

Comments

@ErrWare
Copy link

ErrWare commented May 15, 2021

Expected behavior

:LLPStartPreview should compile and preview the tex document in the current buffer.

Actual behavior

E492: Not an editor command: LLPStartPreview

Steps to reproduce

Tell us how it occurs

  1. Plug 'xuhdev/vim-latex-live-preview' using vim-plug
  2. :PlugInstall
  3. Open up tex document
  4. :LLPStartPreview

System configuration

  • Vim version:
NVIM v0.5.0-dev+1323-gd67dcaba0
Build type: Debug
LuaJIT 2.1.0-beta3
Compilation: /usr/bin/cc -g -Wall -Wextra -pedantic -Wno-unused-parameter -Wstrict-prototypes -std=gnu99 -Wshadow -Wconversion -Wmissing-prototypes -Wimplicit-fallthrough -Wvla -fstack-protector-strong -fno-common -fdiagnostics-color=always -DINCLUDE_GENERATED_DECLARATIONS -D_GNU_SOURCE -DNVIM_MSGPACK_HAS_FLOAT32 -DNVIM_UNIBI_HAS_VAR_FROM -DMIN_LOG_LEVEL=1 -I/home/sherrware/Downloads/neovim/build/config -I/home/sherrware/Downloads/neovim/src -I/home/sherrware/Downloads/neovim/.deps/usr/include -I/usr/include -I/home/sherrware/Downloads/neovim/build/src/nvim/auto -I/home/sherrware/Downloads/neovim/build/include
Compiled by root@archlinux

Features: +acl +iconv +tui
See ":help feature-compile"

   system vimrc file: "$VIM/sysinit.vim"
  fall-back for $VIM: "/usr/local/share/nvim"

Run :checkhealth for more info
  • Platform:

Arch. Please let me know what commands I should run to fill out this section...


I've already checked #83 and #105 and #12. Like in #12 I see vim-latex-live-preview loaded in :scripts, unlike in the issue I don't see a +python feature, although in vim :checkhealth I do see it is compiled with python3 support, and running :python3 import ... like is done in the .vim script everything works. I don't know what else to try.

@ghost
Copy link

ghost commented May 28, 2021

I'm facing the same issue

@Rafmaninoff
Copy link

I just had to deal with this very issue, the solution was to actually ensure texlive was properly installed in the system.

@FrenzyExists
Copy link

FrenzyExists commented Jun 4, 2021

I'm also having the same issue. I installed texlive-most and for some reason it won't work. I can however use pandoc (which requires latex to be installed for the conversion) without any issue

Btw I'm using neovim nightly version if that helps

@jakec-dev
Copy link

Same issue here.

texlive is installed correctly and :script shows that the plugin is loading correctly in vim. I'm not having issues with any other vim plugins either.

I'm on Arch Linux, have texlive-most installed through the Arch repo, have ensured all my packages are up to date, am using vim version 8.2, and have tried installing the plugin both through vim-plug and manually (exact same issue occurs with both methods). I'm not sure what else to try.

@stainlesspot
Copy link

For neovim, if :echo has('python3') || has('python') outputs 0, you have to install the python-pynvim package. As noted on the Arch wiki.

@skippa
Copy link

skippa commented Aug 3, 2021

Did anyone happen to solve this? I'm using arch linux, vimplug, vim 8.2, same issue

@AbdeltwabMF
Copy link

@stainlesspot
Thank you so much. I'v had the same issue but now it just works.

@xuhdev
Copy link
Owner

xuhdev commented Aug 19, 2021

Since this is resolved, I'm closing this now.

@xuhdev xuhdev closed this as completed Aug 19, 2021
@xuhdev xuhdev reopened this Aug 19, 2021
@xuhdev
Copy link
Owner

xuhdev commented Aug 19, 2021

OK don't see the OP hasn't resolved this yet. You must have +python or +python3 feature to use this plugin. #116 (comment) might be useful. Let me if it works. Thanks.

@nzetsu
Copy link

nzetsu commented Aug 31, 2021

so i had the same issue as OP.
I'm using vim 8.1 on debian 10 buster and i had to reinstall it and chose a +python3 ready to use version of vim. vim-gtk3 did it.
And then i had the failed to compile issue. After a round 2 of other issues reading, i noticed, that my hello world doc did not have \documentclass, so to say the problem was not on the pluging side, although i had -python and +python3. See the pictures...
So there are two issues, the second is not from the plugin.

doc_working

vimrc

version

script_cmd

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

No branches or pull requests

9 participants