I just installed a fresh version of Basic TeX (version 2019) for Mac after deleting all previous version of TeXLive. Documents which used to compile perfectly now fail due to what seems a very pesky behavior of polyglossia about spaces in front of punctuation.


C'est un test : hello

fails to compile with warning :

warning  (node filter): error: ...ic/texmf-dist/tex/latex/polyglossia/polygloss
ia-frpt.lua:166: attempt to call a nil value (upvalue 'remove_node')

If I remove the space in front of ":" as in

test: hello

then all is fine and the correct space in front of ":" is correctly inserted by polyglossia.

This is more than irritating. There were errors of this type in the past but they had been fixed. Why is it back and how to avoid these spurious warnings ?


  • I'm not having that problem at all. I do have the full TeX Live 2019 installed by MacTeX and with all updates. First, have you tried to update your BasicTeX using either tlmgr or TeX Live Utility? If it's already fully updated are you sure you don't have an older version of a package in your personal tree that's interfering with the one in BasicTeX? Please publish the log file. – Herb Schulz Jun 14 '19 at 18:24
  • 1
    I wouldn't use polyglossia for French. The babel module is imho better. – Ulrike Fischer Jun 14 '19 at 20:25
  • 2
    I can reproduce the error and also see the cause: the lua tries to access a field in a table which is no longer there. But I don't know why @HerbSchulz don't get the error, other mac users could reproduce it too. – Ulrike Fischer Jun 14 '19 at 21:36
  • Sorry about that... It all works when typeset via xelatex but DOES fail as described when using lualatex. Sorry for the noise. – Herb Schulz Jun 14 '19 at 21:58
  • 1
    Bugs like this should be reported to the polyglossia maintainer, even though at the moment development seems to be largely dormant. github.com/reutenauer/polyglossia/issues/222 seems to be pretty much this bug. – moewe Jun 15 '19 at 5:52

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.