Skip to content

[VS Code Extension] Transit Nodes gives turbo:no-such-task error #8577

@jeniabrook

Description

@jeniabrook

Verify canary release

  • I verified that the issue exists in the latest Turborepo canary release.

Link to code that reproduces this issue

n/a

What package manager are you using / does the bug impact?

pnpm

What operating system are you using?

Mac

Which canary version will you have in your reproduction?

n/a

Describe the Bug

Setting a transit node in the turbo.json file:

"tasks": {
  "topology": {
    "dependsOn": ["^topology"]
  }
}

Raises an error:

The task `topology` does not exist. (turbo:no-such-task)

Screenshot from VS Code:
Screenshot 2024-06-23 at 18 57 26

Expected Behavior

Add a whitelist for the extension that will ignore those special tasks:

"turbo.transitNodes": ["topology"]

Or maybe to detect it automatically (not sure if possible).

To Reproduce

  1. Install Turborepo LSP v1.1.3
  2. Install turborepo v2.0.4
  3. Create in turbo.json a transit node

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind: bugSomething isn't working

    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