Hi dear helpers,
I cannot uninstall coderunner, here you see the screenshots where I got stuck. I cannot delete the plugin from the user interface of moodle 3.5.
Is there a way to delete the plugins from cli? Which folders do I have to delete?
Thanks for any help.
I'm afraid my German isn't up to figuring out the significance of the three images. But it looks like perhaps you've just upgraded to CodeRunner 3.7.7 which requires a version of qbehaviour_adaptive_adapted_for_coderunner that wasn't (until just now) available in the Moodle repository. My error, sorry - it was only pointed out to me late last night, so I just now upgraded the Moodle repository to include the latest qbehaviour_adaptive_adapted_for_coderunner. This has been available for some time on github, but apparently I had neglected to add the appropriate version tag to it.
If you now upgrade to the latest version of qbehaviour_adaptive_adapted_for_coderunner, your CodeRunner 3.7.7 should be OK. Does that solve your problem?
If you do actually wish to delete the CodeRunner plugin altogether then it's a lot harder. There's no install option through the admin panel so you've got to do it manually. Are you sure you want to do this? It's potentially very dangerous and you'd certainly want to put the server off line and take a backup before proceeding.
To be honest, I've never deleted the CodeRunner plugin so I'm very reluctant to give advice. But I think what you'd have to do is roughly the following:
- Delete all CodeRunner questions from the database. Tim Hunt gave the SQL query for that for a different question type 10 years ago - see https://moodle.org/mod/forum/discuss.php?d=149373.
- Delete the CodeRunner DB tables. I think you should use the administrator's xmldb editor for that, rather than raw SQL as in Tim's post. The xmldb editor shows you the extra tables created by CodeRunner (question_coderunner_options and question_coderunner_tests) and there's a 'Delete' link for each.
- Delete from mdl_config_plugins all rows with plugin = 'coderunner' (note that this is a different config table from the one Tim refers to).
- Delete the file subtree rooted at <moodlehome>/question/type/coderunner.
You'd want to carry out similar operations for qbehaviour_adaptive_adapted_for_coderunner.
However, you do that at your own risk!
Perhaps Tim Hunt has some better advice?
thank you very much for your immediately engagement in this for me critical situation.
"CodeRunner" and Adaptive "adapted for coderunner" seem now to be installed fine (see screenshot). (I had to click something around; I think I'd forgot to click "update" at the top of the plugin-test at first).
But as you see in the (now english ;-)) screenshot, there is no uninstall link available for "CodeRunner" and "adaptive adapted for coderunner", too. Does that mean, I cannot upgrade the whole Moodle-Installation? (I've read somewhere that I have to uninstall all plugins before a Moodle-Upgrade (3.5 --> 3.6 or higher).) An uninstall script would be a good alternative (because no one used this in the last days since I installed it; the loss of questions is not the problem).
Nonetheless, thank you again for your engagement.
I apologise for the lack of an Uninstall option. It somehow escaped my attention when I first developed the plugin and strangely enough you're the first person to ask for one. [Why would anyone ever want to uninstall CodeRunner? ;-). ]I'll put it on my TODO list.
However, I never uninstall plugins when I upgrade Moodle and I don't ever recall reading instructions to do so. I would have assumed that if I had provided an Uninstall option for CodeRunner, it would delete all CodeRunner questions from the database and it doesn't sound like that's what you want, anyway.
If you've installed Moodle with git you can update the code in place. More commonly you change the old version of moodle to, say, moodle.bak, install the new version in its place, then copy across the config file and various plugins from the backup, as described here: https://docs.moodle.org/38/en/Upgrading
That's always worked for me and I've done quite a few Moodle upgrades over the years. Can you find the documentation that says to Uninstall the plugins? I'd be interested to understand why that's being recommended.