简体   繁体   English

更新了 Eclipse,我的工作区不见了

[英]Updated Eclipse and my workspace is gone

I had been using a pre built workspace with Minecraft forge and have successfully installed forge before.我一直在使用带有 Minecraft forge 的预构建工作区,并且之前已经成功安装了 Forge。 I have been using it for months now.我已经使用它几个月了。 After I updated eclipse, the workspace is gone even when I point eclipse to the correct folder.更新 eclipse 后,即使我将 eclipse 指向正确的文件夹,工作区也消失了。 And when I say gone, I mean I cannot see any files.当我说消失时,我的意思是我看不到任何文件。 I tried reinstalling forge and eclipse with the latest versions to no avail.我尝试使用最新版本重新安装 forge 和 eclipse 无济于事。 All the other problems like this one have SOMETHING in the hierarchy.像这样的所有其他问题在层次结构中都有一些东西。

I did not get any errors on the reinstall to post.我在重新安装后没有收到任何错误。 My other work spaces are imported just fine, it is only my forge work space that is not showing up.我的其他工作空间导入得很好,只有我的伪造工作空间没有出现。 I tried to point eclipse to the project itself and ended up with a bunch of errors and the libraries where not imported.我试图将 eclipse 指向项目本身,但最终出现了一堆错误和未导入的库。 This is what you get when you run gradlew eclipse in debug because I am assuming that is where the error is.这就是在调试中运行 gradlew eclipse 时得到的结果,因为我假设这是错误所在。 http://pastebin.com/0sFjxypB . http://pastebin.com/0sFjxypB I tired posting this to the Minecraft forge forum, but no one could help.我厌倦了将其发布到 Minecraft forge 论坛,但没有人可以提供帮助。

I've had this once too.我也有过这种情况。

Just do a fresh forge install in a new directory, then copy over your src directory.只需在新目录中进行全新的伪造安装,然后复制您的 src 目录。 Also copy over relevant changes in build.gradle同时复制 build.gradle 中的相关更改

That's usually the best way to solve this.这通常是解决此问题的最佳方法。

Also, good to know: Eclipse cannot handle directory changes of projects.另外,很高兴知道:Eclipse 无法处理项目的目录更改。 it hardcodes the directory location in it's eclipse metadata.它在它的 eclipse 元数据中硬编码目录位置。 if the location changes eclipse turns dumb and can't find jack shit.如果位置发生变化,eclipse 就会变得愚蠢并且找不到 jack shit。 (for example upgrading to windows 10, and your user name changed from mdibbets to mdibb in the users directory) (比如升级到windows 10,你的用户名在users目录下从mdibbets改成了mdibb)

One big hint with Eclipse is always put the workspace in a different folder location to the Source. Eclipse 的一个重要提示是始终将工作区放在与源不同的文件夹位置。 We tend to do C:\\workspace\\myProject and the source in C:\\dev\\myProject我们倾向于做 C:\\workspace\\myProject 和 C:\\dev\\myProject 中的源

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM