Topic on Extension talk:VisualEditor

VisualEditor failed to load: Error: Module ext.visualEditor.core has failed dependencies

4
210.0.232.132 (talkcontribs)

I'm having difficulty getting VisualEditor to work with the latest alpha build (1.29.0-alpha). When I click on any of the Edit links, the VisualEditor fails to appear, with the following warning being logged to the console:

VisualEditor failed to load: Error: Module ext.visualEditor.core has failed dependencies

I did remember to run "git submodule update --init" from inside the VisualEditor source directory.

Seb35 (talkcontribs)

If you forgot to execute the "git submodule update --init" command at first and you executed it after you realized you forgot, perhaps you have to hard-refresh your browser cache (Ctrl-F5 or Ctrl-R or similar command; a simple F5 or button "refresh" could not be enough). Another mean to check is to start a private session on Firefox.

If it doesn’t work, there would be another issue somewhere.

210.0.232.132 (talkcontribs)

For some reason, I wasn't getting all of the dependencies. I eventually got it working by just deleting the whole VisualEditor directory and starting again from scratch with 'git clone' and 'git submodule update --init'.

However, now I'm finding that, although the Visual Editor bar appears and I can edit the text in a page, there is just one issue remaining. For some reason, all of the SyntaxHighlight_GeSHi fields go invisible when editing a page. They appear again after cancelling or saving an edit – but can't be seen while editing a page. I've tried clearing my browser cache, using other browsers, etc... and there don't seem to be any JavaScript errors being logged to the console. The <span> for the syntax-highlighted code section appears as follows, when editing:

<span class="ve-ce-leafNode ve-ce-focusableNode ve-ce-mwSyntaxHighlightNode" contenteditable="false"></span>

As you can see, the actual content is empty. When not editing, it looks like this:

<div class="mw-highlight mw-content-ltr" dir="ltr"><pre>$ ansible-playbook ci_up.yml

</pre></div>

Has anyone else experienced this?

Seb35 (talkcontribs)

The VisualEditor is improving everytimes, and the version installed on MediaWiki.org is always the most recent (updated every week) and properly installed, and I can see it works on page Extension:VisualEditor#Basic configuration for MediaWiki-VisualEditor.

So you can check your versions of VisualEditor and SyntaxHighlight against MediaWiki.org’s ones and then check your configuration against MediaWiki.org’s one (mainly files CommonSettings.php and InitialiseSettings.php).

Perhaps check the order and loading methods: Wikimedia uses wfLoadExtension( 'SyntaxHighlight_GeSHi' ); then require_once "$IP/extensions/VisualEditor/VisualEditor.php";.

Reply to "VisualEditor failed to load: Error: Module ext.visualEditor.core has failed dependencies"