Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » XBase model inferrer problem
XBase model inferrer problem [message #773541] Sun, 01 January 2012 23:35 Go to next message
Zoltan Ujhelyi is currently offline Zoltan UjhelyiFriend
Messages: 392
Registered: July 2015
Senior Member
Hi,

I tried to use the XBase model inferrer on my DSL as described in the documentation. Until a specific point it worked as expected (classes/methods were generated, they were navigable, etc.), but then I changed something, and after that point no classes were generated.

Sadly, no exception (checked with an exception breakpoint as well), error message (neither in console nor in the problems view) or any indication is provided what happens under the hood, just the output is missing. I tried debugging my code, the inferrer gets invoked, the JVMGenericTypes are created, and as far I understood the model, it seemed correct as well.

I tried to go back to a version from the history that I remembered correct, but it does not works now; however, when I use the domain model example on the same project, code generation works as expected (the Xtext builder was set).

I am sure that I misconfigured something really trivial, but I cannot find it. However, I would be really grateful, if you could give me a hint, what workflow fragment or Guice binding override could case such issues, or at least where to setup some breakpoints to observe what might be the problem.

Thank you for your help in advance,
Zoltan Ujhelyi

Re: XBase model inferrer problem [message #773786 is a reply to message #773541] Mon, 02 January 2012 14:31 Go to previous messageGo to next message
Jan Koehnlein is currently offline Jan KoehnleinFriend
Messages: 760
Registered: July 2009
Location: Hamburg
Senior Member
XtextBuilder.doBuild(ToBeBuilt, IProgressMonitor, BuildType) would be a
helpful breakpoint. Maybe you changed validation? Note that erroneous
resources are excluded from the build.

Am 02.01.12 00:35, schrieb Zoltan Ujhelyi:
> Hi,
>
> I tried to use the XBase model inferrer on my DSL as described in the
> documentation. Until a specific point it worked as expected
> (classes/methods were generated, they were navigable, etc.), but then I
> changed something, and after that point no classes were generated.
>
> Sadly, no exception (checked with an exception breakpoint as well),
> error message (neither in console nor in the problems view) or any
> indication is provided what happens under the hood, just the output is
> missing. I tried debugging my code, the inferrer gets invoked, the
> JVMGenericTypes are created, and as far I understood the model, it
> seemed correct as well.
>
> I tried to go back to a version from the history that I remembered
> correct, but it does not works now; however, when I use the domain model
> example on the same project, code generation works as expected (the
> Xtext builder was set).
>
> I am sure that I misconfigured something really trivial, but I cannot
> find it. However, I would be really grateful, if you could give me a
> hint, what workflow fragment or Guice binding override could case such
> issues, or at least where to setup some breakpoints to observe what
> might be the problem.
>
> Thank you for your help in advance,
> Zoltan Ujhelyi
>
>


--
Need professional support for Eclipse Modeling?
Go visit: http://xtext.itemis.com


---
Get professional support from the Xtext committers at www.typefox.io
Re: XBase model inferrer problem [message #773791 is a reply to message #773786] Mon, 02 January 2012 14:53 Go to previous messageGo to next message
Zoltan Ujhelyi is currently offline Zoltan UjhelyiFriend
Messages: 392
Registered: July 2015
Senior Member
Thank you for your quick help. After some sleep I already found the same builder class to start, so just now I finally found the problem. Although the builder fragment was added to the workflow, the builder was missing from the plugin.xml. After copying the relevant changes from plugin.xml_gen, it works.

And I started hacking because of validation, as I ran into the same issue as Lorenzo Bettini in http://www.eclipse.org/forums/index.php/t/262760/

Thank you again,
Zoltan
Re: XBase model inferrer problem [message #773849 is a reply to message #773791] Mon, 02 January 2012 17:51 Go to previous messageGo to next message
Lorenzo Bettini is currently offline Lorenzo BettiniFriend
Messages: 1813
Registered: July 2009
Location: Firenze, Italy
Senior Member
On 01/02/2012 03:53 PM, Zoltan Ujhelyi wrote:
> Thank you for your quick help. After some sleep I already found the same
> builder class to start, so just now I finally found the problem.
> Although the builder fragment was added to the workflow, the builder was
> missing from the plugin.xml. After copying the relevant changes from
> plugin.xml_gen, it works.
>
> And I started hacking because of validation, as I ran into the same
> issue as Lorenzo Bettini in
> http://www.eclipse.org/forums/index.php/t/262760/
>

and did you solve it? :)

cheers
Lorenzo


--
Lorenzo Bettini, PhD in Computer Science, DI, Univ. Torino
ICQ# lbetto, 16080134 (GNU/Linux User # 158233)
HOME: http://www.lorenzobettini.it MUSIC: http://www.purplesucker.com
http://www.myspace.com/supertrouperabba
BLOGS: http://tronprog.blogspot.com http://longlivemusic.blogspot.com
http://www.gnu.org/software/src-highlite
http://www.gnu.org/software/gengetopt
http://www.gnu.org/software/gengen http://doublecpp.sourceforge.net


Re: XBase model inferrer problem [message #773890 is a reply to message #773849] Mon, 02 January 2012 20:30 Go to previous message
Zoltan Ujhelyi is currently offline Zoltan UjhelyiFriend
Messages: 392
Registered: July 2015
Senior Member
Sadly, no.

After some minor experimentation with using a custom qualified name provider (it did not work) I searched for the problem, and found your thread and the bugzilla entry, and for now simply turned off validation. It was much more pressing, that the code generation did not work afterwards some other changes in the workflow file... Very Happy

Cheers,
Zoltán
Previous Topic:JvmTypeReference and JvmGenericType
Next Topic:Error MWE2 Workflow Generator
Goto Forum:
  


Current Time: Wed Sep 25 23:17:39 GMT 2024

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

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

Back to the top