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

Task Panel Doesn't Show Any Tasks #1218

Open
PytatoDuck opened this issue Dec 2, 2024 · 2 comments
Open

Task Panel Doesn't Show Any Tasks #1218

PytatoDuck opened this issue Dec 2, 2024 · 2 comments
Assignees

Comments

@PytatoDuck
Copy link

Describe the bug

I just made a fresh Fresh Deno project, and in the task panel I don't see any task. But with the CLI, I can see and run them.
In #991 I see it been solved, but I got the same problem. Also, on Linux it works so a Windows problem.

I'm on deno 2.1.2 (release, x86_64-pc-windows-msvc) | vscode_deno 3.42.0 | vscode 1.95.3.

To Reproduce

  1. Open a Deno Project.
  2. Go to the task panel.

Expected behavior
See task in the Task Panel.

Details

In the CLI, it works all good.
Screenshot 2024-12-02 201902

But the Task panel is empty.
Screenshot 2024-12-02 202029

If I run Deno: Run Task from the command panel, I get this
Screenshot 2024-12-02 202256
Screenshot 2024-12-02 202225

Which I thought it might mean I don't have a Deno project open, but I do
Screenshot 2024-12-02 204207


And here is the deno.json file, as fresh as it can get.

{
  "lock": false,
  "tasks": {
    "check": "deno fmt --check && deno lint && deno check **/*.ts && deno check **/*.tsx",
    "cli": "echo \"import '\\$fresh/src/dev/cli.ts'\" | deno run --unstable -A -",
    "manifest": "deno task cli manifest $(pwd)",
    "start": "deno run -A --watch=static/,routes/ dev.ts",
    "build": "deno run -A dev.ts build",
    "preview": "deno run -A main.ts",
    "update": "deno run -A -r https://fresh.deno.dev/update ."
  },
  "lint": {
    "rules": {
      "tags": [
        "fresh",
        "recommended"
      ]
    }
  },
  "exclude": [
    "**/_fresh/*"
  ],
  "imports": {
    "$fresh/": "https://deno.land/x/[email protected]/",
    "preact": "https://esm.sh/[email protected]",
    "preact/": "https://esm.sh/[email protected]/",
    "@preact/signals": "https://esm.sh/*@preact/[email protected]",
    "@preact/signals-core": "https://esm.sh/*@preact/[email protected]",
    "$std/": "https://deno.land/[email protected]/"
  },
  "compilerOptions": {
    "jsx": "react-jsx",
    "jsxImportSource": "preact"
  }
}
@nayeemrmn
Copy link
Collaborator

Can you share your deno.xxx settings?

FYI the Deno: Run Task command is for running the task your cursor is on in the deno.json, that's behaving as expected.

@PytatoDuck
Copy link
Author

PytatoDuck commented Dec 3, 2024

Where would I find the deno.xxx settings (I thought that was the deno.json file)

Here is the .vscode\settings.json

{
  "deno.enable": true,
  "deno.lint": true,
  "editor.defaultFormatter": "denoland.vscode-deno",
  "[typescriptreact]": {
    "editor.defaultFormatter": "denoland.vscode-deno"
  },
  "[typescript]": {
    "editor.defaultFormatter": "denoland.vscode-deno"
  },
  "[javascriptreact]": {
    "editor.defaultFormatter": "denoland.vscode-deno"
  },
  "[javascript]": {
    "editor.defaultFormatter": "denoland.vscode-deno"
  }
}

And .vscode\extensions.json

{
  "recommendations": [
    "denoland.vscode-deno"
  ]
}

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

No branches or pull requests

2 participants