bcpierce00 / unison

Unison file synchronizer
GNU General Public License v3.0
4.08k stars 229 forks source link

"Open profile on startup" not working on macOS 13.4.1 #937

Open flaschenge1st opened 1 year ago

flaschenge1st commented 1 year ago

In options, i can check "Open Profile on startup", but the dropdown box is empty - none of my profiles is found.

So if I start Unison there's a list of profiles from which I have to choose (as expexted if the "Open profile on startup" is not checked...)

Running 2.53.3 (ocaml 4.14.1) on a Mac M2 with Venture 13.4.

tleedjarv commented 1 year ago

Did this work for you before? If this is a regression then it may be related to a macOS version because uimac has not been changed in quite a while.

It would be a good to get a confirmation (from anyone) that this functionality used to work or still works for someone.

gdt commented 1 year ago

Please read the reporting bugs wiki page. It's unclear how the binary you are running was built, if it's the gtk build or the mac native build.

flaschenge1st commented 1 year ago

I'm sorry - answered via email, thought it should show up here... Anyway, once again:

@tleedjarv: It did work - although I cannot tell you in which version on which MacOS... )-: Had it running on my (very) old iMac (late 2009) just until March, when my iMac died. Upgraded to the latest hardware, installed Unison. As I wrote: I'm sorry, but I cannot say which version of Unison I used to use. I guess, I run High Sierra 10.13.x, but unsure about the sub-sub-version...

@gdt: It's the mac build from the github release page (Unison-2.53.3-macos.app.tar.gz)

/Applications/Unison.app/Contents/MacOS/Unison -version unison version 2.53.3 (ocaml 4.14.1)

Thank you for any help!

tleedjarv commented 1 year ago

I don't have access to any macOS myself, so can't directly help but I can at least try help debugging the issue.

@flaschenge1st could you try a version you can download from https://github.com/tleedjarv/unison/suites/13741972879/artifacts/760772111 and see if it makes any difference?

flaschenge1st commented 1 year ago

Thank you! Unfortunately: Exactly the same issue.

grafik

(the dropdown is empty!) although there are profiles:

grafik

Is the version you linked in your last post the gtk version? I think that's the version I had running on my old machine (the GUI of the versions is similar but not the same. The one from your link looks exactly like my old one...).

tleedjarv commented 1 year ago

No, this is the native mac version (it's the only one that has this functionality in the first place).

I've prepared a new debug build for you: https://github.com/tleedjarv/unison/suites/13788166276/artifacts/764443528 Could you try it and run it from the terminal? I'm expecting some debug output to be printed to the terminal. Please paste that output here.

flaschenge1st commented 1 year ago
% ./Unison.app/Contents/MacOS/Unison
2023-06-22 20:17:29.589 Unison[5005:416000] awakeFromNib called
2023-06-22 20:17:29.589 Unison[5005:416000] initProfiles called
2023-06-22 20:17:29.589 Unison[5005:416000] dir = '/Users/oschuppe/Library/Application Support/Unison'
2023-06-22 20:17:29.589 Unison[5005:416000] initProfiles count = 10
2023-06-22 20:17:39.739 Unison[5005:416000] getProfiles called
2023-06-22 20:17:39.739 Unison[5005:416000] getProfiles called

first 4 lines are from startup, last 2 lines come from opening the settings window.

tleedjarv commented 1 year ago

Thank you. It would really help to know which version of Unison you used to run. It seems that this may have been broken since all the way back starting with 2.48.3 (released in 2015(?)) or possibly since 2.51.2.

I have no experience at all with Xcode and objc but it seems to me that the code itself works fine, it's just the GUI that is broken. More specifically, the combobox seems to be disconnected from the code that should populate it. It requires someone with access to Xcode to fix this. I can't help with that.

@alanshutko (I'm just calling out blindly) perhaps you can help with this issue?

flaschenge1st commented 1 year ago

Oh dear - I'm sorry! My old Mac is broken, but I do have a backup! Sorry, didn't think about that!

OK, so the version I used on my old mac is

> ./Unison.app/Contents/MacOS/Unison -version
2023-06-27 12:54:38.449 Unison[35186:481620] Calling nonGuiStartup
unison version 2.51.4 (ocaml 4.12.0)
grafik

Unfortunately, it shows exactly the same behaviour on the new mac. So this must be a bug in connection with the new MacOS. I found the old mac os version:

Old Mac OS version: 10.13.6 (Unison 2.51.4 is running fine) New Mac os version: 13.4.1 (Unison 2.51.4 and 2.53.3 NOT auto-loading the profile at startup)

Thank you for your support!

gdt commented 1 year ago

I retitled the issue; it's of course not clear if this is a latent Unison bug or a macOS bug. It's going to take somebody with motivation and macOS to debug it. Intermediate reports between 10.13 and 13 are likely useful, but I suspect debugging on 13 is what is going to be necessary.

(Marked wontfix because no one who is actively maintaining uses the mac GUI. A fix is welcome of course; wontfix is just a clue that there is no reason to expect one to appear.)

flaschenge1st commented 1 year ago

sorry to hear - but understandable! Once again: Thank you for your support and help!

gdt commented 3 months ago

A reminder that this issue awaits testing by somebody who cares about macOS.