all-things-risingwave

How to resolve the error 'cannot find function `consume_budget` in module `tokio::task`' when building RW with `./risedev playground`?

I get the following error trying to build RW with ./risedev playground: error[E0425]: cannot find function `consume_budget` in module `tokio::task` --> src/storage/src/hummock/sstable/forward_sstable_iterator.rs:77:22 | 77 | tokio::task::consume_budget().await; | ^^^^^^^^^^^^^^ not found in `tokio::task`

Br

Brennan Vincent

Asked on Oct 19, 2022

  1. The error 'cannot find function consume_budget in module tokio::task' is likely due to the RUSTFLAGS environment variable.

  2. To resolve this error, remove the RUSTFLAGS environment variable.

  3. After removing the RUSTFLAGS environment variable, try building RW with ./risedev playground again.

Oct 19, 2022Edited by