improving generator development turnaround times? [message #758423] |
Wed, 23 November 2011 09:07 |
Volker Wegert Messages: 182 Registered: July 2009 |
Senior Member |
|
|
Hi all,
I have some experience with the old Xtend/Xpand packanges, and I've used
Xtext 2 for newer projects. In the old projects, I was able to keep the
secondary Eclipse instance running, modify the generator templates in
the first instance and then re-run the generator from the second
instance. Since the templates were interpreted, this allowed for a very
"interactive" way of developing the generator - change something,
generate to try it and move on. Now, with Xtext 2 compiling the
templates to Java classes, this doesn't seem to work any longer. While
the generator is certainly faster, I now have to close and re-open the
secondary instance to pick up the changes. For some reason, hot code
replacement doesn't work reliably - sometimes it doesn't notice the
changes at alls and more often than not, it kills the secondary instance
because of some incompatible changes. How do you solve this problem?
Thanks
Volker
--
* Volker Wegert * http://www.volker-wegert.de/contact *
|
|
|
|
|
|
Re: improving generator development turnaround times? [message #758449 is a reply to message #758428] |
Wed, 23 November 2011 10:33 |
Hallvard Traetteberg Messages: 673 Registered: July 2009 Location: Trondheim, Norway |
Senior Member |
|
|
On 23.11.11 10.19, Christian Dietrich wrote:
> Hi,
>
> what about calling the generator standalone / from a workflow
> => you wont need to start a runtime
I have been trying this, but found it difficult to make it work. I have
been able to register all the packages etc., load the relevant files
into a resource set with the reader workflow component, but the xtext
linking fails. My project uses/refers to xbase, jvmtypes, ecore and
genmodel using the importedNamespace technique, and I wonder if this
causes a problem for the workflow, e.g. if xtext indexing needs to be
triggered somehow. Are special tricks/techniques needed for making
scoping/linking work when using namespaces and references to external
models (jvmtypes, ecore and genmodel)?
Hallvard
|
|
|
|
Powered by
FUDForum. Page generated in 0.02608 seconds