After trying to create (and then delete) a folder in the src IDEA directory, it stopped recognizing classes and packages as directories, but earlier everything was fine.
Why is this happening and how to fix it?
UPD_0:
After trying to create (and then delete) a folder in the src IDEA directory, it stopped recognizing classes and packages as directories, but earlier everything was fine.
Why is this happening and how to fix it?
UPD_0:
You need to mark the src directory as the source of the source code https://www.jetbrains.com/help/idea/2016.2/configuring-content-roots.html Right-click on the src directory - mark directory as "sources"
The directory should be highlighted in bluish color, by analogy with the "java" directory in your module just below
Do you specify a module in the main "wizard"? If so, then try to "import" the "maven" changes into ideas. Click on the "filmstrip" icon in the bottom left-hand corner of the idea, various tabs will appear on the side, including "maven". There will be a button "Import chages" or something like that.
Source: https://ru.stackoverflow.com/questions/562310/
All Articles