please don't parse commented out code

It looks like PyCharm is highlighting parsing errors in commented out code. (see attached screenshot)

Please fix this, as it's both unexpected, undesirable and annoying..
4 comments
Comment actions Permalink
Excuse me, please attach the screenshot one more time and specify your PyCharm version.
0
Comment actions Permalink
Actually, I think the problem may actually be that PyCharm takes a few minutes to realize that the code has been commented out. I think it eventually figures out that the commented out code is no longer code and resolves the 'unresolved reference' issues on it's own.

The BIG problem here is that it takes so long. If it took 2 seconds to resolve this issue automatically on it's own, that would be acceptable.

Can you ask your developers to look into speeding this up so that it takes no more than 2 seconds for PyCharm to resolve issues like this ?

Maybe take a look at the time complexity of PyCharm's semantic parsing routines – it looks like it's taking MUCH longer than is acceptable in a user interactional environment.
0
Comment actions Permalink
BTW, I did reattach the screenshot to my previous message but am not seeing that there's a screenshot attached to it.

I'll add the screenshot to this message as well.
0
Comment actions Permalink
For the investigation please provide cpu snapshots at the moment of slow activity https://intellij-support.jetbrains.com/entries/29983118 and file perfomance issue in PyCharm bug-tracker: https://youtrack.jetbrains.com/issues/PY.
0

Please sign in to leave a comment.