redhat-developer / redhat-developer/vscode-java
incompatible with flatpak: The java.home variable defined in VS Code settings points to a missing folder
Nobody has claimed this yet.
- 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
- [step 1]
install flatpak: https://flatpak.org
install vscode from: https://flathub.org/apps/details/com.visualstudio.code - [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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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