[GH-ISSUE #275] Failed to read JSON #196

Closed
opened 2026-02-28 14:31:18 +03:00 by kerem · 1 comment
Owner

Originally created by @naymapl on GitHub (Jan 29, 2022).
Original GitHub issue: https://github.com/jpochyla/psst/issues/275

Compiling issue:

 Compiling psst-core v0.1.0 (/Users/naymapl/psst/psst-core)
warning: field is never read: `result`
  --> psst-core/src/cdn.rs:52:13
   |
52 |             result: String,
   |             ^^^^^^^^^^^^^^
   |
   = note: `#[warn(dead_code)]` on by default

warning: field is never read: `fileid`
  --> psst-core/src/cdn.rs:54:13
   |
54 |             fileid: String,
   |             ^^^^^^^^^^^^^^

warning: `psst-core` (lib) generated 2 warnings
   Compiling psst-cli v0.1.0 (/Users/naymapl/psst/psst-cli)
warning: unused import: `super::Finder`
 --> psst-gui/src/data/playlist.rs:8:5
  |
8 | use super::Finder;
  |     ^^^^^^^^^^^^^
  |
  = note: `#[warn(unused_imports)]` on by default

warning: unused import: `PlaylistDetail`
  --> psst-gui/src/ui/mod.rs:13:66
   |
13 |     data::{Alert, AlertStyle, AppState, Nav, Playable, Playback, PlaylistDetail, Route},
   |                                                                  ^^^^^^^^^^^^^^

warning: unused imports: `LinearGradient`, `Rect`, `UnitPoint`
 --> psst-gui/src/widget/utils.rs:4:30
  |
4 |     Color, Data, KeyOrValue, LinearGradient, Rect, UnitPoint,
  |                              ^^^^^^^^^^^^^^  ^^^^  ^^^^^^^^^

warning: associated function is never used: `episode`
  --> psst-gui/src/data/playback.rs:43:12
   |
43 |     pub fn episode(&self) -> Option<&Arc<Episode>> {
   |            ^^^^^^^
   |
   = note: `#[warn(dead_code)]` on by default

warning: associated function is never used: `resolve`
  --> psst-gui/src/data/promise.rs:82:12
   |
82 |     pub fn resolve(&mut self, def: D, val: T) {
   |            ^^^^^^^

warning: associated function is never used: `get_show`
   --> psst-gui/src/webapi/client.rs:315:12
    |
315 |     pub fn get_show(&self, id: &str) -> Result<Arc<Show>, Error> {
    |            ^^^^^^^^

warning: field is never read: `is_local`
   --> psst-gui/src/webapi/client.rs:504:13
    |
504 |             is_local: bool,
    |             ^^^^^^^^^^^^^^

warning: field is never read: `id`
   --> psst-gui/src/webapi/local.rs:212:5
    |
212 |     pub id: Option<TrackId>,
    |     ^^^^^^^^^^^^^^^^^^^^^^^

warning: field is never read: `is_playable`
   --> psst-gui/src/webapi/local.rs:224:5
    |
224 |     pub is_playable: Option<bool>,
    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

warning: associated constant is never used: `FADE_LENGTH_MAX`
  --> psst-gui/src/widget/utils.rs:16:5
   |
16 |     const FADE_LENGTH_MAX: f64 = 32.0;
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

warning: associated function is never used: `right`
  --> psst-gui/src/widget/utils.rs:28:12
   |
28 |     pub fn right(inner: W, width: impl Into<KeyOrValue<f64>>) -> Self {
   |            ^^^^^

warning: `psst-gui` (bin "psst-gui") generated 11 warnings
    Finished release [optimized] target(s) in 1m 46s

Screenshots
Zrzut ekranu 2022-01-29 o 10 35 50

macOS 12.3

Additional context
After run app missing playlists and songs like on the screen. Any idea what happend ? Thank you so much for help.

Older build from past few weeks working well. Just new fresh build have this issue.

Originally created by @naymapl on GitHub (Jan 29, 2022). Original GitHub issue: https://github.com/jpochyla/psst/issues/275 Compiling issue: ``` Compiling psst-core v0.1.0 (/Users/naymapl/psst/psst-core) warning: field is never read: `result` --> psst-core/src/cdn.rs:52:13 | 52 | result: String, | ^^^^^^^^^^^^^^ | = note: `#[warn(dead_code)]` on by default warning: field is never read: `fileid` --> psst-core/src/cdn.rs:54:13 | 54 | fileid: String, | ^^^^^^^^^^^^^^ warning: `psst-core` (lib) generated 2 warnings Compiling psst-cli v0.1.0 (/Users/naymapl/psst/psst-cli) warning: unused import: `super::Finder` --> psst-gui/src/data/playlist.rs:8:5 | 8 | use super::Finder; | ^^^^^^^^^^^^^ | = note: `#[warn(unused_imports)]` on by default warning: unused import: `PlaylistDetail` --> psst-gui/src/ui/mod.rs:13:66 | 13 | data::{Alert, AlertStyle, AppState, Nav, Playable, Playback, PlaylistDetail, Route}, | ^^^^^^^^^^^^^^ warning: unused imports: `LinearGradient`, `Rect`, `UnitPoint` --> psst-gui/src/widget/utils.rs:4:30 | 4 | Color, Data, KeyOrValue, LinearGradient, Rect, UnitPoint, | ^^^^^^^^^^^^^^ ^^^^ ^^^^^^^^^ warning: associated function is never used: `episode` --> psst-gui/src/data/playback.rs:43:12 | 43 | pub fn episode(&self) -> Option<&Arc<Episode>> { | ^^^^^^^ | = note: `#[warn(dead_code)]` on by default warning: associated function is never used: `resolve` --> psst-gui/src/data/promise.rs:82:12 | 82 | pub fn resolve(&mut self, def: D, val: T) { | ^^^^^^^ warning: associated function is never used: `get_show` --> psst-gui/src/webapi/client.rs:315:12 | 315 | pub fn get_show(&self, id: &str) -> Result<Arc<Show>, Error> { | ^^^^^^^^ warning: field is never read: `is_local` --> psst-gui/src/webapi/client.rs:504:13 | 504 | is_local: bool, | ^^^^^^^^^^^^^^ warning: field is never read: `id` --> psst-gui/src/webapi/local.rs:212:5 | 212 | pub id: Option<TrackId>, | ^^^^^^^^^^^^^^^^^^^^^^^ warning: field is never read: `is_playable` --> psst-gui/src/webapi/local.rs:224:5 | 224 | pub is_playable: Option<bool>, | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ warning: associated constant is never used: `FADE_LENGTH_MAX` --> psst-gui/src/widget/utils.rs:16:5 | 16 | const FADE_LENGTH_MAX: f64 = 32.0; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ warning: associated function is never used: `right` --> psst-gui/src/widget/utils.rs:28:12 | 28 | pub fn right(inner: W, width: impl Into<KeyOrValue<f64>>) -> Self { | ^^^^^ warning: `psst-gui` (bin "psst-gui") generated 11 warnings Finished release [optimized] target(s) in 1m 46s ``` **Screenshots** <img width="1099" alt="Zrzut ekranu 2022-01-29 o 10 35 50" src="https://user-images.githubusercontent.com/24625283/151656010-bf14fe36-959c-48dd-afdb-3daa6bed4c3c.png"> macOS 12.3 **Additional context** After run app missing playlists and songs like on the screen. Any idea what happend ? Thank you so much for help. Older build from past few weeks working well. Just new fresh build have this issue.
kerem 2026-02-28 14:31:18 +03:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@naymapl commented on GitHub (Jan 29, 2022):

Ok - after few restarts of system and app start to working. Sorry for problem.

<!-- gh-comment-id:1024877555 --> @naymapl commented on GitHub (Jan 29, 2022): Ok - after few restarts of system and app start to working. Sorry for problem.
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/psst#196
No description provided.