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

VSCode tasks not generating #16943

Closed
ilmai opened this issue Mar 25, 2024 · 3 comments · Fixed by #16970
Closed

VSCode tasks not generating #16943

ilmai opened this issue Mar 25, 2024 · 3 comments · Fixed by #16970
Labels
A-vscode vscode plugin issues C-bug Category: bug

Comments

@ilmai
Copy link

ilmai commented Mar 25, 2024

Since the update earlier today, none of the cargo tasks in my VSCode tasks.json files are being recognized. Tasks log in VSCode is full of errors like this:

Error: The cargo task detection didn't contribute a task for the following configuration:
{
    "label": "rust: cargo build debug",
    "type": "cargo",
    "command": "build",
    "problemMatcher": [
        "$rustc"
    ],
    "group": "build"
}
The task will be ignored.

The same thing happens on two different computers in all of the projects I tested. The issue is resolved by downgrading to the previous version (0.3.1885).

rust-analyzer version: 0.3.1896

rustc version: 1.77.0

@ilmai ilmai added the C-bug Category: bug label Mar 25, 2024
@Veykril Veykril added the A-vscode vscode plugin issues label Mar 25, 2024
@obsgolem
Copy link
Contributor

obsgolem commented Mar 25, 2024

I am not positive, but this running this in the debugger it looks like it might be due to 4422a90. In particular, in buildRustTask, definition.program is undefined.

@StewMcc

This comment was marked as spam.

@SVilgelm
Copy link

See #16949

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-vscode vscode plugin issues C-bug Category: bug
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants