2014-02-15 38 views
2

我想從現有的項目創建一個Acceleo插件,並隨時回覆此錯誤消息:錯誤創建Acceleo插件:無法創建任務或類型apitooling.apigeneration

'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 project創建插件,我會得到完全相同的錯誤。

更新II:這個問題回來與Acceleo 3.5.1,但這次安裝可用的更新沒有解決它。

回答

6

我希望你沒有屏住呼吸等待答案。我只是從xtext,而不是Acceleo中遇到了這個問題。如果您觀看build.xml創建(並快速刪除)的目錄,您可以像我一樣捕獲副本。但問題是,在日誌中你有:

問題:無法創建任務或類型apitooling.apigeneration

谷歌搜索這一點,你會走到那您需要安裝結束Eclipse PDE(插件開發環境)的某些部分或某些部分。因爲你的eclipse部署可能處於幾乎無限的狀態中,所以我可以說!就我而言,我剛剛從開普勒更新站點(http://download.eclipse.org/releases/kepler/)安裝了整個PDE。您可以在安裝的插件中​​窺探一下,看看您是否已經安裝了一些組件(org.eclipse.pde。*),在這種情況下,我認爲您會想嘗試下載一個版本,該版本稍微高於該版本。在我的情況下,我安裝了3.8.1,並安裝了整個3.9.1 PDE。與往常一樣,如果您對當前的Eclipse軟件包有大量投資,請考慮首先進行備份。

我是新來的,只有有限的經驗建議!

+0

嗨,埃德,我不標記你的答案被接受,因爲我不知道只是重新安裝是一個修復。在我的情況下,Acceleo在升級到其他插件(本例中爲Papyrus)後再次開始工作;我沒有在這裏提供答案,因爲這是一個尷尬的問題。無論如何,你寫關於Eclipse的結果都是某種不一致的狀態,可能是正確的診斷。 –

+0

我相信我所做的只是在某些情況下的修復。但要清楚:我沒有說任何關於重新安裝的東西;在我的情況下,我認爲PDE的必要組成部分簡直就是缺失的時期。我沒有從PDE包開始;大部分安裝的PDE組件都是通過Xtext包含的。 –

+0

使用Acceleo 3.5.1我必須重新安裝PDE。無論如何,這個插件似乎是問題的根源。 –

相關問題