So I am completely out of ideas here. I am developing within an Ubuntu 20.04.4 Docker container on a windows machine. The project is maintained in Gitlab, and when developing within my Windows env, ie not inside the container, the project is identified correctly. For some reason, inside the container, the project will not be identified as a java project. I have the java extension pack, tried new containers, deleted and re-installed VScode, deleted and reinstalled Docker, cleared the app/temp data for each project, reset/cleared the java server, tried various JDK/JRE within the container, and quite a few other things I am likely forgetting. The issue is clearly something within the container env, but I just have no idea what it could be? Looking for ideas on where to look/what to try.
A small example of the problem:
public class QuickStartApplication{
public static void main(String[] args) throws Exception {
new QuickStartApplication().run();
}
For the above, I would get the error stating "Error: Main method not found in the file, please define the main method as: public static void main(String[] args)"
I have tried the solutions from similar problems here: Why intelij does not recognize java project?
neither of which resolves the issue.