Skip to content
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

Migrate the application init files to JSON #19

Merged
merged 8 commits into from
Jan 30, 2023
Merged

Conversation

Borewit
Copy link
Owner

@Borewit Borewit commented Jan 13, 2023

Existing .ini files will not be converted.

  • Migrate the application the following .ini files to .json:
    • %USERPFILE%\.listFix()\dirLists.ini with %USERPFILE%\.listFix()\mediaLibrary.json
    • %USERPFILE%\.listFix()\history.ini with %USERPFILE%\.listFix()\history.json
      • %USERPFILE%\.listFix()\options.ini with %USERPFILE%\.listFix()\options.json
  • Removed .ini file conversions

@Borewit Borewit added the enhancement Request or implementation of new feature label Jan 13, 2023
@Borewit Borewit self-assigned this Jan 13, 2023
@Borewit
Copy link
Owner Author

Borewit commented Jan 13, 2023

@touwys are you able to test this beta release?

Deleted listFix-2.5.0.zip

Changes are drastic and I have hardly tested anything myself. So expect problems.

@touwys
Copy link

touwys commented Jan 14, 2023 via email

@touwys
Copy link

touwys commented Jan 14, 2023

I downloaded listFix-2.5.0.zip. Uninstalled v2.4.0.

To which directory do I have to unzip the v2.5.0 folder? Anywhere in particular?

I installed it here: c:/portable/listFix-2.5.0

then proceeded to run "listFix-2.5.0.jar", which I presumed to be the executable, but nothing actuated.

Did I follow the correct steps? Apologies for my ignorance.

Footnote: jre1.8.0_351

@Borewit
Copy link
Owner Author

Borewit commented Jan 14, 2023

There was an issue building the Windows executable, which I have now fixed.
Let me prepare an easier deployment...

@Borewit Borewit force-pushed the migrate-appconfig-to-json branch 3 times, most recently from 42561d8 to c37c983 Compare January 15, 2023 14:29
@Borewit Borewit force-pushed the migrate-appconfig-to-json branch 2 times, most recently from b14062c to 5ac3160 Compare January 15, 2023 16:45
@Borewit
Copy link
Owner Author

Borewit commented Jan 15, 2023

@touwys can you also try this beta release: 2.4.1-1?

@touwys
Copy link

touwys commented Jan 15, 2023

@touwys can you also try this beta release: 2.4.1-1?

Good show! Thank you. 😁

I installed v2.4.1 moments ago, and now I can add the Media and Playlist Directories without a hitch. I will play around some more, and let you know if something else crops up. Meanwhile, keep me posted on what more you want me to do?

(BTW: I emailed the above reply including a screenshot almost immediately after downloading and installing, but failed to display here).

@Borewit
Copy link
Owner Author

Borewit commented Jan 15, 2023

Glad to hear things are working. If you can give me a clear confirmation 2.4.1-1 (which is 2.4.1 + this Pull Request(PR)) is at least as good as 2.4.1. No rush, please take time to test it.

And in the issues you created, #14, #15 if they are resolved with any of those versions. So feedback regarding 2.4.1 is best to place there, because then I know if those issues are resolved or not.

@touwys
Copy link

touwys commented Jan 15, 2023

