Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Eclipse how to disable validation for txt file (lsp4e)

Tags:

eclipse

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?

like image 868
dermoritz Avatar asked Aug 06 '19 13:08

dermoritz


People also ask

How to disable JSP syntax validator in Eclipse?

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.

How to fix eclipse validation check not working?

So the recommended fix is to simply disable the validation check on Eclipse. Go to “Project->Properties->Validation”. Click “Configure Workspace Settings…”.

What is lsp4e in Eclipse IDE?

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.

How to turn off WSDL validation in Eclipse?

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.


1 Answers

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

like image 97
Bostone Avatar answered Sep 23 '22 14:09

Bostone