docker / docker/vscode-extension

Bake code lens tasks causes errors to be printed

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

Nobody has claimed this yet.

bake
Dominant language
TypeScript
Stars
59
Forks
23
PR merge metrics
No merged PRs in 30d

Description

If I click on the "Print" code lens it will print to the terminal but I see there are also some error messages in the Output view.

target "a" {
    args = {
        var = "value"
    }
}
Error: the task 'docker-vscode-extension: docker buildx bake' neither specifies a command nor a dependsOn property. The task will be ignored. Its definition is:
{
    "type": "shell",
    "id": "shell,docker,buildx,bake,--print,a,",
    "problemMatcher": [],
    "label": "docker-vscode-extension: docker buildx bake"
}
Error: the task 'docker-vscode-extension: docker buildx bake' neither specifies a command nor a dependsOn property. The task will be ignored. Its definition is:
{
    "type": "shell",
    "id": "shell,docker,buildx,bake,--print,a,",
    "problemMatcher": [],
    "label": "docker-vscode-extension: docker buildx bake"
}

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

Start by reproducing the issue with the provided HCL target and the “Print” code lens in Visual Studio Code. Trace the code-lens task generation and inspect why the generated shell task has neither a command nor a dependsOn property. Done means clicking “Print” still prints the bake output without the task errors appearing in the Output view.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
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.