Page MenuHomePhabricator

JSDuck live preview on fails with errors from mediawiki.base.js
Closed, ResolvedPublic


Steps to reproduce:

  1. Visit!/api/OO.ui.ToggleSwitchWidget
  2. Click on Live Preview below the description.
  3. Observe error in the console displayed below the description

Error message:

Uncaught TypeError: Cannot read property '0' of undefined

Event Timeline

In the OOUI documentation they work correctly:!/api/OO.ui.ToggleSwitchWidget

They are only broken in the MediaWiki core documentation (which apparently includes all of OOUI documentation too).

matmarex renamed this task from Live preview of OOUI js widgets on fails with errors to JSDuck live preview on fails with errors from mediawiki.base.js.Sep 7 2018, 12:28 AM
matmarex edited projects, added MediaWiki-General, Documentation; removed OOUI.
matmarex added a subscriber: Krinkle.

Code examples from MW core are partially affected, too:!/api/mw.Message has the same error, though the examples actually run correctly.

Change 459627 had a related patch set uploaded (by Krinkle; owner: Krinkle):
[mediawiki/core@master] resourceloader: Update startup mock in jsduck/eg-iframe

Krinkle triaged this task as Medium priority.Sep 10 2018, 8:28 PM
Krinkle moved this task from Doing (old) to Blocked (old) on the Performance-Team board.
Krinkle edited projects, added MediaWiki-Documentation; removed MediaWiki-General.

Change 459627 merged by jenkins-bot:
[mediawiki/core@master] resourceloader: Update startup mock in jsduck/eg-iframe

Now we get:

GET eg-iframe.html:91 GET net::ERR_ABORTED 404
GET eg-iframe.html:92 GET net::ERR_ABORTED 404
GET eg-iframe.html:93 GET net::ERR_ABORTED 404
GET eg-iframe.html:94 GET net::ERR_ABORTED 404

Different issue -> close and fix in another task?

Yeah, those have been 404 for a few months at least. Also needs fixing. Thanks!