Page MenuHomePhabricator

AceEditor doesn't understand media queries
Closed, ResolvedPublic


Discovered when playing with TemplateStyles... shows Error: Expected IDENT at line 1, col 17. but this is perfectly valid CSS.

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald TranscriptJul 18 2017, 10:27 PM
Tgr added a subscriber: Tgr.Jul 19 2017, 12:03 AM

This is an upstream issue with Ace.

TheDJ added a subscriber: TheDJ.EditedJul 19 2017, 11:58 AM

Ace hasn't been updated in our repo's for a while, and thus the syntax libraries haven't either. Newer versions likely have this fixed.

Tgr added a comment.Jul 19 2017, 12:25 PM

Ace 1.2.8 does support media queries.
Although AFAIK the plan is to move away from Ace anyway (T50826).

It confused me when using TemplateStyles so I'm sure it would confuse others and I really want to encourage media queries!!

Several options:

  • Not to use Ace on that wiki
  • Not use Ace on css files
  • Upgrade Ace

What's better?

Tgr added a comment.Jul 19 2017, 11:24 PM

It's not actually a version issue, we use 1.2.3 and media query support was added way back before 1.0.0. And the bug can be reproduced in the current editor.

Anomie edited projects, added CodeEditor; removed TemplateStyles.Jul 20 2017, 2:53 PM
TheDJ moved this task from Backlog to Up next on the CodeEditor board.Aug 6 2017, 2:12 PM

Change 304044 had a related patch set uploaded (by TheDJ; owner: Paladox):
[mediawiki/extensions/CodeEditor@master] Update ace to 06.08.2017

Jdforrester-WMF closed this task as Resolved.Aug 9 2017, 3:51 PM
Jdforrester-WMF assigned this task to Paladox.

Change 304044 merged by jenkins-bot:
[mediawiki/extensions/CodeEditor@master] Update ace to 06.08.2017