I changed my project code from python 2.7 to 3.x.
After these changes i get a message "cannot find declaration to go to" when hover over any method and press ctrl
I'm tryinig update pycharm from 2017.3 to 18.1, remove directory .idea but my issue still exist.
Do you have any idea how can i fix it?
The solution for me: remember to add an interpreter to the project, it usually says in the bottom right corner if one is set up or not. Just an alternate solution than the others. This happened after reinstalling PyCharm and not fully setting up the ide.
go to WebStorm Default IDE directories (C:\Users\JohnS\AppData\Roaming\JetBrains) delete all files in this folder. reopen WebStorm.
For what its worth, in Pycharm it is: Right click on the root folder->Mark Directory as-> Sources Root Show activity on this post. Same Problem for Python Project!!! I tried to make a clean new intellij project and updated everything.
Cannot find declaration to go to (solved) Answered. Fatalfeel. Created September 09, 2019 12:56. 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.
If a certain class is subclassed, or a method is overridden in more than one class, PyCharm will suggest to select the desired target from the list: After that, PyCharm jumps to the selected target, and places the caret at the class (method) declaration. If there is only one superclass/subclass, or method, then such a navigation is done silently.
PyCharm error: 'No Module' when trying to import own module (python script) 44 Run OpenERP 7 unittests in PyCharm 28 Import NumPy on PyCharm 18 Pycharm - Cannot find declaration to go to
Right click on the folders where you believe relevant code is located ->Mark Directory as-> Sources Root
Note that the menu's wording "Sources Root" is misleading: the indexing process is not recursive. You need to mark all the relevant folders.
What worked for me was right-click on the folder that has the manage.py
> Mark Directory as > Source Root.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With