I have a rust project that I haven't worked on in months. cloned it under WSL (Ubuntu 20.04). tasks.json file below. Tried to build in VSCode. ctrl+shift+b / Terminal -> Run Build Task... did nothing. Terminal -> Run Task... showed cargo check and cargo build tasks from tasks,json, but selecting either gives the "There is no task provider registered for tasks of type "cargo"." error.
Installed rust + vscode rust extension in windows, cloned my repo there and tried to build but had the same issue.
Versions:
VSCode v1.49.2
VSCode rust-lang.rust Extension v0.7.8
rustup 1.22.1 (b01adbbc3 2020-07-08)
stable-x86_64-unknown-linux-gnu on WSL
stable-x86_64-pc-windows-msvc on Windows
rustc 1.46.0 (04488afe3 2020-08-24)
cargo 1.46.0 (149022b1d 2020-07-17)
tasks.json:
{
// See https://go.microsoft.com/fwlink/?LinkId=733558
// for the documentation about the tasks.json format
"version": "2.0.0",
"tasks": [
{
"label": "cargo check",
"type": "cargo",
"subcommand": "check",
"problemMatcher": [
"$rustc"
],
"group": {
"kind": "build",
"isDefault": true
}
},
{
"label": "cargo build",
"type": "cargo",
"subcommand": "build",
"problemMatcher": [
"$rustc"
],
"group": "build",
}
]
}
After manually installing rls, rust-analysis and rust-src on windows, extension tasks started to work. Installing those components on WSL did not resolve the issue
I have a rust project that I haven't worked on in months. cloned it under WSL (Ubuntu 20.04). tasks.json file below. Tried to build in VSCode. ctrl+shift+b / Terminal -> Run Build Task... did nothing. Terminal -> Run Task... showed cargo check and cargo build tasks from tasks,json, but selecting either gives the "There is no task provider registered for tasks of type "cargo"." error.
Installed rust + vscode rust extension in windows, cloned my repo there and tried to build but had the same issue.
Versions:
tasks.json: