thymeleaf / thymeleaf-extras-eclipse-plugin

Thymeleaf integration plugin for the Eclipse IDE
http://www.thymeleaf.org
Apache License 2.0
132 stars 30 forks source link

Latest Eclipse is showing errors on javascript thymeleaf items #98

Open rstubbe opened 4 years ago

rstubbe commented 4 years ago

Since the last version of Eclipse all the thymeleaf inline components in the the javascipt are shown as an error. The code is correct and works fine.

for example:

    <script th:inline="javascript">
        $(document).ready(function() {
            /*<![CDATA[*/ var context = [[@{/}]]; /*]]>*/

The hint shows

Multiple annotations found at this line:
    - Declaration or statement expected.
    - Property assignment expected.
    - Expression or comma expected.
    - Unterminated regular expression literal.
    - Expression expected.
    - Experimental support for decorators is a feature that is subject to change in a future release. Set the 'experimentalDecorators' option in your 'tsconfig' or 'jsconfig' to remove this 
     warning.

and in the problem tab:

Description Resource    Path    Location    Type
',' expected.   contract.html   /set/src/main/webapp/WEB-INF/templates/fragments    line 1450   Language Servers