Komodo Edit 自动完成功能找不到 Python 模块

发布于 2024-09-14 11:10:04 字数 359 浏览 1 评论 0原文

我正在 Windows 上对 Python 文件使用 Komodo 编辑。

当我输入 import s 时,它成功列出了以 s 开头的所有可导入文件,包括我的目录之一中的模块之一。

当我输入 import t 时,它会列出以 t 开头的所有可导入文件,不包括同一目录中的模块之一。

即使 Komodo 找不到它,Python 解释器也可以很好地找到并运行这两个文件。这纯粹是科莫多代码智能的问题。

缺少的模块的名称是 9 个小写字母(没什么花哨的)。它不会与任何其他模块发生冲突。它与可以找到的模块位于同一目录中。

关于为什么一个模块被发现而另一个模块没有找到的任何建议?

I am using Komodo edit on a Python file on Windows.

When I type import s it successfully lists all the importable files starting with s, including one of my modules in one of my directories.

When I type import t it lists all the importable files starting with t, EXCLUDING one of my modules in the same directory.

Even though Komodo can't find it, the Python interpreter finds and runs both files fine. It is purely a problem with Komodo's Code Intelligence.

The name of the missing module is 9 lower-case letters (nothing fancy). It doesn't clash with any other modules. It is in the same directory as the module that can be found.

Any suggestions about why one module is found and another isn't?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

网名女生简单气质 2024-09-21 11:10:05

当我关闭 Komodo、保存项目并重新打开它时,问题自行解决。

听起来科莫多的内部表示已经过时或已损坏。

我将把这个问题留给下一个遇到这个问题的人。

Problem solved itself when I closed Komodo, saving the project, and reopened it.

Sounds like Komodo's internal representation was out-of-date or corrupted.

I'll leave the question here for the next person who stumbles over it.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文