|
Re: Xtext 2.12 migration issue (ComputationExceptionStackOverflow) [message #1769597 is a reply to message #1769595] |
Wed, 02 August 2017 06:33 |
|
if i understand that you will get only better error messages with guice4
from which xtext version are you migrating?
did you try to use the debugger to find out what binding causes the stackoverflow?
do you use xbase or not?
does this happen with ui module only or with standlone as well?
do you use the new xtext generator (2.9+) or still the old workflow.
could you share a minimal reproducing project
can you diff the generated abstract modules with the new and the old version. are there any diffs?
Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
[Updated on: Wed, 02 August 2017 06:43] Report message to a moderator
|
|
|
|
|
|
|
Re: Xtext 2.12 migration issue (ComputationExceptionStackOverflow) [message #1770255 is a reply to message #1769607] |
Wed, 09 August 2017 12:49 |
Neeraj Bhusare Messages: 177 Registered: July 2009 Location: Canada |
Senior Member |
|
|
We have a bunch of DSL's in our product. I am experiencing the aforementioned issue in the ones that make use of XBase. This is what I found - In the new generated code (2.9+), the generated class AbstractMyDslRuntimeModule extends the DefaultRuntimeModule. In the old code (2.8) it was extending from the DefaultCommonTypesRuntimeModule. Now, in the new generated code, if I change the AbstractMyDslRuntimeModule to extend DefaultCommonTypesRuntimeModule, everything works fine. I no more see the ComputationExceptionStackOverflow error.
The class AbstractMyDslRuntimeModule is part of the "src-gen" folder and I shouldn't be changing it manually. Is there a way for me to generate the AbstractMyDslRuntimeModule that extends DefaultCommonTypesRuntimeModule ? I looked into the "XbaseGeneratorFragment2", but didn't find anything that could help. Any clue ???
PS : I create a sample DSL (based on XBase) using Xtext 2.8 and then ported (updated mwe2, regenerated code) to Xtext 2.12, but I couldn't reproduce the issue. It appears that the problem is with my office project and I might have overlooked something. Nevertheless, the above fix works.
Tx in advance.
Twitter : @NeerajBhusare
Blog : https://nbhusare.github.io/
Best regards, Neeraj
[Updated on: Wed, 09 August 2017 13:11] Report message to a moderator
|
|
|
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04228 seconds