[03:06:34] does wikimedia host their own mathoid? [03:52:36] Juest: yes; https://wikitech.wikimedia.org/wiki/Mathoid [03:54:01] thanks [12:45:00] I've been trying to run qunit on my localhost wiki, but the guide at https://www.mediawiki.org/wiki/Manual:JavaScript_unit_testing didn't work. [12:45:24] Using http://localhost:8080/wiki/Special:JavaScriptTest errors out with "No tests were run." [12:45:44] Using the command line also fails. It says "0 tests completed" [15:18:59] Found the issue. Deprecation warnings caused the JS script to include HTML. [21:15:21] Dreamy_Jazz: aye, that's a tough one indeed. Are those warnings formatted by php-xdebug? Did the warning show on page views like the wiki's main page? For more info on tailing local debug log, see https://www.mediawiki.org/wiki/Manual:How_to_debug. E.g. tail -f mw-error.log if you're using DevelopmentSettings.php [21:15:36] Maybe there's a way we can supress those in api.php and load.php [21:16:02] Those warnings didn't display anywhere other than that. [21:16:19] Maybe in the logs [21:16:27] But certainly not on any other pages [21:16:49] What was the warning about? [21:16:58] A depreciation notice [21:17:03] aye, but which one? [21:17:54] Not sure exactly, but it was from the IPInfo extension. [21:18:10] Fixed by pulling the latest master branch for that extension. [21:21:41] The place where the warnings appeared was http://localhost:8080/w/index.php?title=Special:JavaScriptTest/qunit/export [21:26:37] Dreamy_Jazz: hm.. so in that case https://gerrit.wikimedia.org/r/955399 wouldn't help you. [21:27:02] Probably yes. [21:28:50] Managed to find the branch I was on that caused the problem [21:29:01] The top of the JS code produces the following: [21:29:06]
[21:29:06] Deprecated: Use of Modules must target desktop and mobile. Module name:ext.ipInfo was deprecated in MediaWiki 1.41. [Called from MediaWiki\ResourceLoader\StartUpModule::getScript in /var/www/html/w/includes/ResourceLoader/StartUpModule.php at line 430] in /var/www/html/w/includes/debug/MWDebug.php on line 383