为什么我的Java项目在我的工作区(Visual Studio Code)中找不到?
我的Java扩展名似乎实际上无法将我的项目识别为Java项目。结果,我的项目管理,衬里和格式化扩展不起作用。.我使用Microsoft的Java扩展包以及Red Hat的Java语言支持扩展。
我尝试了一个相关线程的答案,即“清洁Java语言服务器工作区”。不幸的是,这并不能解决问题。
在这里是我为复制本期准备的存储库。
编辑:我发现我的语言服务器扩展无法扫描我的项目。
< img src =“ https://i.sstatic.net/tdg6u.png” alt =“在此处输入图像说明”>
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.
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.
Here is a repository that I prepared for the reproduction of this issue.
EDIT: I found out that my language server extension fails to scan my project.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
事实证明,一个名为“ Postgres-data”的文件夹(由我的PostgreSQL数据库生成)具有严格的权限,该文件不允许我的项目经理扩展程序来扫描我的项目。解决方法是运行
CHMOD 777 -R Postgres -Data
。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
.您可以安装 java for Java for Java如下所示
You can install the Project Manager for Java extension,The effect is as follows