Pycharm - Cannot find declaration to go to(Pycharm - 找不到要前往的声明)
问题描述
我将项目代码从 python 2.7 更改为 3.x.
I changed my project code from python 2.7 to 3.x.
在这些更改之后,当将鼠标悬停在任何方法上并按 ctrl 时,我会收到一条消息找不到要转到的声明"
After these changes i get a message "cannot find declaration to go to" when hover over any method and press ctrl
我正在尝试将 pycharm 从 2017.3 更新到 18.1,删除目录 .idea 但我的问题仍然存在.
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?
推荐答案
在你认为相关代码所在的文件夹上右击->Mark Directory as->Sources Root
Right click on the folders where you believe relevant code is located ->Mark Directory as-> Sources Root
请注意,菜单中的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.
这篇关于Pycharm - 找不到要前往的声明的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:Pycharm - 找不到要前往的声明


基础教程推荐
- 用于分类数据的跳跃记号标签 2022-01-01
- 筛选NumPy数组 2022-01-01
- Dask.array.套用_沿_轴:由于额外的元素([1]),使用dask.array的每一行作为另一个函数的输入失败 2022-01-01
- 使用PyInstaller后在Windows中打开可执行文件时出错 2022-01-01
- Python kivy 入口点 inflateRest2 无法定位 libpng16-16.dll 2022-01-01
- 线程时出现 msgbox 错误,GUI 块 2022-01-01
- 如何在海运重新绘制中自定义标题和y标签 2022-01-01
- 何时使用 os.name、sys.platform 或 platform.system? 2022-01-01
- 在 Python 中,如果我在一个“with"中返回.块,文件还会关闭吗? 2022-01-01
- 如何让 python 脚本监听来自另一个脚本的输入 2022-01-01