Rockbox.org home
Downloads
Release release
Dev builds dev builds
Extras extras
themes themes
Documentation
Manual manual
Wiki wiki
Device Status device status
Support
Forums forums
Mailing lists mailing lists
IRC IRC
Development
Bugs bugs
Patches patches
Dev Guide dev guide
translations translations
Search



Donate

Rockbox Technical Forums


Login with username, password and session length
Home Help Search Staff List Login Register
News:

Welcome to the Rockbox Technical Forums!

+  Rockbox Technical Forums
|-+  Support and General Use
| |-+  Theming and Appearance Customization
| | |-+  Recent dev build breaks my theme(?)
« previous next »
  • Print
Pages: [1] 2

Author Topic: Recent dev build breaks my theme(?)  (Read 4592 times)

Offline iPodVT

  • Member
  • *
  • Posts: 467
Recent dev build breaks my theme(?)
« on: March 29, 2024, 09:23:06 AM »
Something has changed in one of the recent dev builds that seems to have broken my personal theme's use of %ss and %St.

I have a location and naming convention for the Playlists directory on each of my various iPods that allows me to cache a string that my theme can then retrieve and use to display as a label in the theme's status bar.  This allows each iPod to have a unique label while keeping the theme code generic.  So if my iPod is named iPod_1, I name the Playlists directory PlaylistsiPod_1 and place it in the iPod's root directory.  When my theme goes to draw that iPod's name in the status bar, it retrieves the name string with

%ss(10,-,%St(playlist catalog directory))

which strips away "/Playlists" and leaves "iPod_1".  Or I should say it used to do that.  Yesterday when I updated one of my iPods to the latest dev build I found that the label getting drawn in the status bar is now tsiPod_1, presumably starting with the last two characters of "Playlists".

I suspect this has been caused by the change in fdc3668a6a 23rd Mar 14:37, where enumeration of mounted volumes has been added/changed.

[edit] More to the point, it would seem that every theme's prior use of %St(playlist catalog directory) will be affected.
« Last Edit: March 29, 2024, 09:48:52 AM by iPodVT »
Logged

Offline Bilgus

  • Developer
  • Member
  • *
  • Posts: 1191
Re: Recent dev build breaks my theme(?)
« Reply #1 on: March 29, 2024, 10:25:02 AM »
I've got one more patch to this change, could you double check the issue is still happening and i'll fix it in the next few days?

Thanks
Logged

Offline iPodVT

  • Member
  • *
  • Posts: 467
Re: Recent dev build breaks my theme(?)
« Reply #2 on: March 29, 2024, 11:01:13 AM »
Okay - I just now updated another iPod from ae01ea7fd9-240223 to 19f21a2b3f-240328 and I am not seeing the problem with that 2nd iPod.  So then I updated the first iPod (the one that demonstrated the problem) from 6e058fe77f-240326 to 19f21a2b3f-240328 and I am still seeing the problem with this first iPod.  Very strange.  I also checked the code in each iPod's .sbs file and it is the same.  The iPod exhibiting the problem is a 5.5 Gen iPod Video and the other is a 5th Gen iPod Video.  Both were originally 30GB but now have iFlash boards with 256GB Samsung Pro Plus microSDs.

I'm not sure what else to do, but at the moment I have to set this aside until later today.  Please let me know if you have any suggestions for what else I might do to resolve this.  Thanks.
Logged

Offline Bilgus

  • Developer
  • Member
  • *
  • Posts: 1191
Re: Recent dev build breaks my theme(?)
« Reply #3 on: March 29, 2024, 11:01:20 AM »
I assume %st is just using the string length and the extra slashses in one of the paths is causing misalignment like your directory now comes in as ///Playlists and gets stripped by length of 'Playlists' ending up with tsi_Pod
Logged

Offline Bilgus

  • Developer
  • Member
  • *
  • Posts: 1191
Re: Recent dev build breaks my theme(?)
« Reply #4 on: March 29, 2024, 11:03:14 AM »
make sure you are using this very latest dev build from like 15 mins ago (52e22b25)
I suspect the multiple slashes are the issue

that said I have very inconsistent behavior between devices so its not great to hear its even variable between installs
« Last Edit: March 29, 2024, 03:02:11 PM by Bilgus »
Logged

Offline iPodVT

  • Member
  • *
  • Posts: 467
Re: Recent dev build breaks my theme(?)
« Reply #5 on: March 29, 2024, 11:05:57 AM »
Okay, I'll update them both again.  Standby...
Logged

Offline iPodVT

  • Member
  • *
  • Posts: 467
Re: Recent dev build breaks my theme(?)
« Reply #6 on: March 29, 2024, 11:15:38 AM »
Installed Development Version on both.  Still the same - extra chars with one but not with the other.
Logged

Offline Bilgus

  • Developer
  • Member
  • *
  • Posts: 1191
Re: Recent dev build breaks my theme(?)
« Reply #7 on: March 29, 2024, 11:18:24 AM »
ok thanks for checking, I may have to send you a test version if I don't find anything obvious in the next few days is that the ipod video you are using? and or are you able to compile builds?
Logged

Offline iPodVT

  • Member
  • *
  • Posts: 467
Re: Recent dev build breaks my theme(?)
« Reply #8 on: March 29, 2024, 11:22:04 AM »
Both are iPod Video - one 5th Gen, one 5.5 Gen.  Later today I will try another 5.5 Gen and also a 7th Gen Classic.

