Question

I'm using Eclipse 3.5 with the FreeMarker template plugin, and it's showing me a syntax validation problem that I don't care to see.

How do I turn this validation off, or possibly downgrade this template error to a warning? In previous versions of Eclipse, I'd probably look under Window -> Preferences -> Validation, but I don't see that in 3.5.

UPDATE: For the record, the error I'm getting is this:

Error in template: foo.ftl on line 16, column 9 noescape with no matching escape encountered. in foo.ftl

Was it helpful?

Solution

As far as I know, the Freemarker plugin (assuming you use the one from JBoss Tools) shows syntax errors and those ones - just like java syntax errors in the java editor - cannot turn off or "downgrade". Basically it means that the Freemarker parser cannot parse your template.

Window / Preferences / Validation are not in the "core" Eclipse, you need to install the web tools to get the Validation page. However, you cannot set Freemarker syntax validation options there.

OTHER TIPS

I had a similar syntax error issue and kept getting the red X mark on my freemarker template file. The solution was to replace the old freemarker.jar which did not support the new syntax... in my case it was in ...eclipse\plugins\org.visigoths.freemarker_2.3.2

After restarting eclipse, I had to open the .ftl file once so that it would be re-validated and the syntax error disappeared.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top