Pythonista-Issues
Pythonista-Issues copied to clipboard
"IndexError" preview code Error with commented code
When I hit an error on one of my programs, a pop-up dialogue appeared and showed the error present.
When I click on the info button (i), it showed a preview of the code containing the error with the line highlighted. The problem here is in the code preview, because it cuts off the top of the code in order to only show the section with the error, however, it doesn't check if it starts the previewed code in the middle of a commented out section, therefore it can appear that the wrong code is commented out in the preview, as shown below. I have checked the code and confirmed that the comments have started above the beginning of the previewed section of code, causing the preview to assume it is not commented.
Thanks and I hope this helps,
Kind Regards,
Jake