我直接从eclipse下载页面下载了Eclipse-Eclipse IDE for Java EE Developers并解压缩了它
但是,当我打开.groovy文件时,它没有突出显示。我尝试从this page下载并运行Groovy plugin
在安装过程中,eclipse告诉我groovy已经安装好了:
Cannot complete the install because of a conflicting dependency.
Software being installed: Groovy-Eclipse M2E integration 2.7.1.xx-20120921-2000-e37RELEASE (org.codehaus.groovy.m2eclipse.feature.group 2.7.1.xx-20120921-2000-e37RELEASE)
Software currently installed: Eclipse IDE for Java EE Developers 1.5.1.20121004-1506 (epp.package.jee 1.5.1.20121004-1506)
Only one of the following can be installed at once:
Object Teams Development Tooling Core 3.8.1.v_OTDT_r210_201206090452 (org.eclipse.jdt.core 3.8.1.v_OTDT_r210_201206090452)
Java Development Tools Core 3.8.1.v20120531-0637 (org.eclipse.jdt.core 3.8.1.v20120531-0637)
Object Teams Development Tooling Core 3.8.2.v_OTDT_r211_201209011847 (org.eclipse.jdt.core 3.8.2.v_OTDT_r211_201209011847)
Java Development Tools Core 3.8.2.v20120814-155456 (org.eclipse.jdt.core 3.8.2.v20120814-155456)
Java Development Tools Core 3.7.3.xx-20120921-2000-e37RELEASE (org.eclipse.jdt.core 3.7.3.xx-20120921-2000-e37RELEASE)
Cannot satisfy dependency:
From: Eclipse IDE for Java EE Developers 1.5.1.20121004-1506 (epp.package.jee 1.5.1.20121004-1506)
To: org.eclipse.epp.package.jee.feature.feature.group [1.5.1.20121004-1506]
Cannot satisfy dependency:
From: Groovy-Eclipse Feature 2.7.1.xx-20120921-2000-e37RELEASE (org.codehaus.groovy.eclipse.feature.feature.group 2.7.1.xx-20120921-2000-e37RELEASE)
To: org.codehaus.groovy.jdt.patch.feature.group [2.7.1.xx-20120921-2000-e37RELEASE]
Cannot satisfy dependency:
From: Groovy-Eclipse Feature 2.7.1.xx-20120921-2000-e37RELEASE (org.codehaus.groovy.eclipse.feature.feature.group 2.7.1.xx-20120921-2000-e37RELEASE)
To: org.eclipse.jdt.debug.ui 0.0.0
Cannot satisfy dependency:
From: Groovy-Eclipse M2E integration 2.7.1.xx-20120921-2000-e37RELEASE (org.codehaus.groovy.m2eclipse.feature.group 2.7.1.xx-20120921-2000-e37RELEASE)
To: org.codehaus.groovy.eclipse.feature.feature.group 0.0.0
Cannot satisfy dependency:
From: Java EE IDE Feature 1.5.1.20121004-1506 (org.eclipse.epp.package.jee.feature.feature.group 1.5.1.20121004-1506)
To: org.eclipse.jdt.feature.group 0.0.0
Cannot satisfy dependency:
From: JDI Debug UI 3.6.100.v20120530-1425 (org.eclipse.jdt.debug.ui 3.6.100.v20120530-1425)
To: bundle org.eclipse.jdt.core [3.8.0,4.0.0)
Cannot satisfy dependency:
From Patch: org.codehaus.groovy.jdt.patch.feature.group 2.7.1.xx-20120921-2000-e37RELEASE Eclipse Java Development Tools 3.8.0.v20120525-1249-8-8nFqlFNOfwKDRGz-pXLdGxEM83 (org.eclipse.jdt.feature.group 3.8.0.v20120525-1249-8-8nFqlFNOfwKDRGz-pXLdGxEM83)
To: org.eclipse.jdt.core [3.7.3.xx-20120921-2000-e37RELEASE]
Cannot satisfy dependency:
From Patch: org.codehaus.groovy.jdt.patch.feature.group 2.7.1.xx-20120921-2000-e37RELEASE Eclipse Java Development Tools 3.8.1.v20120814-104540-8-8nFqpFNOfwKDRVz-tXOcL5d_83 (org.eclipse.jdt.feature.group 3.8.1.v20120814-104540-8-8nFqpFNOfwKDRVz-tXOcL5d_83)
To: org.eclipse.jdt.core [3.7.3.xx-20120921-2000-e37RELEASE]
但是代码仍然没有突出显示...你能告诉我下一步我应该尝试什么让代码突出显示吗?
2条答案
按热度按时间jtoj6r0c1#
最可能的原因是您正在Java编辑器中编辑groovy文件。
xqkwcwgp2#
重新打开这个文件帮我解决了这个问题。