is it support to implement one cross-reference link validation without project build action [message #1803400] |
Thu, 28 February 2019 07:00 |
|
Hi Experts,
I have one cross-reference element from another DSL file, now I would like to implement the feature like below:
once I change the referenced element in the DSL file, yes, it will give one error in my referenceing DSL file on the fly, this is cool.
But after I save the file, the promoted error will be disappeared. I know this is because I don't select "automatically build" in my workspace. after I rebuild the project, the featue works well.
But In my project, we have particular scenarios, so must de-select the auto-buld operation. and in my purpose, I also would like to the validation can work as expected after doing "Save" without any buid action performed.
Should Xtext support this? how do I should do?
Thanks for u time and kinkdly help in advance.
Best Regards,
Devin
|
|
|
Re: is it support to implement one cross-reference link validation without project build action [message #1803405 is a reply to message #1803400] |
Thu, 28 February 2019 07:52 |
|
No, we rely on the Eclipse builder infrastructure to work properly. Trying to work around this might cause serious headaches. But if you want to have headaches, start investigating the XtextBuilder and get some Aspirin.
I'd rather question why you need to disable auto-build in your scenario. I know very rare cases where this might make sense, but most times where I saw that was just inproper project structuring where projects got far too large and which got solved by modularization.
|
|
|
Re: is it support to implement one cross-reference link validation without project build action [message #1803406 is a reply to message #1803405] |
Thu, 28 February 2019 08:20 |
|
Hi Karsten,
In our workspace, there are other project existed beside ours, so the auto-build is disabled, we let user do the build after his modification(like modify on C++ code, then build by manually).
But on my side, if we enable the build, then will cause other project build also, this is what we don't want to happen.
Anyway, Thanks for your reply.
Best Regards,
Devin
|
|
|
Powered by
FUDForum. Page generated in 0.07008 seconds