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

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

Open
1 task done
jeniabrook opened this issue Jun 23, 2024 · 1 comment
Open
1 task done

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

jeniabrook opened this issue Jun 23, 2024 · 1 comment
Labels
kind: bug Something isn't working needs: triage New issues get this label. Remove it after triage owned-by: turborepo

Comments

@jeniabrook
Copy link
Contributor

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

@jeniabrook jeniabrook added kind: bug Something isn't working needs: triage New issues get this label. Remove it after triage owned-by: turborepo labels Jun 23, 2024
@aryanprince
Copy link

aryanprince commented Jul 27, 2024

I have the same issue with a Turborepo using pnpm workspaces on a Mac. The error makes sense cus Transit Nodes have to use the name of a script that does not exist anywhere in the project as mentioned here.

Hoping some sort of whitelist behavior could be added like @jeniabrook mentioned.

Alternatively, it would be nice if we had a certain keyword like transit or topo as a fixed Transit Node name for everyone - as it currently seems too 'vague' to have any random keyword as the Transit Node task name.

For context, this was still an issue with the latest versions - turbo v2.0.9 and the Turborepo LSP VSCode Extension v2.0.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind: bug Something isn't working needs: triage New issues get this label. Remove it after triage owned-by: turborepo
Projects
None yet
Development

No branches or pull requests

2 participants