我想從現有的項目創建一個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,但這次安裝可用的更新沒有解決它。
嗨,埃德,我不標記你的答案被接受,因爲我不知道只是重新安裝是一個修復。在我的情況下,Acceleo在升級到其他插件(本例中爲Papyrus)後再次開始工作;我沒有在這裏提供答案,因爲這是一個尷尬的問題。無論如何,你寫關於Eclipse的結果都是某種不一致的狀態,可能是正確的診斷。 –
我相信我所做的只是在某些情況下的修復。但要清楚:我沒有說任何關於重新安裝的東西;在我的情況下,我認爲PDE的必要組成部分簡直就是缺失的時期。我沒有從PDE包開始;大部分安裝的PDE組件都是通過Xtext包含的。 –
使用Acceleo 3.5.1我必須重新安裝PDE。無論如何,這個插件似乎是問題的根源。 –