-
Notifications
You must be signed in to change notification settings - Fork 4
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
unable to compile leetcode_tui #8
Comments
I've been getting this error too. On WSL2 Ubuntu. Any ideas? |
Could you checkout to this commit and try
|
I did Backtrace (most recent call last):
File "/home/shiro/probe/leetcode-tui/leetcode-tui-rs/src/main.rs:16", in leetui::main
App::run().await
File "/home/shiro/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.32.0/src/runtime/runtime.rs:349", in tokio::runtime::runtime::Runtime::block_on
Scheduler::MultiThread(exec) => exec.block_on(&self.handle.inner, future),
File "/home/shiro/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.32.0/src/runtime/scheduler/multi_thread/mod.rs:86", in tokio::runtime::scheduler::multi_thread::MultiThread::block_on
crate::runtime::context::enter_runtime(handle, true, |blocking| {
File "/home/shiro/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.32.0/src/runtime/context/runtime.rs:65", in tokio::runtime::context::runtime::enter_runtime
return f(&mut guard.blocking);
File "/home/shiro/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.32.0/src/runtime/scheduler/multi_thread/mod.rs:87", in tokio::runtime::scheduler::multi_thread::MultiThread::block_on::{{closure}}
blocking.block_on(future).expect("failed to park thread")
File "/home/shiro/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.32.0/src/runtime/context/blocking.rs:66", in tokio::runtime::context::blocking::BlockingRegionGuard::block_on
park.block_on(f)
File "/home/shiro/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.32.0/src/runtime/park.rs:282", in tokio::runtime::park::CachedParkThread::block_on
if let Ready(v) = crate::runtime::coop::budget(|| f.as_mut().poll(&mut cx)) {
File "/home/shiro/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.32.0/src/runtime/coop.rs:73", in tokio::runtime::coop::budget
with_budget(Budget::initial(), f)
File "/home/shiro/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.32.0/src/runtime/coop.rs:107", in tokio::runtime::coop::with_budget
f()
File "/home/shiro/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.32.0/src/runtime/park.rs:282", in tokio::runtime::park::CachedParkThread::block_on::{{closure}}
if let Ready(v) = crate::runtime::coop::budget(|| f.as_mut().poll(&mut cx)) {
File "/home/shiro/probe/leetcode-tui/leetcode-tui-rs/src/main.rs:12", in leetui::main::{{closure}}
leetcode_tui_core::init();
File "/home/shiro/probe/leetcode-tui/leetcode-tui-core/src/lib.rs:34", in leetcode_tui_core::init
content::question::init();
File "/home/shiro/probe/leetcode-tui/leetcode-tui-core/src/content/question/sol_dir.rs:15", in leetcode_tui_core::content::question::sol_dir::init
SOLUTION_FILE_MANAGER
File "rust:library/std/src/sync/once_lock.rs:304", in std::sync::once_lock::OnceLock<T>::get_or_init
File "rust:library/std/src/sync/once_lock.rs:390", in std::sync::once_lock::OnceLock<T>::get_or_try_init
File "rust:library/std/src/sync/once_lock.rs:510", in std::sync::once_lock::OnceLock<T>::initialize
File "rust:library/std/src/sync/once.rs:217", in std::sync::once::Once::call_once_force
File "rust:library/std/src/sys/sync/once/futex.rs:168", in std::sys::sync::once::futex::Once::call
File "rust:library/std/src/sync/once.rs:217", in std::sync::once::Once::call_once_force::{{closure}}
File "rust:library/std/src/sync/once_lock.rs:511", in std::sync::once_lock::OnceLock<T>::initialize::{{closure}}
File "rust:library/std/src/sync/once_lock.rs:304", in std::sync::once_lock::OnceLock<T>::get_or_init::{{closure}}
File "/home/shiro/probe/leetcode-tui/leetcode-tui-core/src/content/question/sol_dir.rs:16", in leetcode_tui_core::content::question::sol_dir::init::{{closure}}
.get_or_init(|| RwLock::new(CONFIG.as_ref().solutions_dir.clone().try_into().unwrap()));
File "rust:library/core/src/result.rs:1102", in core::result::Result<T,E>::unwrap
The application panicked (crashed).
called `Result::unwrap()` on an `Err` value: IOError(Os { code: 2, kind: NotFound, message: "No such file or directory" })
in leetcode-tui-core/src/content/question/sol_dir.rs:16
thread: main |
It's still showing the same error |
hey ive be trying to install your tui on my android tablet within termux but i've been getting issues trying to compile native_db saying there is no Database_Builder in my root i tried to add native_model coz native_db does not work without it (written in native_db docs )
but nothing changed
this is the error i am getting
can you help me fix this error
The text was updated successfully, but these errors were encountered: