[GH-ISSUE #1013] ERROR: Can't recognize collecitons/folders #448

Open
opened 2026-02-28 14:49:14 +03:00 by kerem · 4 comments
Owner

Originally created by @guilh-n-l on GitHub (Aug 22, 2022).
Original GitHub issue: https://github.com/Rigellute/spotify-tui/issues/1013

image

I tried deleting all my folders to try to fix it but the errror is still there. Also logged out and in to see if it worked but to no avail.

Originally created by @guilh-n-l on GitHub (Aug 22, 2022). Original GitHub issue: https://github.com/Rigellute/spotify-tui/issues/1013 ![image](https://user-images.githubusercontent.com/110556149/185961956-aabc61e6-3a32-4922-ac30-7c504cb9564d.png) I tried deleting all my folders to try to fix it but the errror is still there. Also logged out and in to see if it worked but to no avail.
Author
Owner

@guilh-n-l commented on GitHub (Aug 22, 2022):

I use windows 10 btw

<!-- gh-comment-id:1222541146 --> @guilh-n-l commented on GitHub (Aug 22, 2022): I use windows 10 btw
Author
Owner

@AntoineGagne commented on GitHub (Sep 2, 2022):

I might be wrong (I am not really familiar with the codebase), but I think this is an issue with rspotify which is one of the dependencies of the project. spotify-tui seems to be using version 0.10.0 which do not seem to support this enum variant.

The master branch of rspotify seems to support them though, but trying to upgrade the dependency to its latest version seems to introduce some issues with the application.

In the meantime, as a quick patch, I forked rspotify and created a branch where I added the enum variant. Locally, I can then modify the Cargo.toml to point to it and recompile it:

# ...
[dependencies]
rspotify = { git = "https://github.com/AntoineGagne/rspotify.git", branch = "feature/add-collection" }
# ...

Sorry if this is not that helpful.

EDIT: It seems to also be a duplicate of #912.

<!-- gh-comment-id:1235843493 --> @AntoineGagne commented on GitHub (Sep 2, 2022): I might be wrong (I am not really familiar with the codebase), but I think this is an issue with [`rspotify`](https://github.com/ramsayleung/rspotify) which is one of the dependencies of the project. `spotify-tui` seems to be using version `0.10.0` which do not seem to support this enum variant. The [`master`](https://github.com/ramsayleung/rspotify/blob/2aca7c67ff94da3ffc3fb346d93b7c9ebc911cc3/rspotify-model/src/enums/types.rs#L41) branch of `rspotify` seems to support them though, but trying to upgrade the dependency to its latest version seems to introduce some issues with the application. In the meantime, as a quick patch, I forked `rspotify` and created a branch where I added the enum variant. Locally, I can then modify the `Cargo.toml` to point to it and recompile it: ```toml # ... [dependencies] rspotify = { git = "https://github.com/AntoineGagne/rspotify.git", branch = "feature/add-collection" } # ... ``` Sorry if this is not that helpful. EDIT: It seems to also be a duplicate of #912.
Author
Owner

@sewnie commented on GitHub (Sep 16, 2022):

@AntoineGagne i don't believe its that easy to fix, latest versions of rspotify break spotify-tui.

<!-- gh-comment-id:1249271088 --> @sewnie commented on GitHub (Sep 16, 2022): @AntoineGagne i don't believe its that easy to fix, latest versions of rspotify break spotify-tui.
Author
Owner

@AntoineGagne commented on GitHub (Sep 16, 2022):

I am definitely not suggesting it is easy to fix. From what I can see, there has been pretty big changes between the version of rspotify used here and the latest one. My patch is only a bandaid and it just adds the missing type to the variant that is complaining in the error message. It is not a viable long-term solution (patching the downstream dependency that is).

<!-- gh-comment-id:1249294258 --> @AntoineGagne commented on GitHub (Sep 16, 2022): I am definitely not suggesting it is easy to fix. From what I can see, there has been pretty big changes between the version of `rspotify` used here and the latest one. My patch is only a bandaid and it just adds the missing type to the variant that is complaining in the error message. It is not a viable long-term solution (patching the downstream dependency that is).
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#448
No description provided.