Bug 383739 - [git master] System Check fails Simple Test on MakeIndex and BibTeX
Summary: [git master] System Check fails Simple Test on MakeIndex and BibTeX
Status: RESOLVED NOT A BUG
Alias: None
Product: kile
Classification: Applications
Component: general (show other bugs)
Version: master
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Michel Ludwig
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-08-20 07:51 UTC by Jeremy W. Murphy
Modified: 2019-07-29 12:10 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
System test screen shot (119.75 KB, image/png)
2017-08-25 13:00 UTC, Jeremy W. Murphy
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jeremy W. Murphy 2017-08-20 07:51:38 UTC
The checks for these two programs passed in 2.1 and I believe in early 2.9 versions but not at the moment.
Each check finds the binary in the expected place, but the Simple Test fails.

I regularly upgrade my TeX Live distribution, so it's possible that the behaviour changed there but I just didn't notice at the time. I'm currently using the 2017 distribution.

If I manually execute the same commands from the Simple Test, the BibTeX command seems to fail due to the filename extension:

jeremy@EliteChook2 ~/projects/kile/src/test $ latex test_bib.tex 
This is pdfTeX, Version 3.14159265-2.6-1.40.18 (TeX Live 2017) (preloaded format=latex) 
restricted \write18 enabled. 
entering extended mode 
(./test_bib.tex 
LaTeX2e <2017/01/01> patch level 3 
Babel <3.10> and hyphenation patterns for 10 language(s) loaded. 
(/usr/share/texmf-dist/tex/latex/base/article.cls 
Document Class: article 2014/09/29 v1.4h Standard LaTeX document class 
(/usr/share/texmf-dist/tex/latex/base/size10.clo)) 
No file test_bib.aux. 

LaTeX Warning: Citation `test' on page 1 undefined on input line 3. 

No file test_bib.bbl. 
[1] (./test_bib.aux) 

LaTeX Warning: There were undefined references. 

) 
Output written on test_bib.dvi (1 page, 268 bytes). 
Transcript written on test_bib.log. 
jeremy@EliteChook2 ~/projects/kile/src/test $ bibtex test_bib.tex 
I couldn't open file name `test_bib.tex.aux'


If I run "bibtex test_bib", it works.
Is that weird? Does that seems like the behaviour of bibtex changed? Because it looks like the configtest code hasn't changed materially in a long time.

I don't know why MakeIndex is failing, it returns 0 when I run it manually.
Comment 1 Jeremy W. Murphy 2017-08-20 07:53:35 UTC
PS. I can't conveniently downgrade my TeX Live distribution, sorry, so I would rather avoid that avenue of investigation.
Comment 2 Michel Ludwig 2017-08-24 08:09:39 UTC
Actually, the command that is run for the simple test is

bibtex test_bib

What is even more weird is that I have performed a minimal install of TeXLive 2017 on my machine and all the tests run fine in Kile :/

Do you maybe know if you have some special set-up on your machine?

Does bibtex run fine if you use it within Kile itself?
Comment 3 Jeremy W. Murphy 2017-08-24 08:26:00 UTC
(In reply to Michel Ludwig from comment #2)
> Actually, the command that is run for the simple test is
> 
> bibtex test_bib

Oh, OK.  So why on line 705 (and 710) the code _looks_ like it is passing "test_bib.tex" as the argument?

705: TestToolInKileTest *latexForBibTeX = new TestToolInKileTest("BibTeX", m_ki, "LaTeX", m_tempDir->path() + '/' + "test_bib.tex", false);


> Do you maybe know if you have some special set-up on your machine?

It's not special as far as I know, but it is Gentoo so it may be more custom than the norm. I enabled XeTeX?
I do suspect that it is more likely to be something weird with my system rather than a bug in Kile, as otherwise I expect someone else would have reported it before me by now.


> Does bibtex run fine if you use it within Kile itself?

I'm not at home right now, so I'll check later. 

What would be the most straightforward way to save the intermediate files (and error messages?) generated by Kile when it runs the Simple Tests? All I can think of off the top of my head is to debug it and add a break point before they are automatically cleaned up. (Assuming it is automatic, or are they left in /tmp?)
Thanks, cheers.
Comment 4 Michel Ludwig 2017-08-24 13:04:52 UTC
(In reply to Jeremy W. Murphy from comment #3)
> Oh, OK.  So why on line 705 (and 710) the code _looks_ like it is passing
> "test_bib.tex" as the argument?

The tool class that is run in Kile will remove the extension .tex again (%S in the tool configuration)

> What would be the most straightforward way to save the intermediate files
> (and error messages?) generated by Kile when it runs the Simple Tests? All I
> can think of off the top of my head is to debug it and add a break point
> before they are automatically cleaned up. (Assuming it is automatic, or are
> they left in /tmp?)

I guess you can comment out the tests that you don't want to run in 'setupTests'; the method 'installConsecutivelyDependentTests' should also work if you only pass one argument.

All the tests will be run in a temporary directory.

Considering that I cannot reproduce the problem, I will have to rely on you to solve this mystery ;)
Comment 5 Jeremy W. Murphy 2017-08-25 13:00:03 UTC
Created attachment 107513 [details]
System test screen shot

Just for the record, here is a screen shot of the messages that appear when the test fails.
Comment 6 Jeremy W. Murphy 2018-01-24 07:31:41 UTC
(In reply to Jeremy W. Murphy from comment #3)
> (In reply to Michel Ludwig from comment #2)
> 
> > Does bibtex run fine if you use it within Kile itself?
> 
> I'm not at home right now, so I'll check later. 

OK, sorry for the delay, but yes, bibtex does appear to work fine in practice, meaning the live preview or manual quick build results in a document with the correct citations.
I haven't had a chance to do any further debugging.
Comment 7 Jeremy W. Murphy 2018-01-25 09:28:07 UTC
I made those latexForBibTeX and latexForMakeIndex sub-tests not silent and, it turns out, they pass.
Comment 8 Jeremy W. Murphy 2018-06-18 23:50:24 UTC
So, curiously, I get the same two failures on a Windows 10 installation using 3.0 beta 2 with TeX Live 2018. This is the complete opposite to my Gentoo system in terms of customization: I just downloaded binaries and installed.
Comment 9 Jeremy W. Murphy 2019-03-06 09:04:26 UTC
I'm still interested in fixing this. Here is the console output when I run System Check. Could you diff with yours for comparison? The most obvious issue is at the end, some files are not found but it's not clear how many errors there are. 

This is TeX, Version 3.14159265 (TeX Live 2017) (preloaded format=tex)
(./test_plain.tex )
No pages of output.
Transcript written on test_plain.log.
This is pdfTeX, Version 3.14159265-2.6-1.40.18 (TeX Live 2017) (preloaded format=pdftex)
 restricted \write18 enabled.
entering extended mode
(./test_plain.tex )
No pages of output.
Transcript written on test_plain.log.
This is pdfTeX, Version 3.14159265-2.6-1.40.18 (TeX Live 2017) (preloaded format=latex)
 restricted \write18 enabled.
entering extended mode
(./test.tex
LaTeX2e <2017/01/01> patch level 3
Babel <3.10> and hyphenation patterns for 10 language(s) loaded.
(/usr/share/texmf-dist/tex/latex/base/article.cls
Document Class: article 2014/09/29 v1.4h Standard LaTeX document class
(/usr/share/texmf-dist/tex/latex/base/size10.clo))
No file test.aux.
[1] (./test.aux) )
Output written on test.dvi (1 page, 216 bytes).
Transcript written on test.log.
This is pdfTeX, Version 3.14159265-2.6-1.40.18 (TeX Live 2017) (preloaded format=latex)
 restricted \write18 enabled.
 Source specials enabled.
entering extended mode
(./test.tex
LaTeX2e <2017/01/01> patch level 3
Babel <3.10> and hyphenation patterns for 10 language(s) loaded.
(/usr/share/texmf-dist/tex/latex/base/article.cls
Document Class: article 2014/09/29 v1.4h Standard LaTeX document class
(/usr/share/texmf-dist/tex/latex/base/size10.clo))
No file test.aux.
[1] (./test.aux) )
Output written on test.dvi (1 page, 232 bytes).
Transcript written on test.log.
This is pdfTeX, Version 3.14159265-2.6-1.40.18 (TeX Live 2017) (preloaded format=pdflatex)
 restricted \write18 enabled.
entering extended mode
(./test.tex
LaTeX2e <2017/01/01> patch level 3
Babel <3.10> and hyphenation patterns for 10 language(s) loaded.
(/usr/share/texmf-dist/tex/latex/base/article.cls
Document Class: article 2014/09/29 v1.4h Standard LaTeX document class
(/usr/share/texmf-dist/tex/latex/base/size10.clo)) (./test.aux) [1{/var/lib/tex
mf/fonts/map/pdftex/updmap/pdftex.map}] (./test.aux) )</usr/share/texmf-dist/fo
nts/type1/public/amsfonts/cm/cmr10.pfb>
Output written on test.pdf (1 page, 10601 bytes).
Transcript written on test.log.
This is pdfTeX, Version 3.14159265-2.6-1.40.18 (TeX Live 2017) (preloaded format=pdflatex)
 restricted \write18 enabled.
entering extended mode
(./test.tex
LaTeX2e <2017/01/01> patch level 3
Babel <3.10> and hyphenation patterns for 10 language(s) loaded.
(/usr/share/texmf-dist/tex/latex/base/article.cls
Document Class: article 2014/09/29 v1.4h Standard LaTeX document class
(/usr/share/texmf-dist/tex/latex/base/size10.clo))
No file test.aux.
[1{/var/lib/texmf/fonts/map/pdftex/updmap/pdftex.map}] (./test.aux) )</usr/shar
e/texmf-dist/fonts/type1/public/amsfonts/cm/cmr10.pfb>
Output written on test.pdf (1 page, 10601 bytes).
SyncTeX written on test.synctex.gz.
Transcript written on test.log.
I couldn't open file name `test_bib.aux'
Couldn't find input index file test_index nor test_index.idx.
Usage: makeindex [-ilqrcgLT] [-s sty] [-o ind] [-t log] [-p num] [idx0 idx1 ...]
Settings::instance called after the first use - ignoring
Comment 10 Jeremy W. Murphy 2019-03-06 09:06:20 UTC
Btw, I checked out and built the first commit that merged in KDE Frameworks and the same errors occurs, which further suggests that Kile has not changed, just my TeX installation has. But I don't get why mine would be incompatibility different.  :\
Comment 11 Jeremy W. Murphy 2019-07-29 12:10:30 UTC
OK, so I essentially 'fixed' this by removing the kilerc file, i.e. starting with fresh default settings. Then the system check works.