Cyberbrain icon indicating copy to clipboard operation
Cyberbrain copied to clipboard

Multiline statement wrong lineno

Open laike9m opened this issue 3 years ago • 4 comments

image

ordinal should be on line 17 not 29, gifts should be on line 32 not 44.

laike9m avatar Apr 24 '21 06:04 laike9m

This issue shouldn't be too hard to fix. We need to modify the map_bytecode_offset_to_lineno function. We can either record a start and end lineno, or use a range to represent lineno.

laike9m avatar May 08 '21 05:05 laike9m

For the specific case above, the lineno is correct for Python 3.8 and 3.9.

laike9m avatar Jun 20 '21 04:06 laike9m

Linenos are correct for 3.8+ and changes have been made to fix some scenarios in 3.7 in #132

victorjzsun avatar Jan 03 '22 19:01 victorjzsun

Can we conclude this bug as fixed? If not, what are the cases left to be fixed?

laike9m avatar Jan 03 '22 22:01 laike9m