Element/Attribute completion cache not cleared after updating plugin
For example, recently when editing a Visualforce page and specifying attributes on <apex:page> tag the lightningStylesheets attribute did not auto-complete as it does in Developer Console.
Update Nov 4, 2017 Per Scott's recommendation, focused mouse on an attribute of <apex:page> tag then pressed Ctrl+B
(Windows) / Cmd+B
(Mac) which opened up the XSD for completions. This updated the completions such that when I navigated back to the Visualforce page editor then lightningStylesheets autocompleted as expected.
Comments (4)
-
repo owner -
reporter Thanks for the tip for Ctrl+B/Cmd+B that did the trick!
-
reporter - changed component to Completion
- edited description
- changed title to Element/Attribute completion cache not cleared after updating plugin
Changed component to Completion as the Visualforce editor was only a symptom of the main issue. Also updated the title/description to better reflect the main issue as identified by Scott.
-
repo owner - changed status to resolved
I'm pretty sure that was (finally!) resolved a couple of builds back thanks to a pointer from JetBrains on how to force their XSD cache to expire when a project is opened.
- Log in to comment
So this is a side-effect of a behavior in IntelliJ that I haven't been able to circumvent so far. It seems to cache the XSDs I use for element/attribute completions too aggressively. If you move the cursor over any other attribute of a component that does work and pretty Ctrl+B/Cmd+B, it'll open the backing XSD. Once you do that it'll refresh some cache and the changes to that XSD will be available. Try that on anything from the apex namespace and you should see
lightningStylesheets
work properly.I'll post to the JetBrains support forums to see if there's any way I can programatically flush these caches when I update the XSD. Let me know if that doesn't get it working for you, though.