Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » Changes on .xtend file crashes the workspace
Changes on .xtend file crashes the workspace [message #1706575] Thu, 27 August 2015 19:06 Go to next message
Alexander R is currently offline Alexander RFriend
Messages: 211
Registered: July 2013
Senior Member
Hi all,

I am quite confused. I've implemented a DSL some time ago and
customized the generated xtext modules. Now I want to add some
small changes to the .xtend classes (docu...) but I can't save any .xtend file.

After I start typing the whole workspace freezes and I have to terminate the 'java.exe' process by hand.

I am using 'Eclipse Luna DSL' ( Luna Service Release 1 (4.4.1)) with
the following plugins:
https://dl.dropboxusercontent.com/u/18688378/eclipseCoding/errors/xtend/usedPlugins.JPG

My eclipse.ini file looks like this:

-startup
plugins/org.eclipse.equinox.launcher_1.3.0.v20140415-2008.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_64_1.1.200.v20140603-1326
-product
org.eclipse.epp.package.dsl.product
--launcher.defaultAction
openFile
--launcher.XXMaxPermSize
2048m
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
2048m
--launcher.defaultAction
openFile
--launcher.appendVmargs
-vmargs
-Dosgi.requiredJavaVersion=1.6
-Xms256m
-Xmx2048m


Any suggstions welcome!

~Alex

PS: I've changed the .xtend files with an simple text-editor and added them back to eclipse, the buildmechanism from xtend -> java works, but I'm not able to used the xtend-editor..
Re: Changes on .xtend file crashes the workspace [message #1706577 is a reply to message #1706575] Thu, 27 August 2015 19:12 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14665
Registered: July 2009
Senior Member
does this happen in a specific projects or in a projects? does it happen in a fresh workspace using the same projects as well? does it freeze forever or does it recover after some minutes?

Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: Changes on .xtend file crashes the workspace [message #1706578 is a reply to message #1706577] Thu, 27 August 2015 19:20 Go to previous messageGo to next message
Alexander R is currently offline Alexander RFriend
Messages: 211
Registered: July 2013
Senior Member
Hi,

I've just tried it out ... in a fresh workspace (old projects) it works fine..
In the old "buggy" workspace it crashes AND the generated DSL-Editor (of my own dsl) in an eclipse runtime was really slow...

Any idea what might be the reason?
Re: Changes on .xtend file crashes the workspace [message #1706579 is a reply to message #1706578] Thu, 27 August 2015 19:36 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14665
Registered: July 2009
Senior Member
nope. you would have to remote debug to find out what happens. deadlock or infinite loop

Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: Changes on .xtend file crashes the workspace [message #1706580 is a reply to message #1706579] Thu, 27 August 2015 19:43 Go to previous messageGo to next message
Alexander R is currently offline Alexander RFriend
Messages: 211
Registered: July 2013
Senior Member
A little question about the slow editor, my serailized dsl-AST is about 1000 lines big. But the usage of the editor is nearly impossible. every letter appears after 1/2 sec....

My DSL is an expression language with a underlining type-system that instantly performs a live-validation. the "normal" validation covers about ~70 validation rules.
I also use a customized index (with some data in the user-data map) and perform some manuel linking for a view elements.

might this be a problem/reason for the really slow behaviour of the generated editor?


Re: Changes on .xtend file crashes the workspace [message #1706586 is a reply to message #1706580] Thu, 27 August 2015 21:34 Go to previous message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14665
Registered: July 2009
Senior Member
This cannot Generally be answered. You should always measure.

Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Previous Topic:trouble integrating the Xtext editor to an swt form
Next Topic:Linux kernel (ARM) dts parser.
Goto Forum:
  


Current Time: Fri Apr 26 16:27:43 GMT 2024

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

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

Back to the top