Thank you!
Logged

Offline chris_s

  • Developer
  • Member
  • *
  • Posts: 299
Re: Recent dev build breaks my theme(?)
« Reply #9 on: March 29, 2024, 11:34:19 AM »
You may want to try re-setting the playlist catalog directory on devices updated with the latest build.
« Last Edit: March 29, 2024, 11:50:18 AM by chris_s »
Logged

Offline iPodVT

  • Member
  • *
  • Posts: 467
Re: Recent dev build breaks my theme(?)
« Reply #10 on: March 29, 2024, 12:30:38 PM »
Yes, yes, yes - that did the trick.  Thanks again, very much.
Logged

Offline iPodVT

  • Member
  • *
  • Posts: 467
Re: Recent dev build breaks my theme(?)
« Reply #11 on: July 21, 2024, 12:20:10 PM »
I'm seeing this problem again with dev build 2b7b4c24d5-240720 on a 160GB iPod Classic (MC297LL/A).  When I select a directory in the File Browser and then use the context menu to set that directory as my Playlists Directory, Rockbox is prepending "/<HDD0>" to the directory's pathname string that gets cached in the .cfg file.  My Playlists Directory is in the iPod's root directory and is named PlaylistsTest_Pod.  The pathname string that is getting cached in config.cfg.new is

/<HDD0>/PlaylistsTest_Pod

I'm also seeing "/<HDD0>" prepended to the pathnames of .txt files when displayed in the Header of the text_viewer plugin.
Logged

Offline speachy

  • Administrator
  • Member
  • *
  • Posts: 651
Re: Recent dev build breaks my theme(?)
« Reply #12 on: July 21, 2024, 05:15:18 PM »
Is this a "theme breaking" change or is it just a change in expected behaviour?

The ipods (and all other ATA-based devices) had multi-volume support turned on recently, which means that path may now include the volume name.  I'd not expect this to _break_ anything that wasn't already broken on devices that aready had multi-volume support though.
Logged

Offline iPodVT

  • Member
  • *
  • Posts: 467
Re: Recent dev build breaks my theme(?)
« Reply #13 on: July 21, 2024, 06:49:54 PM »
Quote from: speachy on July 21, 2024, 05:15:18 PM
Is this a "theme breaking" change or is it just a change in expected behaviour?

I think that it's both.  If the data content of a long standing theming tag's spec gets changed such that themes that use that data are now displaying misaligned data, I would say that the theme has been broken.  But I also acknowledge that my manipulated use of that data [ %ss(10,-,%St(playlist catalog directory)) - usage/purpose specified in my initial post of this forum thread] is perhaps a bit unorthodox.

Certainly, my theme could be 'fixed' for the current dev build by adapting it to the new data content, but then it would be broken if/when used with older releases/dev builds, or when used with future builds if that data content gets changed again.

I'm curious to know what the expected theming use of %St(playlist catalog directory) is or was?  I'm guessing that since I'm the only person (that I know of) who has commented on this, that tag is very little used if at all.  As well, since my theme is unpublished and I am the only user of it (albeit on more than a few iPods), I think the expanded multi volume functionality of Rockbox is more important than having an accommodation applied in code for the sake of my theme.  I'm mainly posting this now because I previously raised the same concern several months ago when I began this forum thread and the problem was resolved in that instance.

Someone (I can't remember who) recently posted that a new config setting was in the works whereby a user could cache text data for retrieval by a theme.  If/when that becomes available, my current use of %ss(10,-,%St(playlist catalog directory)) would no longer be necessary and this conversation would more or less become moot.  Perhaps that setting was already included in a recent dev build and I missed it?

Is there a theming tag that returns the numeric length of a setting's string?  I haven't been able to find it.  Having that, I could calculate rather than hard code the starting char of the substring I want to display and then it wouldn't matter what volume name/ID info is or isn't prepended onto the front end of a pathname.

Finally (and I apologize for being so long-winded) I want to repeat that I'm also seeing "/<HDD0>" prepended to the pathnames of .txt files when displayed in the Header of the text_viewer plugin.  I have to say than I think that's ugly, but I can live with that.  I know..., "picky, picky, picky..."

Thanks.
« Last Edit: July 21, 2024, 06:58:57 PM by iPodVT »
Logged

Offline iPodVT

  • Member
  • *
  • Posts: 467
Re: Recent dev build breaks my theme(?)
« Reply #14 on: July 21, 2024, 11:28:11 PM »
Quote from: speachy on July 21, 2024, 05:15:18 PM
The ipods (and all other ATA-based devices) had multi-volume support turned on recently, which means that path may now include the volume name.  I'd not expect this to _break_ anything that wasn't already broken on devices that aready had multi-volume support though.

Rereading that last sentence I now see what you mean:  my method for caching and retrieving a player name wouldn't work as I intend for both devices with and devices without multi-volume support.  It seems that my best course of action would be to abandon my use of %ss(10,-,%St(playlist catalog directory)) and instead wait/hope for your new "playername" setting to become available.

Again, thanks.
Logged

  • Print
Pages: [1] 2
« previous next »
+  Rockbox Technical Forums
|-+  Support and General Use
| |-+  Theming and Appearance Customization
| | |-+  Recent dev build breaks my theme(?)
 

  • SMF 2.0.19 | SMF © 2021, Simple Machines
  • Rockbox Privacy Policy
  • XHTML
  • RSS
  • WAP2

Page created in 0.158 seconds with 18 queries.