Re: TextMetrics error
On Sun, May 11, 2025 at 11:00:48AM +0200, Jean-Marc Lasgouttes wrote: > Le 11/05/2025 à 01:13, Scott Kostyshak a écrit : > > > > TextMetrics.cpp (1157): MacroContext not initialised! Going through > > > > the buffer again and hope the context is better then. Please report > > > > > > This is fixed now. > > > > Looks good. I extended the fix to moving rows/columns at a7f81701. > > Thanks. Basically, this is needed for everything that creates a new text > insets. But I do not know how to automate this. Sounds good, I'll keep an eye out for these messages. Scott signature.asc Description: PGP signature -- lyx-devel mailing list [email protected] https://lists.lyx.org/mailman/listinfo/lyx-devel
Re: TextMetrics error
Le 11/05/2025 à 01:13, Scott Kostyshak a écrit : TextMetrics.cpp (1157): MacroContext not initialised! Going through the buffer again and hope the context is better then. Please report This is fixed now. Looks good. I extended the fix to moving rows/columns at a7f81701. Thanks. Basically, this is needed for everything that creates a new text insets. But I do not know how to automate this. JMarc -- lyx-devel mailing list [email protected] https://lists.lyx.org/mailman/listinfo/lyx-devel
Re: TextMetrics error
On Sat, May 10, 2025 at 08:19:11PM +0200, Jean-Marc Lasgouttes wrote: > Le 06/05/2025 à 11:13, Scott Kostyshak a écrit : > > On Tue, May 06, 2025 at 08:33:36AM +0200, Jean-Marc Lasgouttes wrote: > > > Le 01/05/2025 à 18:28, Jean-Pierre Chrétien a écrit : > > > > > Excellent. I made it visible to understand when it triggers. Can you > > > > > describe what you do? > > > > > > > > The message occurs when I open a table. > > > > > > Better now? > > > > On current master if I start a document, insert a table, and click on > > the "add column" button I get the following: > > > >TextMetrics.cpp (1157): MacroContext not initialised! Going through the > > buffer again and hope the context is better then. Please report > > This is fixed now. Looks good. I extended the fix to moving rows/columns at a7f81701. Scott signature.asc Description: PGP signature -- lyx-devel mailing list [email protected] https://lists.lyx.org/mailman/listinfo/lyx-devel
Re: TextMetrics error
Le 09/05/2025 à 16:20, Jean-Pierre Chrétien a écrit : In fact, I have it readable in the local git repo : jp@pelican:/ext/lyx/master$ ls -l lib/unicode_alphanum_variants -rw-r--r-- 1 jp jp 8675 25 mars 17:55 lib/unicode_alphanum_variants but not in the local/share tree : $ find /usr/local/share/lyx-2.5.0~devel -name unicode_alphanum_variants jp@pelican:/ext/lyx/master$ And I do not have the message if I run src/lyx from the build tree. Does this explain the problem ? Yes, the file was not installed. The issue is fixed now. JMarc -- lyx-devel mailing list [email protected] https://lists.lyx.org/mailman/listinfo/lyx-devel
Re: TextMetrics error
Le 06/05/2025 à 11:13, Scott Kostyshak a écrit : On Tue, May 06, 2025 at 08:33:36AM +0200, Jean-Marc Lasgouttes wrote: Le 01/05/2025 à 18:28, Jean-Pierre Chrétien a écrit : Excellent. I made it visible to understand when it triggers. Can you describe what you do? The message occurs when I open a table. Better now? On current master if I start a document, insert a table, and click on the "add column" button I get the following: TextMetrics.cpp (1157): MacroContext not initialised! Going through the buffer again and hope the context is better then. Please report This is fixed now. JMarc -- lyx-devel mailing list [email protected] https://lists.lyx.org/mailman/listinfo/lyx-devel
Re: TextMetrics error
Le 09/05/2025 à 15:08, Jean-Marc Lasgouttes a écrit :
Le 06/05/2025 à 11:30, Jean-Pierre Chrétien a écrit :
I tried to insert online math, I get this message (unrelated, I guess):
Could not find variant symbols file
This one is strange. Do you have a lib/unicode_alphanum_variants file?
Yes
In fact, I have it readable in the local git repo :
jp@pelican:/ext/lyx/master$ ls -l lib/unicode_alphanum_variants
-rw-r--r-- 1 jp jp 8675 25 mars 17:55 lib/unicode_alphanum_variants
but not in the local/share tree :
$ find /usr/local/share/lyx-2.5.0~devel -name unicode_alphanum_variants
jp@pelican:/ext/lyx/master$
And I do not have the message if I run src/lyx from the build tree.
Does this explain the problem ?
--
Jean-Pierre
I do not understand what happens, the code is very straightforward:
FileName const filename = libFileSearch(string(),
"unicode_alphanum_variants");
LYXERR(Debug::MATHED, "read variant symbols from " << filename);
if (filename.empty()) {
lyxerr << "Could not find variant symbols file" << endl;
return;
}
Is the file readable? Could it be a permission problem?
JMarc
--
lyx-devel mailing list
[email protected]
https://lists.lyx.org/mailman/listinfo/lyx-devel
Re: TextMetrics error
Le 06/05/2025 à 11:30, Jean-Pierre Chrétien a écrit :
I tried to insert online math, I get this message (unrelated, I guess):
Could not find variant symbols file
This one is strange. Do you have a lib/unicode_alphanum_variants file?
Yes
I do not understand what happens, the code is very straightforward:
FileName const filename = libFileSearch(string(),
"unicode_alphanum_variants");
LYXERR(Debug::MATHED, "read variant symbols from " << filename);
if (filename.empty()) {
lyxerr << "Could not find variant symbols file" << endl;
return;
}
Is the file readable? Could it be a permission problem?
JMarc
--
lyx-devel mailing list
[email protected]
https://lists.lyx.org/mailman/listinfo/lyx-devel
Re: TextMetrics error
Le 06/05/2025 à 11:30, Jean-Pierre Chrétien a écrit : I tried to insert online math, I get this message (unrelated, I guess): Could not find variant symbols file This one is strange. Do you have a lib/unicode_alphanum_variants file? Yes The message appears only at the first insertion of math, further insertions trigger nothing. -- Jean-Pierre -- lyx-devel mailing list [email protected] https://lists.lyx.org/mailman/listinfo/lyx-devel
Re: TextMetrics error
Le 06/05/2025 à 08:33, Jean-Marc Lasgouttes a écrit : Le 01/05/2025 à 18:28, Jean-Pierre Chrétien a écrit : Excellent. I made it visible to understand when it triggers. Can you describe what you do? The message occurs when I open a table. Better now? The message is gone when I open a table, but I get if I add a column (as Scott does). I tried to insert online math, I get this message (unrelated, I guess): Could not find variant symbols file This one is strange. Do you have a lib/unicode_alphanum_variants file? Yes -- Jean-Pierre -- lyx-devel mailing list [email protected] https://lists.lyx.org/mailman/listinfo/lyx-devel
Re: TextMetrics error
On Tue, May 06, 2025 at 08:33:36AM +0200, Jean-Marc Lasgouttes wrote: > Le 01/05/2025 à 18:28, Jean-Pierre Chrétien a écrit : > > > Excellent. I made it visible to understand when it triggers. Can you > > > describe what you do? > > > > The message occurs when I open a table. > > Better now? On current master if I start a document, insert a table, and click on the "add column" button I get the following: TextMetrics.cpp (1157): MacroContext not initialised! Going through the buffer again and hope the context is better then. Please report Scott signature.asc Description: PGP signature -- lyx-devel mailing list [email protected] https://lists.lyx.org/mailman/listinfo/lyx-devel
Re: TextMetrics error
Le 01/05/2025 à 18:28, Jean-Pierre Chrétien a écrit : Excellent. I made it visible to understand when it triggers. Can you describe what you do? The message occurs when I open a table. Better now? I tried to insert online math, I get this message (unrelated, I guess): Could not find variant symbols file This one is strange. Do you have a lib/unicode_alphanum_variants file? JMarc -- lyx-devel mailing list [email protected] https://lists.lyx.org/mailman/listinfo/lyx-devel
Re: TextMetrics error
Le 30/04/2025 à 20:04, Jean-Marc Lasgouttes a écrit : Le 30/04/2025 à 15:24, Jean-Pierre Chrétien a écrit : Dear devs After a fresh compilation of 2.5.0~devel with QT6, I see this : TextMetrics.cpp (1155): MacroContext not initialised! Going through the buffer again and hope the context is better then. Please report So I report :-) Excellent. I made it visible to understand when it triggers. Can you describe what you do? The message occurs when I open a table. I tried to insert online math, I get this message (unrelated, I guess): Could not find variant symbols file -- Jean-Pierre -- lyx-devel mailing list [email protected] https://lists.lyx.org/mailman/listinfo/lyx-devel
Re: TextMetrics error
Le 30/04/2025 à 15:24, Jean-Pierre Chrétien a écrit : Dear devs After a fresh compilation of 2.5.0~devel with QT6, I see this : TextMetrics.cpp (1155): MacroContext not initialised! Going through the buffer again and hope the context is better then. Please report So I report :-) Excellent. I made it visible to understand when it triggers. Can you describe what you do? JMarc -- lyx-devel mailing list [email protected] https://lists.lyx.org/mailman/listinfo/lyx-devel
