【问题标题】:Groovy code is not highlightedGroovy 代码未突出显示
【发布时间】:2012-12-10 11:04:23
【问题描述】:

我直接从 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]

但是代码仍然没有突出显示...您能告诉我接下来应该尝试哪些步骤来突出显示代码吗?

【问题讨论】:

  • 你安装了zip下载的插件?我认为如果你通过eclipse安装插件,它会显示依赖错误并建议你下载它们。
  • 我确实将 URL 放入了 install new SW 中。反正我已经解决了。我应该删除自己的问题还是发布解决方案?
  • 我从来没有问过,有没有“关闭”选项?
  • 接近投票是针对问题不应该存在的选项。我会保持打开状态,是否可以帮助其他遇到同样问题的人...

标签: eclipse ubuntu groovy eclipse-plugin highlighting


【解决方案1】:
猜你喜欢
  • 2016-06-16
  • 1970-01-01
  • 2019-08-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2021-03-20
  • 2015-09-14
相关资源
最近更新 更多