Cannot find declaration to go to (solved)

Answered

File -> settings -> Project Interpreter -> show all > + system interpreter
File -> settings -> Project structure -> cancel all checked and set only root as a source
File -> invalidate caches
must ok
by Jesse Stone

9 comments
Comment actions Permalink

It didn't work for me 

0
Comment actions Permalink

Same for me: not working whereas everything was fine (without any parameter update by the way) in previous versions of PyCharm

0
Comment actions Permalink

@Raphael Minato does it help if you invalidate caches? (File | Invalidate chache..)? If not, please file a bug at https://youtrack.jetbrains.com/newIssue?project=IDEA with the issue details.

0
Comment actions Permalink

I also see the message "Cannot find declaration to go to" and all suggested solutions do not work.

0
Comment actions Permalink

Maxim Yushin Please contact support at https://intellij-support.jetbrains.com/hc/requests/new with the sample to reproduce and the logs (Help | Collect Logs and Diagnostic Data).

-1
Comment actions Permalink

In my case the problem was the next: for some reasons *.py files were registered as a text files, not python ones. After I changed it, code completion started to work again.

To change file type go Preferences -> Editor -> File types

0

Please sign in to leave a comment.