[GH-ISSUE #796] reached the type-length limit while instantiating tokio::runtime::Handle::enter::<...sult::Result<(), anyhow::Error>> #327

Open
opened 2026-02-28 14:48:31 +03:00 by kerem · 2 comments
Owner

Originally created by @c8hunderscore on GitHub (Apr 20, 2021).
Original GitHub issue: https://github.com/Rigellute/spotify-tui/issues/796

when i compiled spotify-tui i got this error:

error: reached the type-length limit while instantiating `tokio::runtime::Handle::enter::<...sult::Result<(), anyhow::Error>>`
  --> C:\Users\minegamer2000\.cargo\registry\src\github.com-1ecc6299db9ec823\tokio-0.2.25\src\runtime\handle.rs:72:5
   |
72 | /     pub fn enter<F, R>(&self, f: F) -> R
73 | |     where
74 | |         F: FnOnce() -> R,
75 | |     {
76 | |         context::enter(self.clone(), f)
77 | |     }
   | |_____^
   |
   = note: consider adding a `#![type_length_limit="1430416"]` attribute to your crate

error: aborting due to previous error

error: failed to compile `spotify-tui v0.23.0`

help

Originally created by @c8hunderscore on GitHub (Apr 20, 2021). Original GitHub issue: https://github.com/Rigellute/spotify-tui/issues/796 when i compiled spotify-tui i got this error: ``` error: reached the type-length limit while instantiating `tokio::runtime::Handle::enter::<...sult::Result<(), anyhow::Error>>` --> C:\Users\minegamer2000\.cargo\registry\src\github.com-1ecc6299db9ec823\tokio-0.2.25\src\runtime\handle.rs:72:5 | 72 | / pub fn enter<F, R>(&self, f: F) -> R 73 | | where 74 | | F: FnOnce() -> R, 75 | | { 76 | | context::enter(self.clone(), f) 77 | | } | |_____^ | = note: consider adding a `#![type_length_limit="1430416"]` attribute to your crate error: aborting due to previous error error: failed to compile `spotify-tui v0.23.0` ``` help
Author
Owner

@rodneydup commented on GitHub (Nov 11, 2021):

Getting the exact same error with v0.25.0

On Debian 11, Cargo v1.46.0, installing with "cargo install spotify-tui"

<!-- gh-comment-id:965989834 --> @rodneydup commented on GitHub (Nov 11, 2021): Getting the exact same error with v0.25.0 On Debian 11, Cargo v1.46.0, installing with "cargo install spotify-tui"
Author
Owner

@muhark commented on GitHub (Feb 9, 2022):

Also getting this error, both on Arch Linux armv7 and Fedora 33.

<!-- gh-comment-id:1033897372 --> @muhark commented on GitHub (Feb 9, 2022): Also getting this error, both on Arch Linux armv7 and Fedora 33.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/spotify-tui#327
No description provided.