godbout / alfred-time

Start and stop tracking time with Toggl, Harvest, Everhour or Clockify through Alfred 4. ⏰ī¸
MIT License
110 stars 8 forks source link

Doesn't work in macOS Monterey #46

Closed nathansnelgrove closed 2 years ago

nathansnelgrove commented 2 years ago

Hey! Wondering if you have upgraded to Monterey yet? The Time shortcut doesn't work for me, unfortunately — not sure what the problem is. I thought maybe it was a PHP compatibility problem, but I've got php 7.3.1 installed on my Mac, so that's not it.

Any thoughts?

godbout commented 2 years ago

good catch. installed yesterday. i can confirm yeah. Monterey stopped embedding PHP, which the Workflow (and most of the ones built in PHP) uses.

for the time being, you can edit the Workflow and point PHP to its homebrew or whatever install path you use.

Alfred_Preferences

godbout commented 2 years ago

i'll see what i can do in the following days. but it may be tricky. already homebrew uses different locations whether you're on an Intel or a Apple Silicon Mac :zzz:

nathansnelgrove commented 2 years ago

Man, that's a sucky problem to work through as a developer. Thanks man, much appreciated. I'll point to the Brew path I use and I guess I'll go from there! Best of luck with this.

godbout commented 2 years ago

for own reference: https://www.alfredapp.com/blog/releases/alfred-4-6-ready-for-macos-monterey/

godbout commented 2 years ago

update incoming 🚀ī¸đŸš€ī¸đŸš€ī¸

PHP8, Monterey.

nathansnelgrove commented 2 years ago

This is super exciting! I can abandon my terribly hacky Keyboard Maestro shortcut! Thanks.

On Dec 10, 2021, at 10:41 AM, G. @.***> wrote:

update incoming 🚀ī¸đŸš€ī¸đŸš€ī¸

PHP8, Monterey.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/godbout/alfred-time/issues/46#issuecomment-991076177, or unsubscribe https://github.com/notifications/unsubscribe-auth/AF4OZM6NZYS5D6FK4GIHDXDUQINQ5ANCNFSM5G2SG2WQ. Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

godbout commented 2 years ago

that sounds like a very terrible hack yes.

godbout commented 2 years ago

i haven't touched Alfred Workflows or PHP for a whole so maybe i fucked every up. let me know if it's the case. the update should be out in ten min. will ping. you.

godbout commented 2 years ago

https://github.com/godbout/alfred-time/releases/tag/4.3.0

man i hope it works. else i'll stop being a developer forever (but just for a week).

nathansnelgrove commented 2 years ago

I am so grateful for your work on this. Unfortunately, I can't seem to trigger the "time" command. Tried uninstalling and reinstalling. Not sure what I've done, but it's probably something dumb.

nathansnelgrove commented 2 years ago

FWIW, I tried updating PHP via Brew to PHP 8.1.0, and still can't run the Time command from Alfred. Again, it's probably something local to my machine. I probably need to reboot or something weird like that. Apologies if it's that easy and I'm about to send you down a rabbit hole.

godbout commented 2 years ago

currently up to PHP8.0, not 8.1. Alfred Time uses some other packages that are not updated for 8.1 yet. so it's 7.4 or 8.0.

godbout commented 2 years ago

yeah, that's gonna be the issue with PHP unfortunately. you gonna the right version to run that shit ☚ī¸

nathansnelgrove commented 2 years ago

Of course! Fixed. Installed PHP 8 via Brew, and copied and pasted this script in place yours:

export PATH="/usr/local/opt/php@8.0/bin:${PATH}"

Everything works now. Sir, I owe you a beer. Several beers. Or coffee, or money, or whatever your preference is really. Thanks for your work on this. It makes my day substantially easier.

godbout commented 2 years ago

well the fact that you're having a better thanks to what i'm doing is all i need 🙂ī¸ just kidding. yeah a couple of beers would be nice 😂ī¸đŸ˜‚ī¸đŸ˜‚ī¸

alright, enjoy! and thanks for having taken the time to report. will close that one. see you at the next.

nathansnelgrove commented 2 years ago

If you're ever in Toronto or the Hamilton area of Canada, give me a holler and I'll get you those beers. Cheers!

godbout commented 2 years ago

i didn't know Canadians could use the software. i'll have to update the license.

domwass commented 2 years ago

Thanks from Germany, guys – due to your guidance I managed to get Time running under Monterey again!

godbout commented 2 years ago

great! the pleasure is @nathansnelgrove's. danke for the coffee. tomorrow's is on you.