Not totally sure if this is the right forum for this question, but since I'm attempting to add a module to the intellij-community source it probably fits.
Anyways, so I have the project opened already. The attached pictures show the some of steps I go through to do this.
The trouble comes when I attempt to create a new module.
Say I create a new module called "foo" (I go to structure view, right click on an existing module group > click add > > "new module"). This seems to get done correctly, and it creates the expected module in the project pane with a source root folder (in blue) called "src":
Then I right click the src folder and select "Java package". I then type "biz.bar.baz" and press enter. Once I do I get this:
That is, it collapses my packages into the src folder! I expected to see the blue "src" folder, then "bar.baz.biz" under it. This goes on when I create a new file as well:
It treats the module and src directory as if they are packages! what's going on here? I tried this in a default empty project and it didn't do this.. I haven't tried messing with .iml files and would prefer not to (as these are for the IDE, as I understand it). So is there some intricacy to creating new modules in the context of the large "intellj-community" project that I'm missing here?
I can attach more details/pictures of the entire process I used as needed. Am I going crazy here?