Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 348833 - [tooling] Builder inhibits UI
Summary: [tooling] Builder inhibits UI
Status: CLOSED FIXED
Alias: None
Product: Acceleo
Classification: Modeling
Component: Core (show other bugs)
Version: 3.0.0   Edit
Hardware: PC Windows Vista
: P2 major
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-06-09 02:55 EDT by Ed Willink CLA
Modified: 2015-05-27 08:54 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ed Willink CLA 2011-06-09 02:55:53 EDT
RC3. There are some very unpleasant interactions between the Acceleo builder and the Eclipse platform that make use of Acceleo quite unpleasant.

Given an Acceleo module that invokes external Java, editing and saving that Java causes the Acceleo builder to run and lock out other operations that also trigger build operations. Java files have to be saved one at a time with a 5 to 10 second wait between each while the builder completes.
Comment 1 Ed Willink CLA 2011-06-09 03:21:40 EDT
(In reply to comment #0)
> a 5 to 10 second wait

Perhaps I exaggerate 2-3 seconds, but even editing is locked out after a save.
Comment 2 Stephane Begaudeau CLA 2011-08-29 04:19:39 EDT
A fix has been contributed on R3_1_maintenance, it will be available in Acceleo 3.1.1.
Comment 3 Ed Willink CLA 2011-10-02 07:39:37 EDT
3.1.1 I don't think this is fixed, but with so many ergonomic problems in the Acceleo editor/builder/URI resolution, it is difficult to know what causes what. But I think it's now major if not critical.

Basically maintenance of GIT\org.eclipse.ocl\examples\org.eclipse.ocl.examples.codegen\src\org\eclipse\ocl\examples\codegen\ecore\ocl2java4genmodel.mtl is extremely difficult. I'm resorting to using the naked text editor wherever possible so that I only twiddle my thumbs waiting for Acceleo when I need a syntax check/executable code.

Amongst other problems my console log fills with org.eclipse.emf.ecore.resource.impl.ResourceSetImpl$1DiagnosticWrappedException: java.io.FileNotFoundException: ..\..\org.eclipse.emf.ecore\model\Ecore.ecore (The system cannot find the path specified) despite my opening org.eclipse.emf.ecore as a project to that org.eclipse.emf.codegen.ecore can see it as ../..

You might like to look at GIT\org.eclipse.ocl\examples\org.eclipse.ocl.examples.domain\src\org\eclipse\ocl\examples\domain\utilities\ProjectMap.java which supports initialization of a ResourceSet so that platform:/plugin and platform:/resource are universally mapped for plugin or standalone usage. This works well for my standalone launches. If you used it for the editor and the builder, URI resolution issues might go away.
Comment 4 Ed Willink CLA 2011-10-02 09:30:50 EDT
One particular bad scenario is that after a bit of editing...

builder goes away then Control-C and/or Control-S is ignored so that if you just try to carry on editing you lose a copy or paste. Worse if the builder generates an error message, the copy may be from the error log. Sometimes paste is shut out until a File->Save is performed.

There appears to be a major thread partitioning/synchronization and focus problem.
Comment 5 Ed Willink CLA 2011-10-03 09:12:19 EDT
(In reply to comment #4)
> then Control-C and/or Control-S is ignored so that if you
> just try to carry on editing you lose a copy or paste. Worse if the builder
> generates an error message, the copy may be from the error log. Sometimes paste
> is shut out until a File->Save is performed.

After watching closer, it appears that hover generates an error due to inadequate URI resolution and this causes the error lo to take focus so that edit actions are stolen.

[Of course the editor is too useful to get far with a naked text editor, in which the builder nonetheless maintains error markers.]
Comment 6 Ed Willink CLA 2011-10-14 13:06:40 EDT
I'm not sure if this is the right Bugzilla to comment on.

In Acceleo 3.1.0 the builder was very over-enthusiastic seeming to build at every possible opportunity. This was irritating, requiring Build Automatically to be disabled while Acceleo/Xtext/GIT stbailized; at leasxt partially a GIT bug.

In Acceleo 3.1.1 and 3.2 RC1, I am seeing the reverse; the EMTL files are often stale or missing; I've had an NPOE on the return from getClass()!. I am learning to clean the project by hand to force a build.
Comment 7 Stephane Begaudeau CLA 2012-06-05 04:49:32 EDT
I'm marking this issue as resolved once again since the missing emtl files problem has been fixed.
Comment 8 Laurent Goubet CLA 2015-05-27 08:54:39 EDT
Closing resolved bugs