Latex (pdflatex) no longer works (1.0beta2 and 1.1dev)
Introduced by changes in Inkscape 1.1-dev (4feae91, 2020-01-17). In core extensions, regex of export_file
shows it occurring in inkex/command.py, guillotine.py and pdflatex.py (Edit: export-file
turns up many results in tests, does this affect them or are they just the results of the tests run... Mentioning it in case)
Steps to reproduce:
- open Inkscape
- Extensions > Render > Mathematics > Latex... (pdflatex)
- apply (there should be default LaTeX input:
\(\displaystyle\frac{\pi^2}{6}=\lim_{n \to \infty}\sum_{k=1}^n \frac{1}{k^2}\)
What happened?
Traceback (most recent call last):
File "pdflatex.py", line 83, in <module>
PdfLatex().run()
File "/home/nal/all/inkscape/share/inkscape/extensions/inkex/base.py", line 123, in run
self.save_raw(self.effect())
File "/home/nal/all/inkscape/share/inkscape/extensions/inkex/extensions.py", line 159, in effect
for child in fragment:
File "pdflatex.py", line 54, in generate
pdf_poppler=True, export_type="svg")
File "/home/nal/all/inkscape/share/inkscape/extensions/inkex/command.py", line 188, in inkscape
return call(INKSCAPE_EXECUTABLE_NAME, svg_file, *args, **kwargs)
File "/home/nal/all/inkscape/share/inkscape/extensions/inkex/command.py", line 182, in call
return _call(program, *args, **kwargs)
File "/home/nal/all/inkscape/share/inkscape/extensions/inkex/command.py", line 172, in _call
process.returncode, stderr, stdout, args))
inkex.command.ProgramRunError: Return Code: 1: Unknown option --export-file=/tmp/inktmpUXHR0y/output.svg
args: ['/home/nal/all/inkscape/build/bin/inkscape', '--pdf-page=1', '--export-file=/tmp/inktmpUXHR0y/output.svg', '--export-type=svg', '--pdf-poppler', '/tmp/inktmpUXHR0y/input.pdf']
Inkscape Version and Operating System:
- Inkscape 1.1-dev (2742de51cc, 2020-03-23) Linux Mint 19.1 with extensions at 9ab1d0cc
- Confirmed (or rather, first reported by @drastrogeek in inbox#2097 (closed)) with Inkscape-1.0-latest.dmg 2020-03-08
- Bisection points to Inkscape 1.1-dev (4feae91, 2020-01-17)
commit 4feae910310a4428cf6cdd651a7c9063baf413d3
Author: Tavmjong Bah <tavmjong@free.fr>
Date: Fri Jan 17 17:18:39 2020 +0000
Rewrite of file handling in InkscapeApplication:
* Unification and stream-lining of various options.
* Merge of two shell modes.
* Implementation of some file and window actions.
* Removal of "--without-gui" (automatically set for most command-line arguments).
* Simplify and fix auto-exporting of files when command line is used.
See https://gitlab.com/inkscape/inkscape/issues/640 for discussion.
Edited by Nathan Lee