TeXMaths does not work with Libreoffice 5.3 (tried on 5.3.1)
Brought to you by:
baudinr
Libreoffice complains all the time about functions with missing ')' as in
BASIC syntax error.
Expected: ).
E.g. for a line
oTextStream.writeString(
"\documentclass[10pt]{article}" & chr(10) &
glb_sPreamble & chr(10) & chr(10) &
"\pagestyle{empty}" & chr(10) &
sLatexCode
Interestingly, I can have LibO 5.2 and 5.3 installed side to side, sharing the profile which includes the TeXMaths extension. If I use LibO 5.2, not only Libreoffice works perfectly. However, the extension code for the same snippet still seems to miss a closing ) which seems strange.
Please see LibO bug https://bugs.documentfoundation.org/show_bug.cgi?id=106529
As well as bug https://bugs.documentfoundation.org/show_bug.cgi?id=80731
missing closing parenthesis in Basic expressions is now considered to be an error (which it really is) instead of being silently ignored
Unfortunately, this has been pushed into a point release for the 5.3 branch without any previous deprecation timeframe.
LibO developer says
Please have extension authors fix their code
This should be an easy fix for TeXMaths, but is now quite urgent IMHO.
Here is a fix for the missing ')' at the line you found.
Are there any other place where a closing parenthesis is missing?
Anyway, that's strange because I have no such issue with LibreOffice 5.3.0.3 on Ubuntu 16.04.
[Edit] Oh yes, I see in your bug report, that the issue was introduced in 5.3.1. However, this version is not available for download on the LibreOffice web site, so I can't make other tests yet.
Last edit: Roland Baudin 2017-03-15
Hi,
thanks for the tentative fix.
I think that there are more places with the issue. I wonder if it is possible to
catch them in some sort of programmatic way rather than trying to test the
extension in every possible way until all are caught.
You are correct that there is no issue with 5.3.0.3. The behavioural change was
pushed in with 5.3.1.x.
I'm currently suggesting to have it pushed back to 5.4.0, since there might be
(and probably are) other extensions affected.
Best regards,
Sergio
On 15/03/2017 15:49, Roland Baudin wrote:
OK, thanks for these informations.
Here is a new version (unofficial, not well tested) that should completely fix the issue.
That was quick! Thanks. Gave a preliminary test and seems OK. I'll try it more extensively in the next days.
Had exactly the same problem with libreoffice 5.3.1.1. This new version fixes the issue.
Thank you
The change in LibO will be reverted in 5.3.3, since other extensions are breaking too. Probably, it will be readded on the transistion to 5.4.x Nonetheless, I suggest that the new version of TeXMaths is released as soon as possible, since there will likely be a subset of users on 5.3.2 (and possibly some 5.2.x) having the issue.
I released today TexMaths 0.43 that fixes the issue.