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

tmp log file naming problem #44

Open
ea42gh opened this issue Mar 7, 2020 · 7 comments
Open

tmp log file naming problem #44

ea42gh opened this issue Mar 7, 2020 · 7 comments

Comments

@ea42gh
Copy link

ea42gh commented Mar 7, 2020

trying to run a simple example results in

[LaTeX] Error: run failed.
Command: pdflatex -halt-on-error -file-line-error -interaction nonstopmode -output-directory /tmp/ktikz-uoXhgU /tmp/ktikz-uoXhgU/temptikzcode.tex
[LaTeX] Warning: could not load LaTeX log file.
Log file: /tmp/ktikz-uoXhgU/temptikzcode.log

ls /tmp/ktikz-uoXhgU/ shows temptikzcode.pgf texput.log
any quick fix? I guess I could wrap the call in a script and move the log file...

@kaushikcfd
Copy link

I hit this too. My current (ugly) workaround is launching sudo ktikz from the terminal.

@jfmcarreira
Copy link
Collaborator

That is strange. I got the files and they have correct owner and permissions.

I never saw this error. Could you please you run "ls -l" in the temporary directory.

@kaushikcfd
Copy link

@jfmcarreira: ls -l in /tmp works fine. Some more info: Running Ubuntu 20.04, Kitkz 0.12

@jfmcarreira
Copy link
Collaborator

I mean ls -l /tmp/ktikz-uoXhgU/ and post the result here, so I can see the permissions of the files created.

@kaushikcfd
Copy link

For the log:

[LaTeX] Error: run failed.
Command: pdflatex -shell-escape -halt-on-error -file-line-error -interaction nonstopmode -output-directory /tmp/ktikz-JWownQ /tmp/ktikz-JWownQ/temptikzcode.tex
[LaTeX] Warning: could not load LaTeX log file.
Log file: /tmp/ktikz-JWownQ/temptikzcode.log
$ ls -l /tmp/ktikz-JWownQ/
total 8
-rw-rw-r-- 1 kaushikcfd kaushikcfd  68 Nov 25 15:59 temptikzcode.pgf
-rw-rw-r-- 1 kaushikcfd kaushikcfd 809 Nov 25 15:59 texput.log

@spapadim
Copy link

Apologies for necropost, but I get the same behavior. For some reason, the constructed commandline uses .tex extension but temp file is saved as .pgf (so, since TeX doesn't find input, it produces default log name texput.log). Issue title is a bit misleading but that seems to be case here as well...

@spapadim
Copy link

Answering my own question (after some digging through source code) with a workaround, in case anyone else encounters this: deleting text/x-pgf from the MimeType field of qtikz.desktop (so only text/x-tex remains) makes the problem go away.

FWIW, this is with qtikz DEB from the Ubuntu 20.04 official repos (0.12+ds1-3build1), running under Gnome; haven't tried ktikz.

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

4 participants