Page MenuHomePhabricator

Composer doesn't update Lingo to the most recent version
Open, Needs TriagePublic

Description

When you install or update Lingo with Composer you get version 3.1.1 but it gives this errors when running php ./extensions/SemanticGlossary/maintenance/rebuildGlossaryCache.php:
PHP Deprecated: Use of $wgParser was deprecated in MediaWiki 1.32. [Called from Lingo\LingoParser::parse in extensions/Lingo/src/LingoParser.php at line 82] in includes/debug/MWDebug.php on line 377
PHP Deprecated: Use of wfGetCache was deprecated in MediaWiki 1.32. [Called from Lingo\LingoParser::getLingoTree in extensions/Lingo/src/LingoParser.php at line 145] in includes/debug/MWDebug.php on line 377
PHP Deprecated: Use of ParserOutput::addModules with non-array argument was deprecated in MediaWiki 1.38. [Called from Lingo\LingoParser::loadModules in extensions/Lingo/src/LingoParser.php at line 364] in includes/debug/MWDebug.php on line 377

More info in T313533 and T313534

But when you install or update Lingo with Git you get also version 3.1.1 but it doesn't give those errors.

The most likely option is that Composer is not installing the most recent version. The page on Packagist shows this: "This package is not auto-updated."

Event Timeline

Quoting https://www.mediawiki.org/wiki/Composer : "it can be used to manage the installation of MediaWiki extensions [...]. However this is currently not well supported."

Quoting https://www.mediawiki.org/wiki/Extension:Lingo : "Lingo should be installed using Composer. " and (only) "If Composer is not an option, you may also install it like this:" download or git.

It's highly unlikely that you get 3.1.1 using git. That's just the reported version because the maintainer did not update the version number to something like 3.1.2-dev, or whatever, before starting to fix stuff.
If you want to use composer, I would suggest to install dev-master. Alternatively (or additionally) you could get in touch with the maintainer and ask them to release a new version.