Today I was using XTemplates and stumbled upon a fairly harsh error:
[ERROR] [mockup] - Errors in 'generated://5024447DD15A3A8D9ED11B1F09E77F17/mockup/client/view/NewsTemplate_render_SafeHtml__NewsItem_item___SafeHtmlTemplates.java'
[ERROR] [mockup] - Line 7: String literal is not properly closed by a double-quote
I made a very simple html fragment: (named newstemplate.html)
And it worked like it should, no problem there.
So I went back and forth trying to find out what I did wrong in the .html file.
While being spammed with (similar) errors from maven:
[INFO] [ERROR] Line 30: Failed to resolve 'x.mockup.client.view.NewsTemplate_rend
er_SafeHtml__NewsItem_item___SafeHtmlTemplates' via deferred binding
[INFO] [ERROR] Errors in 'C:\Data\Java\WorkspaceGWT\mockup\target\.generated\x\mockup
[INFO] [ERROR] Line 7: The annotation @SafeHtmlTemplates.Template is disallowed for this loca
[INFO] [ERROR] Line 7: String literal is not properly closed by a double-quote
[INFO] [ERROR] Line 8: span cannot be resolved to a type
I took a look at the generated file as indicated by Maven and received something like:
Thanks for this - we've seen one other report of this, and so far it seems specific to windows users, as on windows, newlines are typically /r/n, not just /n. Can you confirm that you are using Windows, or the developer who wrote that template was?