|Re: Xtext 2.12 migration issue (ComputationExceptionStackOverflow) [message #1770255 is a reply to message #1769607]
||Wed, 09 August 2017 12:49
| Neeraj Bhusare
Registered: July 2009
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.02805 seconds