README
August 22, 2015 ยท View on GitHub
PLUGIN AUTHOR Matveev Nikolay
CONTRIBUTOR Travis Cripps
USEFUL LINKS:
- Protocol Buffers brief and only documentation - https://developers.google.com/protocol-buffers/
CONFIGURE DEVELOPMENT
- Set 'IDEA sdk' as the name of the project IDEA plugin SDK
- Project Java language level is 1.6
HOW TO compile plugin:
- Just add idea.jar to your IDEA SDK classpath(justification of it you can find in AUTHOR NOTE#4)
AUTHOR NOTES:
- Protocol Buffers language haven't any reserved keywords, thus I have to be tricky in some places.
- [protobuf.lang.psi.impl.reference.PbRefImpl:355:21] Using LightCodeFixtureTextCase leads to problems with temp directory, thus I have to use such hack to make method works both in real and test mode.
- Plugin is idea.jar-dependent, because it uses very useful implementation of PsiElement - ASTWrapperPsiElement, testing of plugin bases on class LightCodeInsightFixtureTestCase extending UsefulTestCase in idea.jar and several not so important, but time-saving use cases.
KNOWN ISSUES:
-
Problems with fixing highlighting:
- While annotating I can change a color of the bold text, but cannot apply Font.PLAIN attribute(but Font.ITALIC works)
- I try to fix a lot of highlighting misses, but in some cases it is still incorrect. For example if anybody creates enum with enum constant named "true" and then specified it as a option value. I believe that it is exotic.
-
Compiler: I don't know how compiler will behave if the "output source directory" located separate from project
-
a lot of to do in the code...
CONTRIBUTION AND PLUGIN WRITING STUDY All sources are available on http://github.com/nnmatveev/idea-plugin-protobuf License is absent. To contact author use the github mailbox.