PyCharm does not display line of error in script

Completed

Hi,

 

I have a question concerning the displaying of errors in the Python Console in PyCharm. When I'm running a part of my code I get the following error:

 

Traceback (most recent call last):
  File "<input>", line 17, in <module>
TypeError: only integer scalar arrays can be converted to a scalar index

 

As you can see, this error only indicates the line number relative to the selection that I executed. Is there some way to make PyCharm show the line number relative to the total script, or maybe the actual line of code that generated the error? Thanks in advance for your help!

 

Gijs

0
2 comments

Hi,

This is how it currently works indeed. There is no such feature to indicate the line number in the file (when executing selection) at the moment.

I believe it works as expected though, because PyCharm acts as if you manually copied and pasted the code to console.

If you would like to have such feature, please feel free to submit a request to https://youtrack.jetbrains.com/issues/PY

1
Avatar
Permanently deleted user

I will do that immediately. Thank you, Sergey!

0

Please sign in to leave a comment.