[LyX/master] Merge branch 'features/indexmacros'

Scott Kostyshak skostysh at lyx.org
Sun Nov 20 15:47:46 UTC 2022


On Sun, Nov 20, 2022 at 04:33:36PM +0100, Thibaut Cuvelier wrote:
> > > (I don't get how to configure CTest to use my version of
> > > Python, hence it fails in strange ways).
> >
> > Let's try to figure out how to fix this.
> >
> > Is it only a problem with the ctests? Meaning, LyX uses your version of
> > Python without any extra configuration by you, but for the ctests do
> > not?
> >
> > What is the error you get from the ctests? Is your version of Python the
> > first one found in path? Is the command name "python" or "python3" or
> > something else?
> >
> 
> Yes, it's only for CTest. The binary is python.exe, in a nonstandard
> location (not in my PATH). I'm not getting an error from CTest, but rather
> from LyX (command not found, hence conversion to the newest format fails,
> LyX cannot import the file -- I no longer have the exact message, but I can
> generate it if you want). When running LyX, I manually set it in the PATH
> variable. I bet I just have to replicate this configuration for CTest.

Ah I see. I thought it was the case that LyX found it but our ctests did not.

> > > When having a look when tests were failing, I had this error with
> > > doc/de/Math.lyx dumped in stderr (which does not prevent output from
> > being
> > > generated, though):
> > >
> > > Line ~0: Math parse error: found '\]' unexpectedly
> > >
> > > Tokens:
> > >
> > \text[123,1]68105101115[32,10]105115116[32,10]100101114[32,10]7511110910910111011697114[125,2]\]
> > > pos: 26
> >
> > I don't get that, but I do get a lot of output:
> >
> >   $ lyx -e xhtml Math.lyx
> >   Entry:
> >   0
> >   1
> >   "\LaTeX -Kommentare"
> >   Entry:
> >   0
> >   1
> >   "\LaTeX -Vorspann"
> >   Entry:
> >   0
> >   1
> >   "\TeX -Klammern"
> >   Entry:
> >   0
> >   1
> >   "\TeX -Modus"
> >   Entry:
> >   0
> >   1
> >   "Akzente"
> >   Entry:
> >   0
> >   2
> >   ... [I cut the rest of it].
> >
> 
> This debug output is now removed at f3862130cf.

Nice!

> > When I open the exported de Math.xhtml in Chromium, I get:
> >
> >   "error on line 7159 at column 22: Entity 'imaginary' not defined"
> >
> 
> That's unrelated to this branch, it was a problem in the MathML
> configuration.

Ah, I was wondering why xmllint didn't catch it but I guess it doesn't
catch MathML issues. Probably there is a way to catch them in the
ctests, but I don't know if we want to make our ctests more strict. If
we make them more strict, I will bug you more about test failures :)

> It should be fixed at 3917cab408.

Now loads without error. Thanks!

Scott
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: not available
URL: <http://lists.lyx.org/pipermail/lyx-devel/attachments/20221120/3e0e4791/attachment.asc>


More information about the lyx-devel mailing list