Intellij-Community source compile errors
Hi all,
I have been trying to learn a bit about plugin development recently and I've been trying to follow all the written documentation that there is, but I can't seem to get a working - at least compiling - version of the source code going.
Once I check out the sources from github, I open the project (intellij-community) in Intellij, (tried both versions 13 and 14). Set up my SDK as my installation directory (IDEA JDK) and all seems ok until I try to build it. I get failures in StringUtilTests for equalsIgnoreWhiteSpaces and stringHashCodeIgnoreWhiteSpaces:
Error:(239, 26) java: /Users/tcasper/intellij-plugins/intellij-community/platform/util/testSrc/com/intellij/util/text/StringUtilTest.java:239: cannot find symbol
symbol : method equalsIgnoreWhitespaces(<nulltype>,<nulltype>)
location: class com.intellij.openapi.util.text.StringUtil
If I play around and comment out those methods, I get more compilation errors as I move further down the rabbit hole...
So, I guess my question is...Has anyone else perhaps dealt with/solved these issues here? I would assume that the master branch should compile out of the box? Can anyone see anything I might be doing wrong? Anyways, thanks for taking the time to check out my post!
-TomC
Please sign in to leave a comment.
make sure to use newest JDK 1.6 or 1.7
Thanks for the reply, but I have tried every jdk from 1.6 to 1.8. i.e. using them as the underlying jdk for the IdeaJDK location.
The "IDEA jdk" assigned to compile IntelliJ IDEA needs to be a regular Java SDK (version 1.6 or higher), not an IntelliJ IDEA SDK.
Holy crap! I am such a dumbass :8}...I must have had that confused then!
THANKS Dmitry!!! I am re-energized now :D
Everything's compiling fine...moving on...