xText: doGenerate method is not called

我的未来我决定 提交于 2019-12-13 07:04:45

问题


I'm developing a DSL using xText (version 2.10.0) and i would like to add also a code generator.

When running the plug-ins, as I understood, the code generator should be invoked automatically upon a change in a file. This is not happening.

Using a debugger I've noticed that the doGenerate function is not invoked.

What can I do so the doGenerate function will be invoked automatically?

Thanks.


回答1:


Your file needs the right file extension (case sensitive) the project needs xtext nature and build automatically needs to be enabled. Then the generator will be called upon save of error free models



来源:https://stackoverflow.com/questions/39625211/xtext-dogenerate-method-is-not-called

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!