Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » xtend-maven plugin does not work in 2.12.0 release(Error compiling xtend sources in src)
xtend-maven plugin does not work in 2.12.0 release [message #1801248] Tue, 15 January 2019 19:10 Go to next message
Neeraj Bhusare is currently offline Neeraj BhusareFriend
Messages: 177
Registered: July 2009
Location: Canada
Senior Member
Hi All,

I am facing the issue that was reported in bug 432488 [0]. The plugin fails to compile Xtend files that have references to Java code. As an experiment, I tried converting the problematic Xtend code to Java in one of my projects, and it worked (only a subset of Xtend code was changed, not all). However, I cannot afford to do this as I have quite a bit of xtend code in my projects.

I did try adding dependencies to 'o.e.jdt.core', 'jdt.compiler.apt', 'jdt.compiler.tool', 'emf.codegen' as suggested by Sven and cdietrich in their comments here [1], but that didn't help.

Is there anything else that I can try? It is crucial for us to get past this issue. Any hints/pointers are highly appreciated.

PS: Please note that the builds started failing abruptly. Also, I would like to mention that we have configured the outputDirectory in the xtend-maven-plugin configuration to generated code in a different folder and not xtend-gen.

Eclipse: Oxygen Release (4.7.0), Build id: 20170620-1800
Xtext: 2.12.0
EMF: 2.13.0

[0] https://bugs.eclipse.org/bugs/show_bug.cgi?id=432488
[1] https://github.com/eclipse/xtext-xtend/issues/116
[2] https://github.com/crapo/sadlos2/commit/0f352f378e5dc3a3a27524521a6abbd5dac59787

PFA log for reference.

Tx in advance
  • Attachment: error.txt
    (Size: 5.57KB, Downloaded 63 times)


Twitter : @NeerajBhusare
Blog : https://nbhusare.github.io/
Best regards, Neeraj
Re: xtend-maven plugin does not work in 2.12.0 release [message #1801249 is a reply to message #1801248] Tue, 15 January 2019 19:13 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14665
Registered: July 2009
Senior Member
https://github.com/eclipse/xtext/issues/1373

Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: xtend-maven plugin does not work in 2.12.0 release [message #1801250 is a reply to message #1801249] Tue, 15 January 2019 20:17 Go to previous messageGo to next message
Neeraj Bhusare is currently offline Neeraj BhusareFriend
Messages: 177
Registered: July 2009
Location: Canada
Senior Member
Tx. Let me take a look.

Twitter : @NeerajBhusare
Blog : https://nbhusare.github.io/
Best regards, Neeraj
Re: xtend-maven plugin does not work in 2.12.0 release [message #1801261 is a reply to message #1801250] Wed, 16 January 2019 01:34 Go to previous messageGo to next message
Neeraj Bhusare is currently offline Neeraj BhusareFriend
Messages: 177
Registered: July 2009
Location: Canada
Senior Member
Works for me. Tx

Twitter : @NeerajBhusare
Blog : https://nbhusare.github.io/
Best regards, Neeraj
Re: xtend-maven plugin does not work in 2.12.0 release [message #1801416 is a reply to message #1801248] Fri, 18 January 2019 16:42 Go to previous message
José Miguel P. is currently offline José Miguel P.Friend
Messages: 66
Registered: March 2010
Member

I just started having exactly the same problem with the same versions you mention. After this workaround that you mentioned https://github.com/eclipse/xtext-xtend/issues/116 it started working for me again.

Thanks!
Previous Topic:Content Assist Problem in the second Grammar
Next Topic:How to serialize XMI model to Xtext file
Goto Forum:
  


Current Time: Wed Apr 24 16:35:52 GMT 2024

Powered by FUDForum. Page generated in 0.03633 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top