I would like to be able to minify Ace myself and have Moodle just load that minified version. Does anyone (Tim?) know if there's a way to do that?
not sure if it's related - ever since upgrading Moodle to 3.6.7+ the Ace editor won't load for us.
On a test server with the exact same Moodle and plugin versions it does load - I got the error there once, but it vanished after deleting caches, which does not work on the prod server :(
- Request URL:
- Request Method:GET
- Status Code:500 Internal Server Error
Any ideas on how to fix this?
on my test server, when i delete caches, the first time ace editor will also not load, but I can see that a cached file of proper size (354000 bytes) is created in /documents/moodledata/localcache/js
on my prod server, this file never gets created, so I guess something goes wrong in the caching/minifaction process?
The version of Ace I distribute with CodeRunner is the minimised build (src-min from this github repo). I just did a test with bitnami/moodle and found that switching to the non-minimised version solves the problem! The compressor handles the non-minimised ace.js very quickly.
So assuming you have admin-level access to your server, could you try the following please and let me know if that solves your problem?
cd /var/www/html/moodle/question/type/coderunner mv ace ace.bak git clone https://github.com/ajaxorg/ace-builds.git ln -s ace-builds/src ace
If so, it looks like I should switch to distributing the non-minimised build of Ace in the standard CodeRunner release.