Java: Create Java Project fails in empty workspace because terminal launch is blocked
- Dominant language
- TypeScript
- Stars
- 193k
- Forks
- 42.4k
- PR merge metrics
- PR metrics pending
Description
Does this issue occur when all extensions are disabled?: Yes/No
no - it needs the Java Extension Pack
- VS Code Version: 1.134.0
- OS Version: MacOS 27
Description:
When a new VS Code window is opened with no folder/workspace, the command “Java: Create Java Project” (via Maven archetype) fails before project generation begins. The command requires the terminal but the terminal cannot be launched, and VS Code reports:
```
The terminal process failed to launch: Cannot launch a terminal process in an empty workspace with cwd /Users/alvin/stuff/dev/-test different from userHome /Users/alvin.
```
I think the guard is an error in this case because an obvious action that a user wants to perform after creating a new window is to create a new project. The guard prevents that.
Steps to Reproduce:
1. Open a new VS Code window with no folder/workspace
2. Run “Java: Create Java Project”
3. Select the "Maven" option, then "More" to select the archetype.
4. (!) Answer the questions and try to create the project. Project creation fails with the above error.
Contributor guide
Assessment
This issue has not been assessed yet.