Description
Years later, this still seems to be an issue.
I'm having a very similar problem with a similar setup. A crate with a few libs and inter-dependencies and for some reason, I kept getting an error in my ide (neovim) about a function not existing, but it does exist and the code compiles and executes cleanly otherwise.
While it's in this state, I copied the directory to another and attempted to zip it but it's too large to share (19GB! I'm assuming, because of dependencies - it's really not a huge program).
I tried running cargo clean
in my main workspace, and it seemed to half fix it? I had a few errors but now it's only showing one.
It's quite annoying as I can't trust what cargo check
is saying and need to fully compile much more frequently as a result.
It may be worth noting that I'm using macos, and that this project's files are sitting on an external APFS volume that I use to switch back and forth between two macos-based machines... although I'm almost certain I've come across this issue before on projects that were on an internal SSD.
Some output to demonstrate. These two commands were run back-to-back:
reaper/eat_chili/surreal_digestive on main [$?] is 📦 v0.1.0 via 🦀 v1.69.0
❯ cargo check
Checking surreal_digestive v0.1.0 (/Volumes/2TB/reaper/eat_chili/surreal_digestive)
error[E0599]: no method named `new_determinate` found for mutable reference `&'life2 mut ProgressProvider` in the current scope
--> src/lib.rs:124:36
|
124 | let issues_step = progress.new_determinate(num_issues as u64);
| ^^^^^^^^^^^^^^^ help: there is a method with a similar name: `new_indeterminate`
For more information about this error, try `rustc --explain E0599`.
error: could not compile `surreal_digestive` due to previous error
reaper/eat_chili/surreal_digestive on main [$?] is 📦 v0.1.0 via 🦀 v1.69.0
❯ cargo build
Compiling futures-sink v0.3.28
Compiling futures-channel v0.3.28
Compiling progress_provider v0.1.0 (/Volumes/2TB/reaper/eat_chili/progress_provider)
Compiling flume v0.10.14
Compiling sqlx-core v0.6.3
Compiling futures-util v0.3.28
Compiling futures-executor v0.3.28
Compiling tokio-tungstenite v0.18.0
Compiling futures v0.3.28
Compiling surrealdb v1.0.0-beta.9+20230402
Compiling sqlx-macros v0.6.3
Compiling sqlx v0.6.3
Compiling chili_provider v0.1.0 (/Volumes/2TB/reaper/eat_chili/chili_provider)
Compiling surreal_digestive v0.1.0 (/Volumes/2TB/reaper/eat_chili/surreal_digestive)
Finished dev [unoptimized + debuginfo] target(s) in 14.16s
reaper/eat_chili/surreal_digestive on main [$?] is 📦 v0.1.0 via 🦀 v1.69.0 took 14s
❯
Originally posted by @nerdo in #9971 (comment)