Standalone Custom Validation Not Being Called [message #1863907] |
Tue, 05 March 2024 12:52 |
Brandon Lewis Messages: 268 Registered: May 2012 |
Senior Member |
|
|
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 13:02] Report message to a moderator
|
|
|
|
|
|
|
|
|
|
Re: Standalone Custom Validation Not Being Called [message #1864032 is a reply to message #1863922] |
Tue, 12 March 2024 15:12 |
Brandon Lewis Messages: 268 Registered: May 2012 |
Senior Member |
|
|
Sorry, changing topics slightly, but seems related.
Curiously, we've made some progress getting our LS to run in VSCode and it's exhibiting the same symptom that we only get basic parsing validation, unique names validation, and linking validation, but are not getting any of our custom semantic validation called.
Is there any clues as to why the standalone configuration and the LS might be skipping the semantic validation - in your experience?
We are also seeing that testing the LS in Eclipse is also not triggering our customer semantic validation. So that points to a problem/configuration in the generation of the LS and not VSCode specifically.
Xtext 2.31 and LSP4J 0.21.0
[Updated on: Tue, 12 March 2024 16:34] Report message to a moderator
|
|
|
|
Powered by
FUDForum. Page generated in 0.04532 seconds