Page MenuHomePhabricator

ZCode component: When initializing the ZCode component with no language, ACE code editor throws a console error
Open, LowPublicBUG REPORT

Description

Description

Ace Code Editor throws the following error:

GET http://localhost:8080/w/extensions/WikiLambda/resources/lib/ace/src/mode-mode.js net::ERR_ABORTED 404 (Not Found)

Steps to reproduce:

  1. Go to https://wikifunctions.beta.wmflabs.org/wiki/Special:CreateZObject&zid=Z14&Z14K1=Z801&debug=true
  2. Or, in localhost: http://localhost:8080/w/index.php?title=Special:CreateZObject&zid=Z14&Z14K1=Z801&debug=true
  3. Select "Code" type of implementation

Observed behavior:

  • Ace Code Editor raises an error because it doesn't know what language to initialize the editor for

Devices and Design (URLs or screenshots, if applicable):

  • Desktop: ...
  • Small screens/mobile: ...

Completion checklist