Freemarker autocomplete no longer works
Answered
Hi
Currently using InteliJ 2019.3.3 on a Mac running Catalina 10.15.3 and the autocomplete for freemarker has stopped working, this issue first raised its head a couple of releases bac around 2019.3 I kind of assumed it would get fixed in subsequent releases but it is still an issue.
Can anyone tell me if there is a way to switch it back on, or potentially help me investigate it as a bug, I have searched through the settings for anything obvious using "freemarker", "autocomplete" and "code complete" and derivatives for a property and cannot find one.
Thanks for your help
Please sign in to leave a comment.
Working for me:
https://i.imgur.com/k6jFcnX.png
Please check the following:
1. The file is recognized as FTL (when the file is focused in the project view, press "quick documentation" shortcut): https://i.imgur.com/4kNX4ro.png
2. IntelliJ IDEA FreeMarker bundled plugin is enabled: https://i.imgur.com/93Lqr1s.png
Please note that FreeMarker is supported in Ultimate version only.
The files is definitely set up as freemarker and the freemarker plugin is enabled and it does auto complete the freemarker tags so as a for instance it will give me a list of available tags when I type <#
However given an entry like this:
I would expect ${leadInPrice.} to give me a list of fields or ? to give me a list of mixins and it doesnt
Does that explain it more succinctly
Do you have any errors about the unresolved type?
Please try adding the module into the class as a library, see https://intellij-support.jetbrains.com/hc/en-us/community/posts/206805835-Freemarker-ftlvariable-does-not-work-
Share a project example in case it is still not working:
https://intellij-support.jetbrains.com/hc/en-us/articles/206869619-Uploading-Large-Files-for-JetBrains-Support-Team
The project is a gradle project thus the libraries classes and dependencies are set up by gradle:
The flt files are in the resources folder and the classes I am looking for expansions on are in the java compilation unit for the sub project so I doubt it cant see the java classes although nothing is impossible.
Creating a project which shows this is overkill, can we screen share, I can happily send you a link and share the screen if it helps find the issue
Thanks
Chris
Hi Konstantin
This problem persists and gets worse, with time, I suspect it is something toto with the gradle multi project build, is it possible for me to share in private access to the repository so you can see the issue for yourself.
To give you and idea I am using a brand new MacPro with lots of processor and memory so its not my machine. It takes circa ten seconds to look up anything in freemarker and often 30 seconds plus to analyse the file following a change. I have disabled almost every plugin possible and given inteliJ 16Gb ram to play with.
Thanks
Chris
> private access to the repository so you can see the issue for yourself.
You can download sources and share them privately via https://uploads.jetbrains.com/, or by creating a new YouTrack issue with restricted access: https://youtrack.jetbrains.com/newIssue?project=IDEA
Btw, it is not recommended to give more than 4Gb as Xmx value to prevent Garbage collector to work constantly.