Cannot find declaration to go to (solved)

已回答

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

评论操作 固定链接

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

0
评论操作 固定链接

@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
评论操作 固定链接

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

0
评论操作 固定链接

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
评论操作 固定链接

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

请先登录再写评论。