I have created a "banner.txt" file in my spring boot application to customize the banner. Eclipse is validating it (marker is from "lsp4e") for unknown reason, i can't find an entry for text file in preferences -> validation.
The error is Expecting a 'Map' but found a 'Scalar'
The complete text file is marked red (it contains just ASCII art similar to spring's banner)
How to disable validating txt files?
So the recommended fix is to simply disable the validation check on Eclipse. Go to “Project->Properties->Validation”. Click “Configure Workspace Settings…”. Unselect options for JSP Syntax Validator.
So the recommended fix is to simply disable the validation check on Eclipse. Go to “Project->Properties->Validation”. Click “Configure Workspace Settings…”.
LSP4E in Eclipse IDE: more for Language (and debug) Servers! With Eclipse Photon, the Eclipse ecosystem has consolidated its adherence to decoupled development tools, relying on Language Server Protocol and others.
Go to window > preferences search for validations (it is not under any menu) > scroll down for wsdl and uncheck the wsdl in the list see the screenshot like below. It's worth noting that you may need to right click the project and select "Validate" to get Eclipse to notice that validation has been turned off and actually remove the errors.
This seems to happen when YAML validation is applied to the text files by associating text editors with specific files. In my case there were 2 language servers that would mess things up: BOSH and Concourse (You may have more or less). The simplest way is to go to Preferences->Language Servers
and uncheck anything that has these 2 names. Then select your file and do Window->Show View->Problems
, right click on the error in the Problems
view and delete it.
I'm not sure about implications of disabling these 2 language servers but I'm not interested in the files these seem to be associated with and so far haven't run into any troubles
P.S. These two (Concourse and BOSH) are part of Spring Suit installation that deal with pipelines and tasks. I ended up uninstalling these two
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With