2017.2 EAP and getFont*() methods in UI forms generated as source
All of the UI forms in my custom plugin are generated as source in part because otherwise things don't work properly with my obfuscator. Anyway, I try to develop the plugin against the latest-and-greatest EAP plugin SDK while doing release builds against released SDKs. All of the 2017.2 EAP builds have been generating a bunch of getFont<randomNumberHere>() methods into my form source files, and unfortunately the numbers change each time they're generated meaning that I have a ton of noise against my version control system. Is this going to be resolved before the release of 2017.2? It seems kind of hostile to plugin developers who must use have UI forms generated as source.
请先登录再写评论。
Responsible developer has fixed the problem, will be available in the next EAP.
Great. Thanks, Serge!
Hi Serge
The following method was not being generated in the earlier version (even until 172.1.5). Now it has suddenly started being generated since 172.2
Is there a reason for that?
Some of our developers are on differnet version of IJ17. So if we check these changes in, all of them will need to upgrade to the same version.
Is there a reason to have this method generated? Is there anything we can do to not have this method generated?
It's probably because of this change: IDEA-171523: change font method name to unique not dynamic name.
https://youtrack.jetbrains.com/issue/IDEA-171523
https://github.com/JetBrains/intellij-community/commit/5e9bea4241c00991af74e10a77f1b74c3fe6ba59
Yes, it's only in the most recent build that it doesn't end up polluting my code randomly. It does seem to emit stable code now. Thanks so much for following up!
The method name is stable now.. but the location of the code is not..
Every time a change is made to the file, the getFont() method moves its position. It is very frustrating for the developers in the team to revert these changes again and again
We are on IntelliJ IDEA Community Edition IC-172.3544.35
Hi Serge Baranov
Should I create a ticket for this issue?
Yes, please submit at https://youtrack.jetbrains.com/issues/IDEA.
Done. Thanks
https://youtrack.jetbrains.com/issue/IDEA-180002