Re: Can't open 2.4.0-beta5 doc in 2.4.0-beta3
On Wed, 2023-09-06 at 09:21 +0200, Jürgen Spitzmüller wrote: > It would help if you could condense a minimal working exmaple that > shows this bug. The part of the document that triggers the problem is a table in case that helps (probably not much). > If you don't want to disclose the contents of your document, make a > copy and run "buffer-anonymize" on that in the minibuffer (Alt-x). Send either the either the document or the anonymized version to me or Jürgen privately. Our goal is just to find what is the part of the document that broke the converter and fix it. > Jürgen Best regards, -- José Abílio -- lyx-users mailing list lyx-users@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-users
Re: Can't open 2.4.0-beta5 doc in 2.4.0-beta3
Christopher Menzel schrieb am 06.09.2023 03:03 (GMT +02:00): > Error message below, generated inside the terminal when I started lyx from > the command line and tried to export my longish (614k) document to 2.3.x. It would help if you could condense a minimal working exmaple that shows this bug. If you don't want to disclose the contents of your document, make a copy and run "buffer-anonymize" on that in the minibuffer (Alt-x). Jürgen -- lyx-users mailing list lyx-users@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-users
Re: Can't open 2.4.0-beta5 doc in 2.4.0-beta3
On 5 Sep 2023, at 5:01 PM, Richard Kimberly Heck wrote: > On 9/5/23 16:45, Christopher Menzel wrote: >> LyX folk, >> >> I recently compiled Lyx 2.4.0-beta5 under Linux and find that I am unable to >> open the file in Lyx 2.4.0-beta3 under MacOS and the conversion script is >> failing to export to 2.3.x. By changing "\lyxformat 618” to "\lyxformat 616” >> I was able to load the document in 2.4.0-beta3 although I got two "Document >> header” errors: "Unknown token: \use_formatted_ref \use_formatted_ref” and >> "Unknown token: 0 0”. After saving the file, it opened without any errors in >> beta3 and the contents appear to be OK. But I’d prefer a more elegant >> solution if one exists. > > You can run the lyx2lyx script manually, with option: -t 616, to export to > that format. Hm, I'm getting a "format not supported" with that option. > What error are you getting from the 2.3.x export? That's a serious bug. Error message below, generated inside the terminal when I started lyx from the command line and tried to export my longish (614k) document to 2.3.x. -chris * lyx2lyx warning: An error occurred in 604, Traceback (most recent call last): File "/usr/local/share/lyx/lyx2lyx/lyx2lyx", line 97, in main() File "/usr/local/share/lyx/lyx2lyx/lyx2lyx", line 91, in main doc.convert() File "/usr/local/share/lyx/lyx2lyx/LyX.py", line 702, in convert conv(self) File "/usr/local/share/lyx/lyx2lyx/lyx_2_4.py", line 4154, in revert_vcolumns2 elif count_pars_in_inset(document.body, begcell + 2) > 1: ^^^ File "/usr/local/share/lyx/lyx2lyx/parser_tools.py", line 692, in count_pars_in_inset if m and get_containing_inset(lines, j)[1] == ins[1]: ~~^^^ TypeError: 'bool' object is not subscriptable Systemcall.cpp (306): Systemcall: 'python3 -tt "/usr/local/share/lyx/lyx2lyx/lyx2lyx" -V 2.3 -o "Logic,_Modality,_and_Singular_Existenc e.23.lyx" "Logic,_Modality,_and_Singular_Existence.lyx"' finished with exit code 1 Error: Cannot convert file An error occurred while running: python3 -tt $$s/lyx2lyx/lyx2lyx -V 2.3 -o "Logic,_Modality,_and_Singular_Existence.23.lyx" "Logic,_Modality,_and_Singular_Existence.lyx" -- lyx-users mailing list lyx-users@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-users
Re: Can't open 2.4.0-beta5 doc in 2.4.0-beta3
On Tue, 2023-09-05 at 15:45 -0500, Christopher Menzel wrote: > LyX folk, > > I recently compiled Lyx 2.4.0-beta5 under Linux and find that I am > unable to open the file in Lyx 2.4.0-beta3 under MacOS and the > conversion script is failing to export to 2.3.x. By changing > "\lyxformat 618” to "\lyxformat 616” I was able to load the document > in 2.4.0-beta3 although I got two "Document header” errors: "Unknown > token: \use_formatted_ref \use_formatted_ref” and "Unknown token: 0 > 0”. After saving the file, it opened without any errors in beta3 and > the contents appear to be OK. But I’d prefer a more elegant solution > if one exists. > > Thanks. > > Chris Menzel As Riki said. Another alternative is to copy/replace the lyx2lyx folder from beta5 to the beta3 installation. Then it will work flawlessly and the same with the conversion to lyx 2.3 format. Actually only the lyx_2_4.py file should be different... Regards, -- José Abílio -- lyx-users mailing list lyx-users@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-users
Re: Can't open 2.4.0-beta5 doc in 2.4.0-beta3
On 9/5/23 16:45, Christopher Menzel wrote: LyX folk, I recently compiled Lyx 2.4.0-beta5 under Linux and find that I am unable to open the file in Lyx 2.4.0-beta3 under MacOS and the conversion script is failing to export to 2.3.x. By changing "\lyxformat 618” to "\lyxformat 616” I was able to load the document in 2.4.0-beta3 although I got two "Document header” errors: "Unknown token: \use_formatted_ref \use_formatted_ref” and "Unknown token: 0 0”. After saving the file, it opened without any errors in beta3 and the contents appear to be OK. But I’d prefer a more elegant solution if one exists. You can run the lyx2lyx script manually, with option: -t 616, to export to that format. What error are you getting from the 2.3.x export? That's a serious bug. Riki -- lyx-users mailing list lyx-users@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-users
Can't open 2.4.0-beta5 doc in 2.4.0-beta3
LyX folk, I recently compiled Lyx 2.4.0-beta5 under Linux and find that I am unable to open the file in Lyx 2.4.0-beta3 under MacOS and the conversion script is failing to export to 2.3.x. By changing "\lyxformat 618” to "\lyxformat 616” I was able to load the document in 2.4.0-beta3 although I got two "Document header” errors: "Unknown token: \use_formatted_ref \use_formatted_ref” and "Unknown token: 0 0”. After saving the file, it opened without any errors in beta3 and the contents appear to be OK. But I’d prefer a more elegant solution if one exists. Thanks. Chris Menzel -- lyx-users mailing list lyx-users@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-users