Re: LyX 2.4.0 RC3

2024-02-16 Thread list_email


> On Feb 16, 2024, at 12:57 AM, Jürgen Spitzmüller  wrote:
> 
> Am Donnerstag, dem 15.02.2024 um 23:53 -0700 schrieb
> list_em...@icloud.com:
>> I found three identical copies of chkconfig.ltx in each of
>> 
>> /Users/me/Library/Application Support/LyX-2.1/chkconfig.ltx
>> /Users/me/Library/Application Support/LyX-2.2/chkconfig.ltx
>> /Users/me/Library/Application Support/LyX-2.3/chkconfig.ltx
>> 
>> 
>> I zipped all of them and trashed the original. Now LyX 2.4.0 RC3 runs
>> great.
>> 
>> Thanks for that tip.
> 
> Glad you solved it.
> 
>> I know how that file got there: LyX put it there. Maybe if the
>> configuration file has changed for 2.4 then it shouldn’t copy old
>> versions.
> 
> The question is how that file ended in the user directory in the first
> place. This should only be in the system directory.
> 
> -- 
> Jürgen

System directory for me is /Applications/LyX.app/Contents/Resources/ for LyX 
2.4 app and I do see chkconfig.ltx there.

Like you, I have no idea how that file got in the wrong place.

Thanks for your help.

Jerry

-- 
lyx-devel mailing list
lyx-devel@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-devel


windows preview bug fix

2024-02-16 Thread Idan Pazi
Encountered the following bug (windows 10, python 3.12) - preview of math
fails:

 graphics\PreviewLoader.cpp (2ef): PreviewLoader::finishedInProgress(1):
processing failed for py -3 -tt $$s/scripts/lyxpreview2bitmap.py --png
"C:/Users/idank/AppData/Local/Temp/lyx_tmpdir.mzhGYGTpQcAc/lyx_tmpbuf0/lyxpreviewuaCFJC.tex"
--dpi 137 --fg 00 --bg ff --bibtex="bibtex"


Running the command manually gives the problem:

  File "C:\Program Files\LyX 2.4\Resources\scripts\lyxpreview_tools.py",
line 168, in run_command_win32
data = data + buffer
   ~^~~~
TypeError: can only concatenate str (not "bytes") to str


Apparently, the returned value from win32file.ReadFile
 should
be converted to a string.
Fix patch attached.
Thank you, Idan


0001-Fix-returned-value-of-win32file.ReadFile.patch
Description: Binary data
-- 
lyx-devel mailing list
lyx-devel@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-devel


Re: windows preview bug fix

2024-02-16 Thread José Matos
On Fri, 2024-02-16 at 15:23 +0200, Idan Pazi wrote:
> 
> Apparently, the returned value from win32file.ReadFile should be
> converted to a string. 

> Fix patch attached.
> Thank you, Idan

What is the encoding of the bytes? Is it UTF8?
If so the patch look right.

@Enrico, what do you think?

-- 
José Abílio
-- 
lyx-devel mailing list
lyx-devel@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-devel