Cancel Export hangs
Dear friends, I am using Lyx Version 2.4.0~RC1 (Thursday, January 11, 2024) Qt Version (run-time): 5.15.10 on platform cocoa Qt Version (compile-time): 5.15.10 OS Version (run-time): macOS 14.2 Python detected: 3.8.3 (/usr/local/bin/python3) And when I tried to cancel and export using the menu item Document/Cancel Export, Lyx seems to hang and grays out the export button after cancelling. I give the corresponding messages below. But when I check the Activity Monitor in OSX, I don’t see any running Xlatex process after I hit the Cancel Export but Lyx continues to think that it is processing the document. I cannot close it. Since this is an RC, I wanted to inform you about this problem. Thank you. Murat 11:14:29.711: Exporting ... 11:14:29.821: (buffer-update: ⇧⌘R) 11:14:30.130: xelatex "report-ACC-full.tex" 11:14:31.064: This is XeTeX, Version 3.141592653-2.6-0.95 (TeX Live 2023) (preloaded format=xelatex) 11:14:31.064: restricted \write18 enabled. 11:14:31.274: entering extended mode 11:14:31.274: (./report-ACC-full.tex 11:14:31.274: LaTeX2e <2023-06-01> patch level 1 11:14:31.274: L3 programming layer <2023-10-23> 11:14:31.274: 11:14:33.165: 11:14:33.165: xdvipdfmx:fatal: Cannot proceed without the font: /Library/Fonts/Microsoft/Lucida Bright 11:14:33.165: 11:14:33.165: No output PDF file written. 11:14:33.165: The process crashed some time after starting successfully.support/Systemcall.cpp (306): Systemcall: 'xelatex "report-ACC-full.tex"' finished with exit code -1 frontends/qt/Menus.cpp (756): Menu warning: menu entry "Cancel Export" does not contain shortcut `P'. frontends/qt/Menus.cpp (762): Menu warning: menu entries "Update (Other Formats)|p" and "Cancel Export|P" share the same shortcut. frontends/qt/Menus.cpp (756): Menu warning: menu entry "Cancel Export" does not contain shortcut `P'. frontends/qt/Menus.cpp (762): Menu warning: menu entries "Update (Other Formats)|p" and "Cancel Export|P" share the same shortcut. 11:16:53.022: (export-cancel)frontends/qt/Menus.cpp (756): Menu warning: menu entry "Cancel Export" does not contain shortcut `P'. frontends/qt/Menus.cpp (762): Menu warning: menu entries "Update (Other Formats)|p" and "Cancel Export|P" share the same shortcut. frontends/qt/Menus.cpp (756): Menu warning: menu entry "Cancel Export" does not contain shortcut `P'. frontends/qt/Menus.cpp (762): Menu warning: menu entries "Update (Other Formats)|p" and "Cancel Export|P" share the same shortcut. 11:16:58.283: (dialog-show document) 11:17:34.550: Saving document ~/Library/CloudStorage/Dropbox/Cambodge/ACC/report-ACC-full-YwVGxq.lyx... 11:17:34.556: Saving document ~/Library/CloudStorage/Dropbox/Cambodge/ACC/report-ACC-full-YwVGxq.lyx... done.Warning: Close document Document could not be closed because it is being processed by LyX. frontends/qt/Menus.cpp (756): Menu warning: menu entry "Cancel Export" does not contain shortcut `P'. frontends/qt/Menus.cpp (762): Menu warning: menu entries "Update (Other Formats)|p" and "Cancel Export|P" share the same shortcut. 11:18:36.305: (export-cancel)frontends/qt/Menus.cpp (756): Menu warning: menu entry "Cancel Export" does not contain shortcut `P'. frontends/qt/Menus.cpp (762): Menu warning: menu entries "Update (Other Formats)|p" and "Cancel Export|P" share the same shortcut. 11:18:41.474: (export-cancel)frontends/qt/Menus.cpp (756): Menu warning: menu entry "Cancel Export" does not contain shortcut `P'. frontends/qt/Menus.cpp (762): Menu warning: menu entries "Update (Other Formats)|p" and "Cancel Export|P" share the same shortcut. 11:19:00.293: (dialog-toggle progress) -- lyx-devel mailing list lyx-devel@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-devel
Fwd: [LyX/2.3.x] Fix a number of issues that were stopping compilation with MSVC 19.
I pushed this my mistake obviously. I was about the revert, and then I got confused by the fact that this supposedly fixes compilation with MSVC 2019. Can somebody enlighten me on whether this patch is needed with relevant versions of MSVC? JMarc Message transféré Sujet : [LyX/2.3.x] Fix a number of issues that were stopping compilation with MSVC 19. Date : Mon, 5 Feb 2024 21:53:55 +0100 (CET) De : Jean-Marc Lasgouttes Répondre à : lyx-devel@lists.lyx.org Pour : lyx-...@lists.lyx.org commit 5969f0e7d113734b7859ab89e5edd05233afc8d1 Author: Richard Kimberly Heck Date: Mon May 4 19:41:18 2020 -0400 Fix a number of issues that were stopping compilation with MSVC 19. Patch from Thibaut Cuvelier, modified slightly by me (mostly for style). (cherry picked from commit c506f304bc522ea91ad5a7e97cd4e3c7d54376b0) --- lib/generate_contributions.py |8 + src/BiblioInfo.cpp| 12 ++- src/BranchList.cpp|7 +--- src/Format.cpp| 47 +-- src/Format.h |2 + src/Lexer.cpp | 28 +++- src/TextClass.cpp | 64 +++- src/TextClass.h |6 +++- src/frontends/qt4/GuiDocument.cpp |1 - src/frontends/tests/biblio.cpp|2 +- src/insets/InsetCommandParams.cpp |2 +- src/lyxfind.cpp |2 +- 12 files changed, 99 insertions(+), 82 deletions(-) diff --git a/lib/generate_contributions.py b/lib/generate_contributions.py index e549ab2..0b49a02 100755 --- a/lib/generate_contributions.py +++ b/lib/generate_contributions.py @@ -607,6 +607,14 @@ contributors = [ "20 Sep 2007", u"Advanced search feature"), + contributor(u"Thibaut Cuvelier", + "dourouc05 () gmail ! com", + "GPL", + "Re: Patches to improve compatibility with modern C++ standard", + "msg211215", + "4 May 2020", + u"Windows compatibility patches"), + contributor(u"Matthias Kalle Dalheimer", "kalle () kdab ! net", "GPL", diff --git a/src/BiblioInfo.cpp b/src/BiblioInfo.cpp index f45d370..678312a 100644 --- a/src/BiblioInfo.cpp +++ b/src/BiblioInfo.cpp @@ -1149,13 +1149,9 @@ docstring BibTeXInfo::getValueForKey(string const & oldkey, Buffer const & buf, namespace { // A functor for use with sort, leading to case insensitive sorting -class compareNoCase: public binary_function -{ -public: - bool operator()(docstring const & s1, docstring const & s2) const { - return compare_no_case(s1, s2) < 0; - } -}; +bool compareNoCase(const docstring & a, const docstring & b) { + return compare_no_case(a, b) < 0; +} } // namespace @@ -1206,7 +1202,7 @@ vector const BiblioInfo::getKeys() const BiblioInfo::const_iterator it = begin(); for (; it != end(); ++it) bibkeys.push_back(it->first); - sort(bibkeys.begin(), bibkeys.end(), compareNoCase()); + sort(bibkeys.begin(), bibkeys.end(), ); return bibkeys; } diff --git a/src/BranchList.cpp b/src/BranchList.cpp index ec6a413..855a82c 100644 --- a/src/BranchList.cpp +++ b/src/BranchList.cpp @@ -150,9 +150,7 @@ bool BranchList::add(docstring const & s) else name = s.substr(i, j - i); // Is this name already in the list? - bool const already = - find_if(list.begin(), list.end(), -BranchNamesEqual(name)) != list.end(); + bool const already = find(name) != nullptr; if (!already) { added = true; Branch br; @@ -182,8 +180,7 @@ bool BranchList::rename(docstring const & oldname, { if (newname.empty()) return false; - if (find_if(list.begin(), list.end(), - BranchNamesEqual(newname)) != list.end()) { + if (find(newname)) { // new name already taken if (merge) return remove(oldname); diff --git a/src/Format.cpp b/src/Format.cpp index da93457..3da2120 100644 --- a/src/Format.cpp +++ b/src/Format.cpp @@ -181,6 +181,19 @@ Format const * Formats::getFormat(string const & name) const } +Format * Formats::getFormat(string const & name) +{ + FormatList::iterator it = + find_if(formatlist_.begin(), formatlist_.end(), + [name](Format const & f) { return f.name() == name; }); + + if (it != formatlist_.end()) + return &(*it); + + return nullptr; +} + + namespace { /** Guess the file format name (as in Format::name()) from contents. @@ -611,15 +624,13 @@ void Formats::add(string const & name, string
Re: autoconf version 2.72
Le 05/02/2024 à 21:03, sovhist a écrit : Please try again. I removed the test. Tell us if something seems wrong with the new autoconf. Lyx compiles fine now. I see no problems with new autoconf. Thank you! Good. Riki, can I backport 510b2cfd to stable? We do not want to shoot ourselves in the foot by making a perfectly working build fail just because there is a new autoconf version. -- lyx-devel mailing list lyx-devel@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-devel
Re: autoconf version 2.72
> Le 02/02/2024 ? 01:56, sovhist a ?crit?: >> Hello. >> >> Newest Lyx from git can't be compiled on some Linux system because of >> nonsupported version of autoconf. >> Error message: >> >> "Using autoconf (GNU Autoconf) 2.72 >> This autoconf version is not supported by LyX. >> LyX only supports autoconf 2.65-2.69, 2.71." >> >> This version of autoconf is actual for Arch Linux and derivatives (I'm >> on Manjaro). > > Please try again. I removed the test. Tell us if something seems wrong > with the new autoconf. Lyx compiles fine now. I see no problems with new autoconf. Thank you! Valdemaras -- lyx-devel mailing list lyx-devel@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-devel
Re: RC2 Tarballs
Am Mo., 5. Feb. 2024 um 04:10 Uhr schrieb Richard Kimberly Heck: > are here: > > http://ftp.lyx.org/pub/lyx/devel/lyx-2.4/ > > Please prepare binaries. > Done, uploaded as usual. -- Eugene -- lyx-devel mailing list lyx-devel@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-devel
Re: 2.3.8dev compilation
Le 05/02/2024 à 16:01, Scott Kostyshak a écrit : I don't think we'll do anything for 2.3.x: https://www.mail-archive.com/search?l=mid=20231110111845.GB2857114%40jabberwock.ucw.cz But do you get the warnings on current master? They are solved in master indeed. For 2.3, as long as one compile in release mode, the only visible warnings are for the deprecated stuff. Which is stupid since is seems to be that as long as we compile in C++1 mode, no deprecated thing should disappear, right? JMarc -- lyx-devel mailing list lyx-devel@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-devel
Re: 2.3.8dev compilation
On Wed, Jan 31, 2024 at 05:38:57PM +0100, Jean-Pierre Chrétien wrote: > Dear developers > > Compiling 2.3.8dev from recent git pull, I get these deprecation warnings : > > > [cut] > Harmless I guess, but should be removed before 2.4.0/2.3.8. Hi Jean-Pierre, Thanks for reporting these warnings. Indeed it's nice to keep the warnings to a minimum. I don't think we'll do anything for 2.3.x: https://www.mail-archive.com/search?l=mid=20231110111845.GB2857114%40jabberwock.ucw.cz But do you get the warnings on current master? Scott signature.asc Description: PGP signature -- lyx-devel mailing list lyx-devel@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-devel
Re: RC2 Tarballs
On Sun, Feb 04, 2024 at 10:10:34PM -0500, Richard Kimberly Heck wrote: > are here: > > http://ftp.lyx.org/pub/lyx/devel/lyx-2.4/ > > Please prepare binaries. looks ok on debian. p -- lyx-devel mailing list lyx-devel@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-devel