You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
creates annoying perl warnings about using undefined values in strings.
Quick fix is to patch getSource to return an empty string when not defined. Undefined sources seem intentional, given the commit message 'to make it much easier to programatically acces if a source is anonymous or not' at
This is easy to silence with just adding ->getSource || '' to that Package.pm line.
But are we sure the warnings are meaningless / come in a healthy setting? Some example where they get emitted could be helpful to see if any changes to Mouth itself are necessary.
It's easier to look at the uses of getSource because there are only two of them. DefMathI uses it for 'introspection' and doesn't distinguish between defined and undefined source. State uses it to check if the file extension is tex or bib. So at the moment there is no reason for having getSource optional string as opposed to always a string.
(Further detail: Mouth->create sets an empty string for literal: and for undefined sources; Mouth->openString leaves the source undefined. The distinction seems accidental.)
On occasion, the mouth does not have a defined source, so this call
LaTeXML/lib/LaTeXML/Package.pm
Line 1625 in f82b733
creates annoying perl warnings about using undefined values in strings.
Quick fix is to patch
getSource
to return an empty string when not defined. Undefined sources seem intentional, given the commit message 'to make it much easier to programatically acces if a source is anonymous or not' atLaTeXML/lib/LaTeXML/Core/Mouth.pm
Line 58 in f82b733
but empty strings would do that just fine.
The text was updated successfully, but these errors were encountered: