Home > Enterprise >  Why is my Java project not found in my workspace (Visual Studio Code)?
Why is my Java project not found in my workspace (Visual Studio Code)?

Time:05-27

My Java extensions do not seem to be able to actually recognize my project as a Java project. As a result, my project management, linter and formatter extensions do not work.. I use the Java extension pack from Microsoft along with the Java language support extension by Red Hat.

enter image description here

enter image description here

It might have something to do with the fact that I renamed my package from 'productestservice' to 'producttestservice'. I tried an answer from a related thread, which is to 'clean the Java language server workspace'. Unfortunately, this did not solve the issue.

enter image description here

CodePudding user response:

You can install the enter image description here

CodePudding user response:

It turns out that a folder named 'postgres-data' (generated from my PostgreSQL database) has strict permissions that disallowed my project manager extension to scan my project. A workaround is to run chmod 777 -R postgres-data.

  • Related