2

我正在尝试从现有项目中创建一个 Acceleo 插件,并且总是会收到此错误消息:

'Export Plug-ins' has encountered a problem.
/media/Data/users/lads/Trabalho/Eclipse/Workspace.Acceleo/.metadata/.plugins/org.eclipse.pde.core/temp/org.eclipse.pde.container.feature/assemble.org.eclipse.pde.container.feature.linux.gtk.x86.xml:88: The following error occurred while executing this line:
/media/Data/users/lads/Trabalho/Eclipse/Workspace.Acceleo/.metadata/.plugins/org.eclipse.pde.core/temp/org.eclipse.pde.container.feature/assemble.org.eclipse.pde.container.feature.linux.gtk.x86.xml:103: The following error occurred while executing this line:
/media/Data/users/lads/Trabalho/Eclipse/Workspace.Acceleo/.metadata/.plugins/org.eclipse.pde.core/temp/org.eclipse.pde.container.feature/assemble.org.eclipse.pde.container.feature.linux.gtk.x86.xml:26: The following error occurred while executing this line:
/media/Data/users/lads/Trabalho/Eclipse/Workspace.Acceleo/org.eclipse.acceleo.module.sample/build.xml:315: The following error occurred while executing this line:
/media/Data/users/lads/Trabalho/Eclipse/Workspace.Acceleo/org.eclipse.acceleo.module.sample/build.xml:422: Problem: failed to create task or type apitooling.apigeneration
Cause: The name is undefined.
Action: Check the spelling.
Action: Check that any custom tasks/types have been declared.
Action: Check that any <presetdef>/<macrodef> declarations have taken place.

build.xml当 Acceleo 试图生成插件时,这个文件似乎是动态创建的。当它失败时,文件被删除,所以我无法检查可能有什么问题。

我对任何 Acceleo 项目都有同样的错误,即使是新创建的项目。我在 Eclipse Indigo 上使用 Acceleo 3.3.0。谢谢。

更新 I :如果我尝试通过Acceleo UI 项目创建插件,我会遇到同样的错误。

更新二:Acceleo 3.5.1 又出现了这个问题,但这次安装可用更新并没有解决它。

4

1 回答 1

7

我希望你没有屏住呼吸等待答案。我刚刚从 xtext 而不是 Acceleo 遇到了这个问题。如果您查看创建 build.xml 的目录(并快速删除),您可能可以像我一样捕获一个副本。但问题出在您的日志中:

问题:未能创建任务或键入 apitooling.apigeneration

对此进行谷歌搜索,您会得出结论,您需要安装 Eclipse PDE(插件开发环境)的某些部分或部分。因为您的 Eclipse 部署可能处于几乎无限的状态中的任何一种状态,所以我只能这么说!就我而言,我刚刚从 Kepler 更新站点 ( http://download.eclipse.org/releases/kepler/ ) 安装了整个 PDE。您可能会在已安装的插件中​​四处窥探,以查看您是否已经安装了一些组件(org.eclipse.pde.*),在这种情况下,我认为您会想要尝试下载与该版本相同或略高于该版本的版本。就我而言,我安装了一些 3.8.1,并安装了整个 3.9.1 PDE。与往常一样,如果您对当前的 Eclipse 包进行了大量投资,请考虑先对其进行备份。

我是这方面的新手,只能提供有限的建议!

于 2014-03-22T14:58:38.973 回答