since this is almost the only place where I could find an exact description of the problem that I encountered with Idea, I answer, even if this is an old question.
It turns out that if the .java file generated by the protocol buffer compiler is larger than 2.5 MB (by default), Idea completely ignores it. Even if there is a .class file, even if compiled / done successfully, even if you create a project just fine with Maven.
To fix this, simply edit the idea.properties file (it is inside the bin folder in the Idea installation folder) and either comment out this parameter or set it to something larger than your generated .java file (in my case, I set it to 15000 , since my generated file currently has a size of about 8 MB):
#---------------------------------------------------------------------
Note : at least on Linux, where the default update policy seems to βoverwrite the old Idea folder with what you just downloaded,β this change should be applied after each update / update.
source share