Home » Modeling » TMF (Xtext) » XBase model inferrer problem
XBase model inferrer problem [message #773541] |
Sun, 01 January 2012 23:35 |
Zoltan Ujhelyi 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 |
Jan Koehnlein 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 #773849 is a reply to message #773791] |
Mon, 02 January 2012 17:51 |
|
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
HOME: http://www.lorenzobettini.it
TDD Book: https://leanpub.com/tdd-buildautomation-ci
Xtext Book: https://www.packtpub.com/application-development/implementing-domain-specific-languages-xtext-and-xtend-second-edition
|
|
| |
Goto Forum:
Current Time: Wed Sep 25 23:17:39 GMT 2024
Powered by FUDForum. Page generated in 0.04077 seconds
|