papyros
papyros copied to clipboard
Papyros debugger crashes on display of "imported class"
Steps to reproduce:
- go to exercise: https://dodona.be/nl/courses/3355/series/36010/activities/279985369/
- submit sample solution
- launch debugger from any test case
- you'll get
Running the code (with the test case) works as expected. The issue only shows up when debugging the code.
Similar issue appears when code contains
from collections import defaultdict
Example: https://dodona.be/nl/courses/3355/series/36011/activities/529807079/
The same issue does not appear when the import is modified into
import collections
Seems like the issue is related to our implementation of what the Python Tutor calls "imported class" (same issue does not appear in the original Python Tutor, i.e. "imported module" is properly displayed but "imported class" is not in Papyros):
Fixed by: https://github.com/dodona-edu/json-tracer/pull/7