مطالب مطرح شده توسط Joseph Rézeau

عکس Core developers عکس Plugin developers عکس Testers عکس Translators
Thanks Philipp and Marcus... still no joy!
I've been to MDL-79953 and tried Andrew Lyons suggestions.
If I do: 
npx grunt gherkinlint --debug --root=mod/forum

(or any other plugin on my Moodle test site) it does it's thing, i.e. it checks the files inside mod/forum only.

But that is not the task I want grunt to do, I want it to watch/build an AMD script (restricting the task to an AMD folder only). By the way, with npm tasks I'm used to running npm watch and npm run (e.g. when working on the H5P libraries). But I see no "run" command in grunt. Is "watch" the same as "run" for grunt?

Moodle in English -> Testing and QA -> How to run Grunt ONLY in current AMD folder?

از Joseph Rézeau در
عکس Core developers عکس Plugin developers عکس Testers عکس Translators

On page https://moodledev.io/general/development/tools/nodejs the doc. says "You need to cd into the amd folder of your module root, for example dirroot/blocks/foo/amd, before running grunt amd (this will compile only your plugins AMD source files)."

But when running Grunt on my local Moodle Windows install inside one AMD folder I find this does not work as expected: Grunt seems to run all over Moodle, re-building/compiling all the AMD modules!

Any idea?

میانگین امتیازات:  -
عکس Core developers عکس Plugin developers عکس Testers عکس Translators

"teachers can practice quizzes but they cannot share the attempts to the senior teacher"

The reason is evident: teachers can take quizzes (to see if quizzes work as expected), but their attempts are not saved on a Moodle site; only students' attempts are saved.

From what you explain it looks like on your Moodle site (or course) the "ordinary" teachers are considered as "students" from the point of view of the "senior teachers". This does not work when using normal roles in Moodle. You might perhaps achieve what you want by creating special roles, but I doubt it.

عکس Core developers عکس Plugin developers عکس Testers عکس Translators

OK, to be more clear that's the php_extension "tidy" which the Moodle installation says should be installed and enabled for best results.

I have enabled it as recommended on my Moodle 4.4.1+ test site and have no problems with the Cloze/Multianswer/Embedded question type.

But in the Moodle doc at https://docs.moodle.org/404/en/HTML_tidy_filter it says: "This filter checks whether HTML code is XHTML compliant, tidying where necessary. To make this filter work you need to have PHP compiled with the libtidy option;"

I have no idea what the end of that sentence means. Have you installed libtidy on your Moodle site? If so, why? For development needs?