Skip to content

Error when run build task inside a Dev Container #948

@levi106

Description

@levi106

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions