Lucas_Werkmeister_WMDE created this task.
Lucas_Werkmeister_WMDE added projects: Wikidata Lexicographical data, Wikidata, 
Platform Engineering Roadmap Decision Making, wdwb-tech, Platform Engineering 
Code Jam.

TASK DESCRIPTION
  On the beta cluster, Lexeme Lua access is enabled now, and the 
`mw.wikibase.lexeme` package is loaded, but `mw.wikibase.lexeme` is not 
available:
  
    =package.loaded['mw.wikibase.lexeme']
    table
    =mw.wikibase.lexeme
    nil
  
  I think this is a load order problem. In the file `mw.wikibase.lexeme.lua`, 
`setupInterface()` has this code:
  
        mw = mw or {}
        mw.wikibase = mw.wikibase or {}
        mw.wikibase.lexeme = wikibaseLexeme
        package.loaded['mw.wikibase.lexeme'] = wikibaseLexeme
        wikibaseLexeme.setupInterface = nil
  
  But in `mw.wikibase.lua`, it looks like this:
  
        mw = mw or {}
        mw.wikibase = wikibase
        package.loaded['mw.wikibase'] = wikibase
        wikibase.setupInterface = nil
  
  This looks like the Lexeme module tries to make its registration work 
regardless of whether it or the Wikibase module is loaded first, but the 
Wikibase module is not so careful, and overwrites any existing `mw.wikibase` 
value. So I suspect that for some reason, the Lexeme `setupInterface()` gets 
called before the Wikibase one on Beta, and that’s (one reason?) why Lexeme 
access doesn’t work properly.

TASK DETAIL
  https://phabricator.wikimedia.org/T294224

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: Lucas_Werkmeister_WMDE
Cc: daniel, DVrandecic, Jdforrester-WMF, Lucas_Werkmeister_WMDE, Invadibot, 
maantietaja, Akuckartz, Nandana, Lahi, Gq86, GoranSMilovanovic, Mahir256, 
QZanden, LawExplorer, _jensen, rosalieper, Bodhisattwa, Scott_WUaS, 
Wikidata-bugs, aude, Addshore, Mbch331
_______________________________________________
Wikidata-bugs mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to