redhat-developer / redhat-developer/vscode-quarkus

Error when run build task inside a Dev Container

Open
#948 0 comments 0 reactions 0 assignees View on GitHub

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

  1. mkdir 1
  2. cd 1
  3. quarkus create app org.acme:getting-started --extension=rest
  4. code .
  5. Open Command Palette
  6. Run "Dev Containers: Add Dev Container Configuration Files..." and generate a .devcontainer/devcontainer.json
  7. Run "Dev Containers: Rebuild and Reopen in Container"
  8. Install Quarkus extension in the Dev Container
  9. Run "Quarkus: Debug current Quarkus project"
  10. The task failed to execute with the following error:
    "The terminal process failed to launch: Starting directory (cwd) "/getting-started" does not exist."
Image

Workaround

Change the value of options.cwd in tasks.json from "getting-started" to "${workspaceFolder}/getting-started".

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

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.