Page MenuHomePhabricator

Syntax highlighting has occasional toolbar errors
Closed, ResolvedPublic1 Estimated Story Points

Description

I've been testing syntax highlighting on test.wiki for a couple hours. Twice so far, I've opened the edit window to find that the toolbar isn't there and syntax highlighting doesn't work.

The first time, I logged out and tried a new browser, and at some point the problem went away. I don't know what actually fixed it.

Attached is the error messages I'm getting:

toolbar errors.png (243×1 px, 62 KB)

Event Timeline

Looks like this is failing at line 272 in ext.CodeMirror.js. Might need to be inside a mw.loader.using( 'ext.wikiEditor.toolbar'....

kaldari triaged this task as High priority.Jul 10 2017, 8:51 PM
kaldari set the point value for this task to 1.Jul 10 2017, 8:54 PM

Change 364324 had a related patch set uploaded (by Kaldari; owner: Kaldari):
[mediawiki/extensions/CodeMirror@master] Make sure enhanced editing toolbar is loaded before adding button

https://gerrit.wikimedia.org/r/364324

Change 364324 merged by jenkins-bot:
[mediawiki/extensions/CodeMirror@master] Make sure enhanced editing toolbar is loaded before adding button

https://gerrit.wikimedia.org/r/364324

MaxSem assigned this task to kaldari.
MaxSem removed a project: Patch-For-Review.