Skip to main content



      Home
Home » Modeling » TMF (Xtext) » code gen when Build Automatically disabled(code gen occurs on clean when Build Automatically is disabled)
code gen when Build Automatically disabled [message #1789925] Thu, 31 May 2018 16:54 Go to next message
Eclipse UserFriend
I'm looking at the tracing/ code generation example,
https://github.com/theia-ide/tracing_codegen

I noticed the Project->Clean... does clean, but it also initiates a new code generation, even if Project->Build Automatically is unchecked.

Conversely, if I manually delete the generated source files, then select Project-> Build All, the code does not get generated.

Seems like it would make more sense for the code generation to be linked to Build, and that Project->Clean would delete any generated files and leave them gone.

Was there some reason for the current design? I'm not familiar with other code generation apps, so I'm not aware of what is customary.
===========

My mistake. I just noticed that the "Clean" dialogue has a Start a build immediately checkbox, which I suppose overrides the workspace Build Automatically being unchecked. I can see why this dialog would be necessary if the Eclipse workspace isn't there, as when using e4 rcp, so this makes sense to me.

[Updated on: Thu, 31 May 2018 17:12] by Moderator

Re: code gen when Build Automatically disabled [message #1789933 is a reply to message #1789925] Thu, 31 May 2018 18:30 Go to previous messageGo to next message
Eclipse UserFriend
If you have build automatically off the clean dialog willl ask you if you want a build after the clean.

That all is standard eclipse behaviour and not Xtext specific
Re: code gen when Build Automatically disabled [message #1789946 is a reply to message #1789933] Fri, 01 June 2018 02:50 Go to previous message
Eclipse UserFriend
And if you delete generated files and you do a Build All, they are not produced, since the source files did not change. The builder only considers the source files.
Previous Topic:runtime version of generated model
Next Topic:Xtext scope
Goto Forum:
  


Current Time: Tue Jun 24 10:43:38 EDT 2025

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

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

Back to the top