我在IntelliJ IDEA 2017.1.2。最近,我将一个模块从mod_plus重命名为exp-packs,现在我一直得到错误:Error Loading Project: Cannot load module mod_plus
旧模块不存在。在“项目文件->ProjectStructure->Modules->Dependencies”下,它没有出现,它就在那里,但是当我第一次看到错误时,我删除了它。它不会出现在.iml文件中:
<?xml version="1.0" encoding="UTF-8"?>
<module type="PYTHON_MODULE" version="4">
<component name="NewModuleRootManager" inherit-compiler-output="true">
<exclude-output />
<content url="file://$MODULE_DIR$" />
<orderEntry type="inheritedJdk" />
<orderEntry type="sourceFolder" forTests="false" />
<orderEntry type="module" module-name="Pyhton-Snippets" />
<orderEntry type="module" module-name="exp_packs" />
</component>
</module>在事件日志中,当我单击“Details”并询问是否要删除时,我单击“是”,该会话将消失,但在重新启动时,它会返回。对如何摆脱它有什么想法吗?
发布于 2017-05-04 14:27:14
IntelliJ IDEA根据.idea/modules.xml文件加载模块,其中包含.iml文件的相对路径。
如果您在IntelliJ IDEA中使用重构重命名一个模块,则modules.xml文件将自动更新。在其他情况下,您可能需要手动更新路径。
https://stackoverflow.com/questions/43784724
复制相似问题