Can't get Atom editor ide-java package to work on new Mac installation

时间:2018-07-25 04:43:07

标签: java atom-editor

I have recently been using the Atom editor with its ide-java package to do some Java development. It has worked well enough for me and I'd like to continue to use it.

I have just refreshed my Mac from scratch after having some repairs done on it that required erasing the disk. Since installing on this refreshed Mac, I am getting red error highlights on pretty much every line of code, including the first line of files which start with a comment. Most of the errors have a message something like this:

The type java.lang.Object cannot be resolved. It is indirectly referenced from required .class files

A Google search shows this error and some fixes within Eclipse projects, but I am not (directly) using Eclipse and I've had a hard time figuring out how to fix the problem in ide-java.

I've tried deleting the .project file and the .settings folder and allowed them to be auto-regenerated. I've tried uninstalling and re-installing the ide-java package. I've tried setting the package's Java Home to both a Java 8 and a Java 10 home folder. None of these have made a difference.

Can anyone offer any advice on how to troubleshoot and make this work as it has for me in the past?

1 个答案:

答案 0 :(得分:0)

要解决此问题,您可以尝试重置原子设置。 对于Linux:

mv ~/.atom ~/.atom.bak

您将不得不再次安装软件包,但这有助于我解决问题

相关问题