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

[solved] E492: Not an editor command: LLPStartPreview ->[Bug] #105

Closed
g-h-97 opened this issue Jul 11, 2020 · 3 comments
Closed

[solved] E492: Not an editor command: LLPStartPreview ->[Bug] #105

g-h-97 opened this issue Jul 11, 2020 · 3 comments

Comments

@g-h-97
Copy link

g-h-97 commented Jul 11, 2020

Expected behavior

  • Obiously this is supposed to show the tex file privew

Actual behavior

  • The following error message :
    E492: Not an editor command: LLPStartPreview

Steps to reproduce

  • Execute :
    :LLPStartPreview

System configuration

  • Neovim : NVIM v0.5.0-592-ga695da7d3 (AUR)
  • pynvim : installed
  • has('python3') : 1
  • has('python') : 0
  • :script output : vim-latex-live-preview is nowhere to be seen ( not loaded )

can you guys please list vim-latex-live-preview python deps, since i suspect the issue to be related to a missing dep, any help is much appreciated.

And just as a side note :
I've already read the main plugin README and the related issue

and it seems that the suggested fix is aleardy implemented i.e to substitue every python occurence with python3 so thats not the issue in my case.

why am saying that this is supposed to be a python package related issue, is because I've recently cleaned the ~/.local/lib/python3.8/site-packages/ ( the site-packages root dir is completly clean so nothing messing there at least ) and I've done a backup of the entire thing however it's kind of missed up for now so there is no way to test every single package; and this brings me to the my request :

  • can any of the devs list ( if possible that is ) the python dependencies for the plugin so that i can work out what exactly is messing ?
    again really appreciate any help whatsoever .
@g-h-97
Copy link
Author

g-h-97 commented Jul 11, 2020

I've solved the issue and it wasn't really related to a missing module, since I've checked every import (os, subprocess...) in the plugin and all worked just fine except for import vim which I guess is supposed to be executed by vim, any way after some fiddling around with .vimrc ( linked to init.vim ), reinstalling neovim-git and python-neovim.

I've found out that the issue was in the Plug 'xuhdev/vim-latex-live-preview', { 'for': 'tex' } for some reason , { 'for': 'tex' } kind of hanged the plugin from starting at all which i thought was weird, but after removing that part the plugin got loaded fine .

One other issue is that I have Window Swallowing turned on on my terminal emulator, which makes the pdf preview window sit on top of the vim window when started, does any one know how workaround that some how ?

  • since i consider it to be a bug please take a look into it @xuhdev, many thanks.

@g-h-97 g-h-97 changed the title E492: Not an editor command: LLPStartPreview [solved] E492: Not an editor command: LLPStartPreview ->[Bug] Jul 11, 2020
@g-h-97 g-h-97 closed this as completed Jul 13, 2020
@Abdulee
Copy link

Abdulee commented Sep 21, 2020

This really helped me to get LLP working on my nvim setup. Thank you very much

@9-k
Copy link

9-k commented Mar 20, 2021

Just checking - the file needs to end in .tex for the editor command to be valid. That fixed the issue for me.

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

3 participants