Will do. (This time it may indeed take a little while longer, due to our restricted national electrical power supply. It's a nightmare.)

@touwys
Copy link

touwys commented Jan 16, 2023

@Borewit:

I installed v2.4.1-1 without first uninstalling v2.4.1. The results of the first few quick tests, are as follows:

  1. The Media Directories failed to be added — as it previously did with v2.4.0.
  2. The addition of the default Playlist Directories (in Options) was successful.
  3. The option to change the default app Skin was successful, unlike in v2.4.0 which caused the app to hang.

A clean installation of v2.4.1-1 required? (Possible corruption of config files ini_json?)

@touwys
Copy link

touwys commented Jan 16, 2023

@Borewit:

I did a clean reinstallation of v2.4.1-1, with the same initial results as already noted.

I have one query, though (also view the screenshot):

How is it possible for a playlist to be verified as "OK" or "!" in the absence of the Media Directories?

@touwys
Copy link

touwys commented Jan 16, 2023

@Borewit:

You are really swinging it!

listFix() v2.4.2 — The issues that presented in the preceding versions, are now gone. Great job, and fast!

Thank you.

Anything else in particular that you want me to test for?

@Borewit
Copy link
Owner Author

Borewit commented Jan 16, 2023

Thanks for you detailed review @touwys, very useful. Based on your findings on v2.4.1-1, this PR seems to reintroduce issues with adding media directories. I hope I will be able to reproduce those issues.

I did some testing on v2.4.1-1 myself, by fixing some of my playlists. At a certain point I run into an Exception.

@Borewit Borewit added the debt Technical debt label Jan 16, 2023
@Borewit Borewit force-pushed the migrate-appconfig-to-json branch 2 times, most recently from 0c8a19d to 80a6a96 Compare January 16, 2023 17:06
@Borewit
Copy link
Owner Author

Borewit commented Jan 16, 2023

@touwys, can you find any issue is this release: beta-v2.4.2-2

@Borewit
Copy link
Owner Author

Borewit commented Jan 17, 2023

I'm sorry, but I'm unable to locate the download link for listFix() beta-v2.4.2-2 on the given page.

My mistake, forgot to submit the page.

Can you perhaps provide a direct download link for it?

Release is to big to toss it into an issue, something like 25MB what is allowed, but yeah can be done with some third party service.

@Borewit
Copy link
Owner Author

Borewit commented Jan 29, 2023

All of navigating GitHub, and the corresponding language used by developers, may come natural to you guys, but believe me, to the uninitiated, this is all a very strange, if confusing experience.

Fully understand that, it is not easy.

  1. "Select Closest Matches" > "Preview" >"Play". Again, now does not call the default player. Perhaps consider to later add an programme Option to select any player?

Ah, preview play within the "Select Closest Matches", yes I can replicate the issue! Sorry I missed that in earlier observations.

  1. "Find Exact Matches" (binocular icon) behaves the same as before — it briefly flashes on the screen what appears to be a progress window that says "Repairing", but it disappears instantly.

Can you please try to create a test environment somewhere on C:\? Copy a bunch of audio files to a test folder, create a playlist from the audio files. Move the files to a sub-directory, to deliberately break the playlist and re-try the "Select Closest Matches".

The goal is to get in working on your machine. If you manage to get in working, we can start to figure out under what condition it breaks.

@Borewit
Copy link
Owner Author

Borewit commented Jan 29, 2023

  1. "Select Closest Matches" > "Preview" >"Play". Again, now does not call the default player. Perhaps consider to later add an programme Option to select any player?

This issue seems to be introduced by this PR.

@touwys
Copy link

touwys commented Jan 29, 2023

  1. "Select Closest Matches" > "Preview" >"Play". Again, now does not call the default player. Perhaps consider to later add an programme Option to select any player?

This issue seems to be introduced by this PR.

Yes, it worked properly in listFix_2.4.2

@touwys
Copy link

touwys commented Jan 29, 2023

Can you please try to create a test environment somewhere on C:\? Copy a bunch of audio files to a test folder, create a playlist from the audio files. Move the files to a sub-directory, to deliberately break the playlist and re-try the "Select Closest Matches".

Starting this tomorrow.

@Borewit
Copy link
Owner Author

Borewit commented Jan 29, 2023

This version should fix NullPointerException, when:

Right click on playlist entry, select "Find Closest Matches" > In "Preview" click "Play" button.

image

listFix_2.4.2-7.exe

@touwys
Copy link

touwys commented Jan 29, 2023

to deliberately break the playlist and re-try the "Select Closest Matches".

By "Closest Matches", do you mean "Fix Everything?

@Borewit
Copy link
Owner Author

Borewit commented Jan 29, 2023

By "Closest Matches", do you mean "Fix Everything?

Updated #19 (comment).

I copied your words 😉.

@touwys
Copy link

touwys commented Jan 29, 2023

I copied your words wink.

"Closest Matches" is the heading of the window that opens only once "Fix Everything" is activated, it is not an action in itself... 🤔

Jokes aside, I could not wait, went ahead and installed listFix_2.4.2-7. Copied 21 audio files over to C:\ and created the playlist, which I then broke by moving the audio files to a subfolder. Both "Fix Everything" and "Find Exact Matches" fixed the broken playlist in an instant. "Preview" > "Play" not tested.

@Borewit
Copy link
Owner Author

Borewit commented Jan 29, 2023

"Closest Matches" is the heading of the window that opens only once "Fix Everything" is activated, it is not an action in itself...

What I have fixes in the last update:

image

This is the play I have fixed, which was broken:

image

I thought that is what you meant in #19 (comment), ""Select Closest Matches" > "Preview" >"Play"

Borewit added 7 commits January 29, 2023 22:15
Remove functionality for old INI file conversions.
Replace dependencies on GUIScreen with interfaces.
Prevent directory sets are replaced, to prevent wrong instances being used.
Fix bug prompting errors in a loop.
@touwys
Copy link

touwys commented Jan 30, 2023

I thought that is what you meant in #19 (comment), "Select Closest Matches" > "Preview" >"Play"

Yes, that's the one — only, I engaged it from the menu bar (magic wand icon) while you did it from the playlist context menu. Thus, we agree.

I have tested "Select Closest Matches" > "Preview" >"Play", and also found it fixed for listFix_2.4.2-7. It called the default player to play the selected track.

Is fixing "Find Exact Matches" next on the test list?

@Borewit
Copy link
Owner Author

Borewit commented Jan 30, 2023

Is fixing "Find Exact Matches" next on the test list?

Since this issue was already present in v2.4.2 reported here, please create a new issue for this.

I am going to merge the PR, and create a formal release.

@Borewit Borewit merged commit 5b10eba into main Jan 30, 2023
@Borewit Borewit deleted the migrate-appconfig-to-json branch January 30, 2023 07:09
@touwys
Copy link

touwys commented Jan 30, 2023

Since this issue was already present in v2.4.2 reported here, please create a new issue for this.

No problem, but do you mean I have to create an issue other than the same one already posted here?:

The "Find Exact Matches" action appears to be dysfunctional? · Issue #28 · Borewit/listFix

@Borewit
Copy link
Owner Author

Borewit commented Jan 30, 2023

Part of v2.5.0

@Borewit
Copy link
Owner Author

Borewit commented Jan 30, 2023

No problem, but do you mean I have to create an issue other than the same one already posted here?

My bad, no one issue is more then enough.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
debt Technical debt enhancement Request or implementation of new feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants