Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when run build task inside a Dev Container #948

Open
levi106 opened this issue Feb 6, 2025 · 0 comments · May be fixed by #949
Open

Error when run build task inside a Dev Container #948

levi106 opened this issue Feb 6, 2025 · 0 comments · May be fixed by #949

Comments

@levi106
Copy link

levi106 commented Feb 6, 2025

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".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant