papyros icon indicating copy to clipboard operation
papyros copied to clipboard

Papyros debugger crashes on display of "imported class"

Open pdawyndt opened this issue 1 year ago • 1 comments

Steps to reproduce:

image

Running the code (with the test case) works as expected. The issue only shows up when debugging the code.

pdawyndt avatar Mar 02 '24 13:03 pdawyndt

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):

image

pdawyndt avatar Mar 09 '24 11:03 pdawyndt

Fixed by: https://github.com/dodona-edu/json-tracer/pull/7

jorg-vr avatar Jan 28 '25 15:01 jorg-vr