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
- 使用大型矩阵时禁止 Pycharm 输出中的自动换行符 2022-01-01
- 修改列表中的数据帧不起作用 2022-01-01
- 包装空间模型 2022-01-01
- PermissionError: pip 从 8.1.1 升级到 8.1.2 2022-01-01
- PANDA VALUE_COUNTS包含GROUP BY之前的所有值 2022-01-01
- 无法导入 Pytorch [WinError 126] 找不到指定的模块 2022-01-01
- 在Python中从Azure BLOB存储中读取文件 2022-01-01
- Plotly:如何设置绘图图形的样式,使其不显示缺失日期的间隙? 2022-01-01
- 在同一图形上绘制Bokeh的烛台和音量条 2022-01-01
