LaTeX-Box-Team / LaTeX-Box

Lightweight Toolbox for LaTeX - New Official repository
http://www.vim.org/scripts/script.php?script_id=3109
GNU General Public License v3.0
396 stars 66 forks source link

Compiling succeed, but showed as failed. #171

Closed xu-cheng closed 10 years ago

xu-cheng commented 10 years ago

I'm sure that latexmk returns 0. But latex-box still shows the compiling fails.

lervag commented 10 years ago

Ok, so, do you think perhaps you could provide more details?

For instance: How do I replicate this bug. For me, everything works as expected. Obviously. If it didn't, then I would have fixed it already.

To give some specific hints at what would help:

  1. Details on your configuration: relevant vimrc-settings, vim version, OS, etc.
  2. If relevant: A minimal tex-file for which the problem occurs.
  3. What do you mean with "shows the compiling fails"? Are you sure that it fails, and that it is not only a warning?
xu-cheng commented 10 years ago

Ok, my vim settings is a fresh installed spf13-vim. I just add LaTeX-Box and auctex.vim into the bundle. And I set my latexmkrc to $pdflatex = 'lualatex --shell-escape %O %S'.

My tex file is a simple test. Here is the image for failing: failing

lervag commented 10 years ago

Could you run :LatexErrors and report the output. It should give some more info on what is happening.

Alternatively: Could you try to use vim-latex and see if you get the same problem. This is a fork of LaTeX-Box with some simplifications and changes, including a feature that should make it slightly easier to debug.

xu-cheng commented 10 years ago

:LatexErrors shows:

|| This is LuaTeX, Version beta-0.76.0-2013061817 (rev 4627)  (format=lualatex 2014.3.31)  28 APR 2014 22:48
||  \write18 enabled.
||  file:line:error style messages enabled.
|| **test.tex
|| (./test.tex
|| LaTeX2e <2011/06/27>
|| Babel <3.9k> and hyphenation patterns for 78 languages loaded.
|| (/usr/local/texlive/2013/texmf-dist/tex/latex/base/article.cls
|| Document Class: article 2007/10/19 v1.4h Standard LaTeX document class
|| (/usr/local/texlive/2013/texmf-dist/tex/latex/base/size10.clo
|| File: size10.clo 2007/10/19 v1.4h Standard LaTeX file (size option)
|| )
|| \c@part=\count79
|| \c@section=\count80
|| \c@subsection=\count81
|| \c@subsubsection=\count82
|| \c@paragraph=\count83
|| \c@subparagraph=\count84
|| \c@figure=\count85
|| \c@table=\count86
|| \abovecaptionskip=\skip41
|| \belowcaptionskip=\skip42
|| \bibindent=\dimen102
|| ) (./test.aux)
|| LaTeX Font Info:    Checking defaults for OML/cmm/m/it on input line 2.
|| LaTeX Font Info:    ... okay on input line 2.
|| LaTeX Font Info:    Checking defaults for T1/cmr/m/n on input line 2.
|| LaTeX Font Info:    ... okay on input line 2.
|| LaTeX Font Info:    Checking defaults for OT1/cmr/m/n on input line 2.
|| LaTeX Font Info:    ... okay on input line 2.
|| LaTeX Font Info:    Checking defaults for OMS/cmsy/m/n on input line 2.
|| LaTeX Font Info:    ... okay on input line 2.
|| LaTeX Font Info:    Checking defaults for OMX/cmex/m/n on input line 2.
|| LaTeX Font Info:    ... okay on input line 2.
|| LaTeX Font Info:    Checking defaults for U/cmr/m/n on input line 2.
|| LaTeX Font Info:    ... okay on input line 2.
|| [1
|| 
|| {/usr/local/texlive/2013/texmf-var/fonts/map/pdftex/updmap/pdftex.map}] (./test.aux) )
|| 
|| Here is how much of LuaTeX's memory you used:
||  219 strings out of 494698
||  100000,89155 words of node,token memory allocated
||  264 words of node memory still in use:
||    2 hlist, 1 vlist, 1 rule, 2 glue, 40 glue_spec, 1 write nodes
||    avail lists: 2:12,3:3,4:22,6:11,7:1,9:6
||  4027 multiletter control sequences out of 65536+600000
||  15 fonts using 602239 bytes
||  23i,4n,17p,150b,110s stack positions out of 5000i,500n,10000p,200000b,100000s
|| </usr/local/texlive/2013/texmf-dist/fonts/type1/public/amsfonts/cm/cmr10.pfb>
|| Output written on test.pdf (1 page, 10473 bytes).
|| 
|| PDF statistics: 12 PDF objects out of 1000 (max. 8388607)
||  7 compressed objects within 1 object stream
||  0 named destinations out of 1000 (max. 131072)
||  1 words of extra memory for PDF output out of 10000 (max. 10000000)
|| 

I'm kinda busy right now, I will try vim-latex when I'm free.

lervag commented 10 years ago

Strange! I am still not able to reproduce, so I'll await your testing with vim-latex.

xu-cheng commented 10 years ago

Ok, It took a little long time for me to install vim-latex (it seems that a bug in Vundle makes vim-latex not loading properly https://github.com/lervag/vim-latex/issues/12). And it shows compiling success.

So I have no other information about this bug. Could it be also a bug due to Vundle?

lervag commented 10 years ago

Yes, I know about the issue with Vundle for vim-latex. I think it should be solved by now.

In any case, I am happy to hear that the vim-latex works. I expect that it could indeed be related to the same Vundle issue.

In any case, I'll close this issue for now. Feel free to reopen if it becomes relevant again, and if you can describe how to reproduce the issue (minimal working example, minimal vimrc file, etc).

nasenatmer commented 10 years ago

Just to confirm this, the bug in vundle was closed with this commit

xu-cheng commented 10 years ago

I test it and find that fixing the bug in vundle doesn't fix this problem.

nasenatmer commented 10 years ago

Then it's not vundle-related as the vundle problem was only about loading plugins proberly…

lervag commented 10 years ago

Agreed; it seems the bug is not Vundle related. However, I suggest that the issue remains closed. Unless @xu-cheng or someone else is able to explain how to reproduce, of course.