Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Page MenuHomePhabricator

"this.view is null" when saving an edit with CodeMirror 6
Closed, ResolvedPublicBUG REPORT

Description

Steps to replicate the issue (include links if applicable):

  • Enable CM6 in beta features
  • Start editing a page
  • Turn syntax highlighting on
  • Modify the source
  • Click "Publish changes"

What happens?:
Console error "Uncaught TypeError: this.view is null" at codemirror.js:466.

What should have happened instead?:
No errors.

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald Transcript

Change #1100045 had a related patch set uploaded (by Bhsd; author: Bhsd):

[mediawiki/extensions/CodeMirror@master] CodeMirror: fix toggle-related issues

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

Change #1100045 merged by jenkins-bot:

[mediawiki/extensions/CodeMirror@master] CodeMirror: fix toggle-related issues

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

@Nardog Before publishing changes, did you turn off syntax highlighting?

No, but either way I get the same error.

I am unable to reproduce the bug if syntax highlighting is not toggled off when publishing changes.

Hmm, I can't reproduce it without turning it off either anymore.

Bhsd moved this task from Bugs to Done on the MediaWiki-extensions-CodeMirror board.