redhat-developer / redhat-developer/vscode-quarkus
Error when run build task inside a Dev Container
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 79
- Forks
- 31
- Avg merge
- 12h 51m
- Merged PRs (30d)
- 6
Description
Summary
When using a Dev Container or a remote environment, if a Quarkus project is located in a subdirectory, the tasks in the launch.json file generated by the Quarkus extension fail to execute.
Repro steps
mkdir 1cd 1quarkus create app org.acme:getting-started --extension=restcode .- Open Command Palette
- Run "Dev Containers: Add Dev Container Configuration Files..." and generate a
.devcontainer/devcontainer.json - Run "Dev Containers: Rebuild and Reopen in Container"
- Install Quarkus extension in the Dev Container
- Run "Quarkus: Debug current Quarkus project"
- The task failed to execute with the following error:
"The terminal process failed to launch: Starting directory (cwd) "/getting-started" does not exist."
Workaround
Change the value of options.cwd in tasks.json from "getting-started" to "${workspaceFolder}/getting-started".
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 issue with the listed Dev Container steps, then inspect the generated launch.json and tasks.json, especially options.cwd. Confirm the fix by checking that the generated task uses the workspace-relative project path and that “Quarkus: Debug current Quarkus project” runs successfully inside the container.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript, vscode
- Domain
- devtools
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100