serwy/idlex

"Go to file/line" doesn't work

Opened this issue · 1 comments

Using IdleX 1.18 on Window 7 with Python 3.6.1:
Right-click on an error message with file/line has a "Go to file/line" popup item, but it always responds, "The line you point at doesn't look like a valid file name followed by a line number.

I tried looking for related information in the changelog, but don't see any entries newer than version 1.14.

serwy commented

If you are running a file with "F5", then the Go to file/line feature will work. If you are running using SubCodes, then the feature stops working, since the filename includes extra information about when the code was generated, e.g. File "/tmp/a.py:::1-6 at 08:47:22" versus File "/tmp/a.py".

Since IdleX has forked IDLE, that feature can be changed to support. However, if your line numbers are out-of-sync with the executed code, the line number becomes less useful.