{"action":"created","issue":{"url":"https://api.github.com/repos/josephwright/ltluatexsupp/issues/3","labels_url":"https://api.github.com/repos/josephwright/ltluatexsupp/issues/3/labels{/name}","comments_url":"https://api.github.com/repos/josephwright/ltluatexsupp/issues/3/comments","events_url":"https://api.github.com/repos/josephwright/ltluatexsupp/issues/3/events","html_url":"https://github.com/josephwright/ltluatexsupp/issues/3","id":109625291,"number":3,"title":"luatexbase.get_module_version is nil","user":{"login":"henryso","id":421318,"avatar_url":"https://avatars.githubusercontent.com/u/421318?v=3","gravatar_id":"","url":"https://api.github.com/users/henryso","html_url":"https://github.com/henryso","followers_url":"https://api.github.com/users/henryso/followers","following_url":"https://api.github.com/users/henryso/following{/other_user}","gists_url":"https://api.github.com/users/henryso/gists{/gist_id}","starred_url":"https://api.github.com/users/henryso/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/henryso/subscriptions","organizations_url":"https://api.github.com/users/henryso/orgs","repos_url":"https://api.github.com/users/henryso/repos","events_url":"https://api.github.com/users/henryso/events{/privacy}","received_events_url":"https://api.github.com/users/henryso/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-10-03T14:22:38Z","updated_at":"2015-10-03T15:09:17Z","closed_at":null,"body":"I am working with @eroux on porting gregorio-project/gregorio to use the new latex/luatexbase.  After applying the fixes for #2, I am getting the following error:\r\n```\r\n! LuaTeX error ...io-test/var/texmf/tex/luatex/gregoriotex/gregoriotex.lua:217: \r\nattempt to call field 'get_module_version' (a nil value)\r\nstack traceback:\r\n        ...io-test/var/texmf/tex/luatex/gregoriotex/gregoriotex.lua:217: in function 'i\r\nnit'\r\n        [\\directlua]:1: in main chunk.\r\n```\r\n\r\nLine 217 in gregoriotex.lua is\r\n```\r\nlocal mcb_version = luatexbase.get_module_version('luatexbase-mcb')\r\n```\r\n\r\nAm I missing something to require or a new option somewhere?"},"comment":{"url":"https://api.github.com/repos/josephwright/ltluatexsupp/issues/comments/145255643","html_url":"https://github.com/josephwright/ltluatexsupp/issues/3#issuecomment-145255643","issue_url":"https://api.github.com/repos/josephwright/ltluatexsupp/issues/3","id":145255643,"user":{"login":"davidcarlisle","id":1268738,"avatar_url":"https://avatars.githubusercontent.com/u/1268738?v=3","gravatar_id":"","url":"https://api.github.com/users/davidcarlisle","html_url":"https://github.com/davidcarlisle","followers_url":"https://api.github.com/users/davidcarlisle/followers","following_url":"https://api.github.com/users/davidcarlisle/following{/other_user}","gists_url":"https://api.github.com/users/davidcarlisle/gists{/gist_id}","starred_url":"https://api.github.com/users/davidcarlisle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/davidcarlisle/subscriptions","organizations_url":"https://api.github.com/users/davidcarlisle/orgs","repos_url":"https://api.github.com/users/davidcarlisle/repos","events_url":"https://api.github.com/users/davidcarlisle/events{/privacy}","received_events_url":"https://api.github.com/users/davidcarlisle/received_events","type":"User","site_admin":false},"created_at":"2015-10-03T15:09:17Z","updated_at":"2015-10-03T15:09:17Z","body":"On 3 October 2015 at 15:27, Henry So <notifications@github.com> wrote:\n\n> This is the complete code block:\n>\n>     local mcb_version = luatexbase.get_module_version('luatexbase-mcb')\n>     if mcb_version and mcb_version > 0.6 then\n>       luatexbase.add_to_callback('finish_pdffile', write_greaux,\n>           'gregoriotex.write_greaux')\n>     else\n>       -- The version of luatexbase in TeX Live 2014 does not support it, and\n>       -- luatexbase prevents a direct call to callback.register.  Because of\n>       -- this, we lose the LuaTeX statistics and \"output written to\" messages,\n>       -- but I know of no other workaround.\n>\n>       luatexbase.add_to_callback('stop_run', write_greaux,\n>           'gregoriotex.write_greaux')\n>     end\n>\n> Basically, we want to hook onto finish_pdffile to call write_greaux, but\n> it wasn't supported until 0.7 of luatexbase-mcb.\n>\n> —\n>\n\nI'm not sure I understand, in the new version there are not separate\nsubmodules so no real version for luatexbase-mcb even if there was a\nget_version function, but if this version of gregorio is written for (or at\nleast it knows it is running on) the new luatexbase  then can't you just do\n\n      luatexbase.add_to_callback('finish_pdffile', write_greaux,\n          'gregoriotex.write_greaux')\n\n\nwhat does this test tell you ?\n\n    if mcb_version and mcb_version > 0.6 then\n"}}