redhat-developer / redhat-developer/vscode-java
Unable to create a new Java class
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 2.3k
- Forks
- 546
- Avg merge
- 20h 1m
- Merged PRs (30d)
- 11
Description
Attempting to create a new Java class in the File Explorer is failing. Nothing happens.
Version: 1.99.1
Commit: 7c6fdfb0b8f2f675eb0b47f3d95eeca78962565b
Date: 2025-04-04T15:58:59.624Z
Electron: 34.3.2
ElectronBuildId: 11161073
Chromium: 132.0.6834.210
Node.js: 20.18.3
V8: 13.2.152.41-electron.0
OS: Linux x64 6.8.0-1024-aws snap
Language Support for Java Extension, v 1.41.1
I have an existing Maven project, and I am attempting to create a new Java class in an existing folder to contain a new test.
Steps
- Right click the existing package / folder in the src/test part of explorer
- Select New Java File / Class
- Enter the name of the class at the top of the page and press Enter
Nothing happens. No file is created.
I did see this output in the Extension Host output, but I don't know if it's relevant or not.
2025-04-11 10:38:33.867 [error] SystemError: A system error occurred: uv_os_get_passwd returned ENOENT (no such file or directory)
at userInfo (node:os:365:11)
at /home/me/.vscode/extensions/vscjava.vscode-java-dependency-0.24.1/dist/extension.bundle.js:2:457104
at Generator.next ()
at /home/me/.vscode/extensions/vscjava.vscode-java-dependency-0.24.1/dist/extension.bundle.js:2:454747
at new Promise ()
at r (/home/me/.vscode/extensions/vscjava.vscode-java-dependency-0.24.1/dist/extension.bundle.js:2:454492)
at /home/me/.vscode/extensions/vscjava.vscode-java-dependency-0.24.1/dist/extension.bundle.js:2:456814
at /home/me/.vscode/extensions/vscjava.vscode-java-dependency-0.24.1/dist/extension.bundle.js:2:458044
at Generator.next ()
at o (/home/me/.vscode/extensions/vscjava.vscode-java-dependency-0.24.1/dist/extension.bundle.js:2:454549)
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
Reproduce the failure by using New Java File / Class from an existing Maven project's src/test folder, then inspect the Extension Host output for the reported uv_os_get_passwd error and the vscjava.vscode-java-dependency extension bundle. Done means the entered class name creates the expected Java file in the selected package.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java, typescript, vscode
- Domain
- devtools
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100