redhat-developer / redhat-developer/vscode-java

incompatible with flatpak: The java.home variable defined in VS Code settings points to a missing folder

Open
#510 11 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

runtime
Dominant language
TypeScript
Stars
2.3k
Forks
546
Avg merge
20h 1m
Merged PRs (30d)
11

Description

[vscode installed by flatpak can not access JAVA_HOME]

I'm not sure is this a bug of vscode-java or flatpack.
Note: flatpak run vscode in a isolated environment.

Environment
  • Operating System: Ubuntu 18.04 X86_64
  • JDK version: oracle JDK 1.8
  • Visual Studio Code version:
  • Java extension version:
Steps To Reproduce
  1. [step 1]
    install flatpak: https://flatpak.org
    install vscode from: https://flathub.org/apps/details/com.visualstudio.code
  2. [step 2]
    install vscode-java and set correct JAVA_HOME/java.home
    try to open/run java code

[attach a sample project reproducing the error]
attach logs

Current Result

The java.home/JAVA_HOME variable defined in VS Code settings points to a missing folder

Expected Result

run normal without error.

Additional Informations

JAVA_HOME=/usr/lib/jvm/java-8-oracle

Every thing is OK when run vscode which is installed by .deb file (download from https://code.visualstudio.com/docs/setup/linux).

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No source file or test is identified. Reproduce the issue with the Flatpak VS Code installation, vscode-java, and the stated JAVA_HOME/java.home setting; compare it with the .deb installation and verify completion when Java opens or runs without a missing-folder error.

Written by the indexing model from the issue text.

Assessment

Tech stack
java, typescript, vscode
Domain
developer-experience, tooling
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.