Run button is greyed out – intellij April 8, 2024 by Tarik I had the same issue and fixed it with the old “Invalidate Caches and Restart”