Eclipse“转到定义” 问题
我正在使用 PyDev 进行 Eclipse,并且遇到了“转到定义”的一些问题。 它适用于大多数模块,但对于某些站点包则不然。 它发出“碰撞”声,然后什么也没有发生。 Twisted 是不起作用的软件包之一,这很奇怪,因为源代码就包含在其中。 知道如何解决这个问题吗?
I'm using PyDev for eclipse and am experiencing some issues with "go to definition". It works for most modules, but for some site packages it does not. It does the "bump" sound and then nothing happens. One of the packages that doesn't work is Twisted, which is weird since the source is included and right there. Any idea how to fix this?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
Pydev(也与 Aptana 发行版 捆绑在一起)似乎没有任何与您完全相同的错误正在描述。
以下是包含 PyDev 的“定义”一词的错误列表: 错误
您可以在那里打开错误报告,其中包含所使用的 eclipse、pydev、java 的确切版本,
但首先:
您使用什么版本的 Pydev? 开源的还是商业的(即开源 + Pydev 扩展)?
因为矩阵特征非常清楚:
Pydev (also bundle with the Aptana distro) does not seem to have any bug exactly similar to the one you are describing.
Here is the list of bugs including the word "definition" for PyDev: bugs
You could open a bug report there with the exact version of eclipse, pydev, java used
But first:
What version of Pydev are you using? The open-source one or the commercial one (i.e. open-source + Pydev extensions)?
Because the matrix feature is quite clear:
转到定义效果很好。 问题是 eclipse 不知道在哪里可以找到源代码。 您可以转到窗口> 偏好> pydev > 翻译> 新建文件夹,并添加缺少的文件夹。 即使您已将站点包添加到配置中,您仍然必须单独添加子文件夹才能获得代码帮助并能够转到定义。
The go to definition works just fine. The problem was that eclipse didn't know where to find the source. You can go to window > preferences > pydev > interpreter > New folder, and add the folders missing. Even though you've added site-packages to the configuration, you still have to add subfolders separately to get code assist and to be able to go to the definition.