Ice icon indicating copy to clipboard operation
Ice copied to clipboard

[Bug]: Can't hide Spotlight icon?

Open luckman212 opened this issue 1 year ago • 9 comments

Check Existing Issues

  • [X] I have checked existing issues, and this issue is not a duplicate

Description

I compiled a custom build based on commit https://github.com/jordanbaird/Ice/commit/bc47362f10200cb7f90f67ff50d487b46f6d7376 and am running it on 14.6.1

Trying to hide the "Spotlight" icon has resulted in this (error message and 2 spotlight icons)

image

I had the same issue with the latest 0.10.4 which is why I'm reporting the issue against the latest commit instead. I deleted the prefs via defaults delete com.jordanbaird.Ice and rebooted but that hasn't changed things. I am also still unable to keep Dato's icons where I want them, they always either disappear or move to the end of the line (far left, out of visibility).

Ice Version

0.10.4

macOS Version

14.6.1

luckman212 avatar Aug 12 '24 14:08 luckman212

It's clear we need some better error reporting, as "Could not complete" doesn't really say much. Let me make those changes. Once I'm done, could you compile a new build and let me know what the error says?

Also, is that a third Spotlight item to the left of OneDrive?

As far as the Dato issue goes, that will remain an issue until we have profiles, as we currently don't have a way to enforce the order of items.

jordanbaird avatar Aug 12 '24 14:08 jordanbaird

Okay, the change has been made.

jordanbaird avatar Aug 12 '24 15:08 jordanbaird

Awesome! That was fast. I am compiling now, will retest asap.

luckman212 avatar Aug 12 '24 16:08 luckman212

@jordanbaird Hmm, I've built based on commit https://github.com/jordanbaird/Ice/commit/461508312cbfdc64addd44f0fb82727759c049ef, and now I can't reproduce the actual "error" dialog, but I still can't do much with the Spotlight icon. See video below. Is there any other sort of debug log somewhere that can be inspected?

https://github.com/user-attachments/assets/0324cbf7-b2fd-43fc-88de-93061a23f3e0

luckman212 avatar Aug 12 '24 18:08 luckman212

Ice doesn't currently have a way to export logs, although that is something I've been meaning to get to. The best way I can think of to access logs right now is to view them in real time using the Console app. In the "Action" menu, check the options to include info and debug messages. Then, use the search bar to show only the messages from Ice. Not the most convenient, but it's what we have to work with for now.

jordanbaird avatar Aug 13 '24 12:08 jordanbaird

I'm going to try to use the Terminal with log stream e.g.

log stream --info --debug --predicate 'subsystem == "com.jordanbaird.Ice"'

luckman212 avatar Aug 14 '24 12:08 luckman212

I ran this and watched it for a couple of minutes while I furiously moved the Spotlight icon around from right to left, into and out of the hidden section. But nothing seemingly related appeared in the log:

Timestamp                       Thread     Type        Activity             PID    TTL
2024-08-14 08:41:58.772588-0400 0x1935     Debug       0x0                  715    0    Ice: [com.jordanbaird.Ice:MenuBarItemManager] Skipping item cache as menu bar item windows have not changed
2024-08-14 08:41:58.772791-0400 0x1935     Debug       0x0                  715    0    Ice: [com.jordanbaird.Ice:MenuBarItemImageCache] Skipping image cache as Ice Bar not visible, app not frontmost
2024-08-14 08:42:00.633137-0400 0x1935     Debug       0xb6fe               715    0    Ice: [com.jordanbaird.Ice:AppState] First time activating app, so going through Dock
2024-08-14 08:42:00.749232-0400 0x1935     Debug       0xb6fe               715    0    Ice: [com.jordanbaird.Ice:MenuBarItemImageCache] Skipping image cache as Ice Bar not visible, app not frontmost
2024-08-14 08:42:01.763057-0400 0x1935     Debug       0x0                  715    0    Ice: [com.jordanbaird.Ice:MenuBarItemImageCache] Skipping image cache as Ice Bar not visible, Settings visible but not on Menu Bar Items pane
2024-08-14 08:42:03.774658-0400 0x1935     Debug       0x0                  715    0    Ice: [com.jordanbaird.Ice:MenuBarItemManager] Skipping item cache as menu bar item windows have not changed
2024-08-14 08:42:08.778078-0400 0x1935     Debug       0x0                  715    0    Ice: [com.jordanbaird.Ice:MenuBarItemManager] Skipping item cache as menu bar item windows have not changed
2024-08-14 08:42:13.777415-0400 0x1935     Debug       0x0                  715    0    Ice: [com.jordanbaird.Ice:MenuBarItemManager] Skipping item cache as menu bar item windows have not changed
2024-08-14 08:42:13.777655-0400 0x1935     Debug       0x0                  715    0    Ice: [com.jordanbaird.Ice:MenuBarItemImageCache] Skipping image cache as Ice Bar not visible, app not frontmost
2024-08-14 08:42:16.762927-0400 0x1935     Debug       0x0                  715    0    Ice: [com.jordanbaird.Ice:MenuBarItemImageCache] Skipping image cache as Ice Bar not visible, app not frontmost
2024-08-14 08:42:18.780405-0400 0x1935     Debug       0x0                  715    0    Ice: [com.jordanbaird.Ice:MenuBarItemManager] Skipping item cache as menu bar item windows have not changed
2024-08-14 08:42:19.762862-0400 0x1935     Debug       0x0                  715    0    Ice: [com.jordanbaird.Ice:MenuBarItemImageCache] Skipping image cache as Ice Bar not visible, app not frontmost
2024-08-14 08:42:23.771423-0400 0x1935     Debug       0x0                  715    0    Ice: [com.jordanbaird.Ice:MenuBarItemManager] Skipping item cache as menu bar item windows have not changed
2024-08-14 08:42:28.773807-0400 0x1935     Debug       0x0                  715    0    Ice: [com.jordanbaird.Ice:MenuBarItemManager] Skipping item cache as menu bar item windows have not changed

luckman212 avatar Aug 14 '24 12:08 luckman212

That's really weird. Obviously something is wrong with the way Ice is retrieving the menu bar items. There have been a few bug reports about similar problems (missing or duplicate items, items failing to move, etc). Might take an extensive rewrite to fix this.

jordanbaird avatar Aug 18 '24 08:08 jordanbaird

Ok, if there's any other debug info I can send your way to help solve this I'm happy to help of course.

luckman212 avatar Aug 18 '24 11:08 luckman212

Fyi I am using 0.11.0-beta.1 now.

luckman212 avatar Aug 28 '24 13:08 luckman212

Can you try with 0.11.0-beta.3? I've done a pretty major overhaul on the way items are moved.

jordanbaird avatar Sep 12 '24 21:09 jordanbaird

@luckman212 Updates on this? See my comment above (although we're no longer on the beta).

jordanbaird avatar Sep 29 '24 23:09 jordanbaird

Ah sorry for not circling back. I'm on macOS 15.0 now, with Ice 0.11.5. I can move Spotlight around now and it seems to stay put! So, I'd call this one solved (sample size of 1).

Thank you 🙏

luckman212 avatar Sep 29 '24 23:09 luckman212