Why doesn't Compile work? (Ctrl + Shift + F9)

Hi Folks,

I've been through many discussions and have not seen this issue raised. When I use IDEA's built-in ant executable to build my project it runs fine, and sometimes when I issue a compile command using Ctrl + Shift + F9 and then reload my changed classes that works fine too.

However, often there are times when Compile fails that IDEA complains about not being able to find classes. Most of the time these classes are in the same package or in packages very near to the one that I'm trying to recompile. I have followed the advice of rebuilding my project before issuing a compile command, but that only makes the problem worse because then it complains about not being able to find hundreds of classes.

The project that I'm working on is admittedly ancient and decrepit and I'm sure there are some unresolved dependencies in places that I never work on. I just want to know why recompiling a class in com.conhugeco.util can't find another class in com.conhugeco.util, forcing me to shut down my server, rebuild with ant, and then restart my server.

For what it's worth, I'm using Idea 8.1.2 on Ubuntu 9.04. The JVM I'm using for my project is 1.5.0_19-b02.

Thanks,

Ben Summers

0
1 comment
Avatar
Permanently deleted user

I should learn to lurk more. I found my answer through some more google-fu and this thread from these forums:

http://www.jetbrains.net/devnet/message/771896

I should have run Make Project first. This was not clear to me. The compiler did not like the darkest corners of my project I mentioned above that I don't work on anyway, so I just excluded all of those from compilation and I now have a happy Ctrl + Shift + F9.

0

Please sign in to leave a comment.