-
Notifications
You must be signed in to change notification settings - Fork 73
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
LLPStartPreview doesn't start #12
Comments
starting $vim main.tex after enabling your plugin in .vimrc. |
@paynito This is because your Vim installation does not have Python feature enabled (or the python feature is broken). Please try to reinstall Vim. You can search for E887 online, the solution is the same, regardless of the plugin. |
I just want to add that I have VIM compiled with python3 and it seems that I have to |
Hello does anyone know why when I type :LLPStartPreview in VIM it says "Not an editor command" |
@luchaoo7 You probably didn't have the plugin loaded. You can check by running |
@xuhdev thanks for your reply, It is loaded The only tag I see in ~/.vim/bundle/vim-latex-live-preview/doc/tag is "vim-latex-live-preview.txt" In the "latexlivepreview.vim" file on line command! 184 is the following: I can't seem to spot why its not working. |
As long as it's loaded, it should be available. Tags are just indices for quick lookup. Perhaps you wanna check your typing of the command? |
I'm seeing the same thing.
but vim's command autocomplete doesn't pick it up, and I get As you can see, I installed this using the vim-plug plugin manager, but I hope that isn't the issue. UPDATE: I see that the script looks specifically for 'python' support, and not 'python' and 'python3'. That's why I was never seeing the commands available. Any chance of adding python3 support? |
I have encounter the same problem |
@kunlilin2991 thanks for the feedback ! Could you provide some info about your system and your vim ? Also, what does |
This commit follows users' usecases in #12
Having the same problem here. VIM 8.0 installed on macOS Sierra through Homebrew, relevant features: +python3 -python. Going through ~/.vim/bundle/vim-latex-live-preview/plugin/latexlivepreview.vim and replacing all "python" calls with "python3" and reloading, everything works perfect. Looks like the |
Also having the same issue as @vicentius, @kunlilin2991, @luchaoo7 and @jestin. I'm running Xubuntu 16.04, with Vim 7.4 compiled with support for +python and +python3 |
Thanks @vicentius for the python3 checking! Then this should be easy to fix. Otherwise, maybe we can look for a way to get rid of python and only use vim internal functions... @ranguli @kunlilin2991 : digging into |
@badouralix Thanks for this. Lots of interesting points brought up in that thread, personally (and for future reference) the later output of
Where I tried running the For someone reading this in the future, VundleVim/Vundle.vim#492 I also tried this suggestion in VundleVim/Vundle.vim#486 There's a chance it would work if I followed the suggestion from the above thread, of re-installing Vundle, but for end users it will likely be more appealing if they don't have to do so. In which case moving away from Python and towards Vim script, or the python3 checking that @vicentius mentioned sounds like the best options. |
Regarding @vicentius's suggestion of changing the instances of
However, |
|
Nice. All that was required to resolve And for future reference, the issue of vim picking up a second .vimrc file seemed to be an unrelated thing, as did the effect of the git command (both documented above). |
Cool! Cool cool cool! So for now, let's get a fix to support both And also, we absolutely need to get some decent debug info, because the current way of investigation is crazy hard... |
It sounds like supporting both I can attest to compiling Vim with support for both python versions and having neither work. It looks like we will need to pick just the one version (or switch to pure Vim script if that's even possible). |
Is this the same as #34? I agree, I think in trying to accomplish this we may need a better understanding of what's actually happening. I might try and try improve documentation too, as I haven't taken a good solid look at the script and could personally benefit from better docs. |
As far as I understand, as long as one gets a working vim with python features enable, a vimscript can dynamically dispatch calls to python. For instance plug.vim#1341 Another issue: as you were talking about debian-based systems, I took a look at the features embedded in the latest vim package in debian. It comes with Btw, to test multi-platforms, I go with docker. But we can also set up vader tests to run on travis. |
Okay, nice! So the check to see if
Ouch, so it sounds like we can just accept the fact that users will need to compile Vim with Python support, which isn't that bad seen as how other plugins require this step too. Setting up tests to run on Travis will be super nice. I'll add Vader and a Testing section to the README. If the dockerfiles have anything of interest feel free to track them, just to keep things uniform. |
Sorry to reply so late, I use ubuntu 16.04 with vim 8.0 and enable both python and python3, also, there is only one .vimrc file in my computer. what information can I offer about vim and plugin to solve the bug? |
@kunlilin2991 Pasting the output of |
the :script is list as following and the version about python and vimrc file is list as following: I have checked python version list as following: |
I edited my all "python" instances to "python3" in ~/.vim/bundle/vim-latex-live-preview/plugin/latexlivepreview.vim. The preview worked. |
I think we need to allow for customizing python version in this case... |
@badouralix This fix actually might cause some issues. The reason is that, as long as either |
I couldn't make things break. In all my tests, I was able to use both |
Encountering the same here. Could anyone help? Edit: Changing python version is not working. The command "if exists("g:loaded_vim_live_preview") " finish "endif And it works. However, any error message will not appear. Opening a new issue reporting it. |
Why is this closed? I still get this. |
Hi, guys |
Probably just a latex syntax error. Try compile a latex example. |
Sorry to comment on an old closed issue like this, but I thought I should leave what I found somewhere on this repo. For me, I was also experiencing this error, but in my case, the solution to the problem was to uninstall the |
I'm using Manjaro and the reason why it wasn't working for me was because I forgot to install latex compiler, hope you are not in the same situation haha check: https://archlinux.org/groups/x86_64/texlive-most/ |
That's the error I received, and evince (pdf viewer) says that it cannot find the pdf file.
The text was updated successfully, but these errors were encountered: