Standalone Custom Validation Not Being Called [message #1863907] |
Tue, 05 March 2024 07:52  |
Eclipse User |
|
|
|
I'm very perplexed by this and have never seen it before. When running our standalone compiler, our custom DslValidator is not being called at all. No breakpoints within that validator are ever hit.
Conversely, the validator works perfectly in the Eclipse GUI _and_ the small number of unit test cases we have that test the validator actually work! The junit tests run in standalone, so it's baffling why standalone doesn't work.
Since our junit tests successfully call at least one of our custom validations, I know my stand alone setup should be configured correctly (or the tests would not work)
Our standalone compiler does flag basic parsing errors, linking errors, and names are unique validation, but nothing else. So none of our semantic checks are triggered.
Yes, our Main.java for the standalone compiler calls validate of our injected IResourceValidator. I've copied/pasted Main.java code that has worked perfectly for several DSLs I've done before, but it's coming up with an empty list of issues (when it should have some errors and warnings and infos from our semantic validators)
This is my first time ever attempting to use ComposedChecks so I feel like it has something to do with that. (hard to find documentation on this)
But I don't even know where to start for debugging this - well, I started with breakpoints in our DslValidator, but none of them are hit.
Any ideas?
Xtext 2.31, Java 17, Ecilpse 2023-06
[Updated on: Tue, 05 March 2024 08:02] by Moderator
|
|
|
|
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.05150 seconds