mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-21 17:51:03 +00:00
1dbf0e5aab
Systemcall::startscript returns the exit code of the LaTeX command that is run, but the return value was not being checked by LaTeX::run. Instead, we relied on parsing log files. However, this parsing is not perfect. The return value is now checked and if the exit code of the command is non-zero, an enum value is added to the return and the user is notified of the error. At a higher level, if the LaTeX command returns a non-zero exit code, in the GUI a message such as "Error while exporting format: PDF (LuaTeX)" will be given instead of "Successful preview of format: PDF (LuaTeX)". When run on the commandline, lyx -e lualatex example.lyx will give "Error: LaTeX failed" and a non-zero exit code where before it gave a zero exit code. A real example of the bug this commit fixes is LyX's (as of this commit) ACM-sigplan.lyx template. Before this commit: $ lyx -e pdf2 ACM-sigplan.lyx [...snip...] support/Systemcall.cpp (288): Systemcall: 'pdflatex "ACM-sigplan.tex"' finished with exit code 1 $ echo $? 0 Starting with this commit: $ mylyx master -e pdf2 ACM-sigplan.lyx support/Systemcall.cpp (288): Systemcall: 'pdflatex "ACM-sigplan.tex"' finished with exit code 1 Error: LaTeX failed ---------------------------------------- LaTeX did not run successfully. The command that was run exited with error. $ echo $? 1
70 lines
1.7 KiB
Plaintext
70 lines
1.7 KiB
Plaintext
This file lists interface changes that might affect users in 2.2.0, some
|
|
known problems in LyX 2.2.0 and some things you have to take into account
|
|
when upgrading from earlier versions to a version of the 2.2.x series.
|
|
|
|
|
|
Interface changes
|
|
-----------------
|
|
|
|
|
|
|
|
The following pref variables were added in 2.2:
|
|
|
|
|
|
|
|
The following pref variables were changed in 2.2:
|
|
|
|
|
|
|
|
The following pref variables are obsoleted in 2.2:
|
|
|
|
- \\rtl
|
|
This variable was introduced to guard against any bad consequence of
|
|
the then-new right-to-left languages support. It is no longer needed
|
|
because of improvements. Now right-to-left support is always enabled.
|
|
|
|
|
|
The following new LyX functions have been introduced in 2.2:
|
|
|
|
|
|
|
|
The following LyX functions have been changed in 2.2:
|
|
|
|
|
|
|
|
The following LyX key bindings have been changed in 2.2:
|
|
|
|
|
|
|
|
The following LyX documents have been moved in 2.2:
|
|
|
|
|
|
|
|
The following metadata files have been added to the tarball in 2.2:
|
|
|
|
|
|
|
|
Changes with respect to external programs and libraries in 2.2:
|
|
--------------------------------------------------------
|
|
|
|
|
|
- LyX is not yet supposed to work with Qt5. It is advised to compile and
|
|
run LyX against Qt 4.8.x. On Windows, Qt 4.8.5 suffers from a bug that
|
|
breaks the use of shortcuts, so on Windows Qt 4.8.4 is advised.
|
|
|
|
- LyX now gives an error if the underlying LaTeX command exited with error.
|
|
|
|
|
|
Known issues in version 2.2.0
|
|
-----------------------------
|
|
|
|
- LyX needs to be run under Python 2 and will not work properly on systems
|
|
where Python 3 is the default binary. See bug #7030 to know how to fix
|
|
this properly, since simple sheebang conversion in *.py files will not
|
|
be enough.
|
|
|
|
|
|
Caveats when upgrading from earlier versions to 2.2.x
|
|
-------------------------------------------------------
|
|
|