I just had this problem, I accidentally dragged and dropped a package into the gen folder. This set a flag on the package as derived. When I copied back it still existed, and affected all the sub files.
I just right click on package, properties and unticked Derived, and problem solved.