Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 353321 - [Xtend][Builder] Possiblity to switch of Java Class Generation through a preference on the project
Summary: [Xtend][Builder] Possiblity to switch of Java Class Generation through a pref...
Status: CLOSED WONTFIX
Alias: None
Product: TMF
Classification: Modeling
Component: Xtext (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P3 enhancement (vote)
Target Milestone: SR2   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on: 353463
Blocks:
  Show dependency tree
 
Reported: 2011-07-28 09:25 EDT by Christian Dietrich CLA
Modified: 2019-04-10 02:56 EDT (History)
4 users (show)

See Also:
sebastian.zarnekow: indigo+


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Christian Dietrich CLA 2011-07-28 09:25:42 EDT
Build Identifier: 2.0.0

(1) I have a Project with Xtend Files
(2) I have a xtend-gen source folder
(3) I Have xbase-lib and xtend-lib on path

=> Xtend always generates Files if i hit save

I want to be able to switch off the generation through a flag on the project

Reproducible: Always
Comment 1 Sebastian Zarnekow CLA 2011-07-29 03:56:32 EDT
Can you please elaborate why you don't want to compile the Xtend files?
Comment 2 Christian Dietrich CLA 2011-07-29 04:01:21 EDT
Hi,

the peformance of Xtend with files with more that 100 lines
and heavy use of JvmRefs/Extensions is slow like hell
(2-10 sec for validation)
the generator makes this even more hell (10+ secs more)
Comment 3 Sebastian Zarnekow CLA 2011-08-16 17:17:00 EDT
Scheduled for 2.1

> => Xtend always generates Files if i hit save

Can you provide a sample project that allows to reproduce the issue. I cannot observe the described behavior.(In reply to comment #0)
Comment 4 Christian Dietrich CLA 2011-08-16 17:21:29 EDT
Hi,

i fear i cannot share the project. Holger did some Yourkit Measurements on the projects when he was on site a few weeks ago. Maybe you can ask him for further information. If necessary we can do further analysis on our side too,

Regards
Christian
Comment 5 Christian Dietrich CLA 2011-08-16 17:25:14 EDT
Btw - i do not exacly know what Xtext does - but it results in build cascades that might even take minutes. the only thing that helps is removing xtext nature or switch of automatic build.
Comment 6 Sebastian Zarnekow CLA 2011-08-16 17:31:45 EDT
Do you use Xtext 2.0.1 or 2.0.0? There were already some first improvements in this field.
Comment 7 Christian Dietrich CLA 2011-08-16 17:33:27 EDT
We are still on 2.0.0 maybe we'll find the time to have a look at 2.0.1
Comment 8 Sebastian Zarnekow CLA 2011-08-23 12:56:27 EDT
To be discussed: Do we want to allow to disable an output configuration completely?
Comment 9 Sven Efftinge CLA 2011-08-23 14:18:33 EDT
In general this will be possible by disabling automatic creation of the output folder + not creating the output folder yourself (i.e. like it is with the domain model example if no src-gen exists).
This will be possible to configure in the preferences very soon.

However, the underlying problem is the performance of the static analysis of Xtend, which we already improved drastically in the last couple of days and will further do.
Comment 10 Daniel Mising name CLA 2011-08-31 04:47:15 EDT
I have this problem too. I would also recommend a setting for disabling automatic code generation. Additionally you could create a builder or MWE component for manual code generation. 

In a template file of about 1400 lines  (including a lot of dispatch methods, rich strings, loops, contidions,..) + a file containing 400 lines the code generation takes about 
- 40-70seconds for "updating resource descriptions"
- 2-10 seconds for "xtext validation"
- 50-70 seconds for "invoking build participants"

Each time I save I have to wait for about 1:30min to 2:10min till the building is finished. Even if I only change a whitespace within the xtend code (not in rich text). 

I'm using xtext 2.0.1.

Please reopen this bug since this feature is really necessary.
Comment 11 Sven Efftinge CLA 2011-08-31 04:59:48 EDT
We are working on it. Please see Bug #353463 .
Disabling will be possible as soon as we've the preference page in place.
It will be included in 2.1 which is due mid October.
Comment 12 Karsten Thoms CLA 2017-09-19 16:53:52 EDT
Closing all bugs that were set to RESOLVED before Neon.0
Comment 13 Karsten Thoms CLA 2017-09-19 17:04:46 EDT
Closing all bugs that were set to RESOLVED before Neon.0
Comment 14 Prasanth D CLA 2019-04-10 02:53:02 EDT
Hi,

While my project is being auto-build, it shows "Updating resource descriptions chunk x of xx. It shows around 18 chunks were available. It takes several minutes to complete the building. It's really frustrating to wait for such long time. Everytime when build happens, it's irritating to wait long time.

If this performance can be optimized to take bit less time, that would be appreciated.

Thanks,
Prasanth
Comment 15 Christian Dietrich CLA 2019-04-10 02:56:06 EDT
Hi,

can you share any measurement data why it takes so long in your scenario (yourkit, ....)
does your machine have sufficient memory?
do you have antiviruses interfering?