Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Always show "No project detected yet." #3285

Open
lruihan opened this issue Sep 12, 2023 · 1 comment
Open

Always show "No project detected yet." #3285

lruihan opened this issue Sep 12, 2023 · 1 comment

Comments

@lruihan
Copy link

lruihan commented Sep 12, 2023

Always show "No project detected yet."
image

Environment
  • Operating System: Linux
  • JDK version: openjdk 17.0.8.1 2023-08-24
  • Visual Studio Code version: 1.82.0
  • Java extension version: v0.25.2023091107
Steps To Reproduce

settings.json:
{
"java.configuration.runtimes": [
{
"name": "JavaSE-1.8",
"path": "/usr/lib/jvm/java-8-openjdk-amd64",
"default": true
}
],
"java.configuration.updateBuildConfiguration": "automatic",
"java.debug.settings.onBuildFailureProceed": true,
"java.jdt.ls.java.home": "/usr/lib/jvm/java-17-openjdk-amd64"
}

JDKs:
There are 2 choices for the alternative java (providing /usr/bin/java).

Selection Path Priority Status

  • 0 /usr/lib/jvm/java-17-openjdk-amd64/bin/java 1711 auto mode
    1 /usr/lib/jvm/java-17-openjdk-amd64/bin/java 1711 manual mode
    2 /usr/lib/jvm/java-8-openjdk-amd64/jre/bin/java 1081 manual mode

Previously I didn't have this issue, not sure whether caused by vscode upgrade:-)

@snjeza
Copy link
Contributor

snjeza commented Sep 12, 2023

@lruihan Could you try to remove or comment

"java.jdt.ls.java.home": "/usr/lib/jvm/java-17-openjdk-amd64"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants