Note that CodeRunner hides any completely empty columns in the result table so I would suggest trying to have a set of tests such that there is always some output in every column. Rather than requiring specific textual output, which can be prone to error, the students are asked to store their answers in R variables with specified names. I also attach your Create TSimple question modified to use that new question type. I attach a new SQL question prototype type sql_allow_errors that does all the above and in addition deletes the "near line nnn" part of the error message so that the Expected part of the test case can match the error regardless of what line it occurs on. You also need to catch the standard error output and display it as "normal" output, because CodeRunner interprets standard error output as a failed execution. To deal with this you need to customise the question's Python3 template (or, better, define a new question type) so that it doesn't raise an exception if the sqlite3 command fails. In most languages we don't set tests where if the student's code crashes, that's the right answer! But I can see that SQL poses some challenges here (I don't actually teach SQL myself). I don't even know where I could look for the error.OK, thanks. Students can work with on-line exercises with the Moodle learning system. a very useful error check during the development of quizzes and their tests. You should construct a Python 3 program containing your solution to the following problem and submit your program electronically on Moodle. ************************************************ The CodeRunner tool is designed to help you practise by presenting you with a set of short exercises. CodeRunner is a free open-source Moodle plugin for automatically marking. Project 2: Submission deadlines: 5:00 pm, Friday 27th May 2022 Value: 20 of CITS1401. Unable to create directory /home/jobe/runs/jobe_6I2mM7/Home/.cache/pylint ***************** FAILED TEST ****************** Introducing Moodle/CodeRunner 14,171 views 68 Dislike Share Save CodeRunner 285 subscribers Subscribe A quick introduction to the CodeRunner question type for Moodle Show. Sudo docker exec -t jobe /usr/bin/python3 /var/www/html/jobe/testsubmit.pyĮverything seems to work, except for one test: The API key I left empty, as this isn't supported by jobeinabox I've set up a jobeinabox in a Docker container on my linux server. Die Sandbox ist möglicherweise nicht verfügbar. (or in my case - as my installation is in German: "Ein unerwarteter Fehler ist aufgetreten. The sandbox server may be down or overloaded. Unexpected error while executing your code. The problem I have is, that I'm getting the error message already mentions by other people in this forum: ![]() ![]() as a resource to find helpful information, instructions, training. ![]() Either failed to read, or failed to write. Unfortunately I'm not getting anywhere and at this point. CodeRunner is a free open-source question-type plug-in for Moodle that can run. If any one get this error then there is a simple way to solve this issue: delete the cache folder from your moodledata directory and reload your website Average of ratings: Useful (2) Reply Re: Coding error detected, it must be fixed by a programmer: Failed to unserialise data from file. By far the most common use of CodeRunner is in programming courses where students are asked to write program code to some specification and that code is then graded by running it in a series of tests. The ability to mix traditional style questions with coding questions has proved. CodeRunner is a Moodle question type that allows teachers to run a program in order to grade a student's answer. 'can view hidden test results'), which the site administrator will then have to allocate to the different roles. Moodle/CodeRunner quizzes have transformed several of our programming courses. That seems to mean I'll have to define a new permission for CodeRunner questions (e.g. For several days I've now been trying to set up a Moodle installation with CodeRunner. default Moodle roles afaik are manager, course creator, teacher, non-editing teacher, student, guest.
0 Comments
Leave a Reply. |