gpt4 book ai didi

eclipse - 创建 Acceleo 插件时出错 : failed to create task or type apitooling. apigeneration

转载 作者:行者123 更新时间:2023-12-01 23:07:37 32 4
gpt4 key购买 nike

我正在尝试从现有项目创建一个 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。谢谢。

更新我:如果我尝试通过 Acceleo UI project 创建插件,我会收到完全相同的错误。 .

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

最佳答案

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

Problem: failed to create task or type apitooling.apigeneration

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

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

关于eclipse - 创建 Acceleo 插件时出错 : failed to create task or type apitooling. apigeneration,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21799716/

32 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com