[英]Eclipse 2020 language server for JS is showing error on thymeleaf to javascript variables
After upgrade from Eclipse 2019 to Eclipse 2020-03 I'm getting Markers: 'Language Server Error' on codes of thymeleaf to javascript variables. After upgrade from Eclipse 2019 to Eclipse 2020-03 I'm getting Markers: 'Language Server Error' on codes of thymeleaf to javascript variables. I still can run the code but the problem is these annoying messages.
我仍然可以运行代码,但问题是这些烦人的消息。
I've tried to disable Eclipse language server preferences but nothing change.我尝试禁用 Eclipse 语言服务器首选项,但没有任何改变。
For example, in a thymeleaf HTML file:例如,在 thymeleaf HTML 文件中:
<script th:inline="javascript">
// thymeleaf to javascript variables
var txSiglaUsina = [[${usina.txSigla}]];
var idUsina = [[${usina.id}]];
var cfgsVazaoSanitariaRef = [[${vazaoSanitariaRef}]];
var contextPath = [[@{/}]];
var blHoraCheia = false;
</script>
I got this Eclipse Markers errors:我得到了这个 Eclipse 标记错误:
Thanks;)谢谢;)
The answer is disabling Eclipse Language Server on: Windows > Preferences > Language Server.答案是在 Windows > 首选项 > 语言服务器上禁用 Eclipse 语言服务器。
As I wrote above I've tried that but nothing change, only after editing and saving the file the erros Markers finally disapear.正如我在上面写的那样,我已经尝试过了,但没有任何改变,只有在编辑和保存文件之后,错误标记才最终消失。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.