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

Date/time conversion seems not to work at all on Sequia 15.x #172

Open
nk9 opened this issue Jan 19, 2025 · 1 comment
Open

Date/time conversion seems not to work at all on Sequia 15.x #172

nk9 opened this issue Jan 19, 2025 · 1 comment

Comments

@nk9
Copy link

nk9 commented Jan 19, 2025

is your problem related to the PHP binary, PHP Path, PHP installation, etc.?
No

Are you using the latest version of the workflow?
Yes, v4.0.7

Have you installed the workflow dependencies?
Yes:

$ which php
/opt/homebrew/bin/php

Describe the bug
I can't use the time subcommand for anything.

To Reproduce
Steps to reproduce the behavior:

  1. Open Alfred with CA installed and type time. Then ensure you've selected the right one.
  2. Follow the example in the README: "time +15 years"
  3. You only get Google, etc results in Alfred, the workflow does nothing.
Image

Expected behavior
As in the README.

Debug Output

See debug output

[16:45:47.600] Calculate Anything[Script Filter] Queuing argument '+15 years'
[16:45:47.652] Calculate Anything[Script Filter] Script with argv '(null)' finished
[16:45:47.655] STDERR: Calculate Anything[Script Filter] PHP Deprecated:  Carbon\Traits\Date::utcOffset(): Implicitly marking parameter $minuteOffset as nullable is deprecated, the explicit nullable type must be used instead in /Users/nick/Library/Application Support/Alfred/Alfred.alfredpreferences/workflows/user.workflow.757C2117-F8FC-40FE-9659-87AA33EC6D5C/vendor/nesbot/carbon/src/Carbon/Traits/Date.php on line 1440
PHP Deprecated:  Carbon\Traits\Localization::locale(): Implicitly marking parameter $locale as nullable is deprecated, the explicit nullable type must be used instead in /Users/nick/Library/Application Support/Alfred/Alfred.alfredpreferences/workflows/user.workflow.757C2117-F8FC-40FE-9659-87AA33EC6D5C/vendor/nesbot/carbon/src/Carbon/Traits/Localization.php on line 436
PHP Deprecated:  Carbon\Traits\Test::setDefaultTimezone(): Implicitly marking parameter $date as nullable is deprecated, the explicit nullable type must be used instead in /Users/nick/Library/Application Support/Alfred/Alfred.alfredpreferences/workflows/user.workflow.757C2117-F8FC-40FE-9659-87AA33EC6D5C/vendor/nesbot/carbon/src/Carbon/Traits/Test.php on line 183
PHP Deprecated:  Return type of Carbon\Traits\Date::createFromTimestamp($timestamp, $tz = null) should either be compatible with DateTime::createFromTimestamp(int|float $timestamp): static, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /Users/nick/Library/Application Support/Alfred/Alfred.alfredpreferences/workflows/user.workflow.757C2117-F8FC-40FE-9659-87AA33EC6D5C/vendor/nesbot/carbon/src/Carbon/Traits/Timestamp.php on line 29
PHP Deprecated:  Symfony\Component\Translation\Translator::__construct(): Implicitly marking parameter $formatter as nullable is deprecated, the explicit nullable type must be used instead in /Users/nick/Library/Application Support/Alfred/Alfred.alfredpreferences/workflows/user.workflow.757C2117-F8FC-40FE-9659-87AA33EC6D5C/vendor/symfony/translation/Translator.php on line 91
PHP Deprecated:  Symfony\Component\Translation\Translator::__construct(): Implicitly marking parameter $cacheDir as nullable is deprecated, the explicit nullable type must be used instead in /Users/nick/Library/Application Support/Alfred/Alfred.alfredpreferences/workflows/user.workflow.757C2117-F8FC-40FE-9659-87AA33EC6D5C/vendor/symfony/translation/Translator.php on line 91
PHP Deprecated:  Symfony\Contracts\Translation\TranslatorInterface::trans(): Implicitly marking parameter $domain as nullable is deprecated, the explicit nullable type must be used instead in /Users/nick/Library/Application Support/Alfred/Alfred.alfredpreferences/workflows/user.workflow.757C2117-F8FC-40FE-9659-87AA33EC6D5C/vendor/symfony/translation-contracts/TranslatorInterface.php on line 66
PHP Deprecated:  Symfony\Contracts\Translation\TranslatorInterface::trans(): Implicitly marking parameter $locale as nullable is deprecated, the explicit nullable type must be used instead in /Users/nick/Library/Application Support/Alfred/Alfred.alfredpreferences/workflows/user.workflow.757C2117-F8FC-40FE-9659-87AA33EC6D5C/vendor/symfony/translation-contracts/TranslatorInterface.php on line 66
PHP Deprecated:  Symfony\Component\Translation\Formatter\MessageFormatter::__construct(): Implicitly marking parameter $intlFormatter as nullable is deprecated, the explicit nullable type must be used instead in /Users/nick/Library/Application Support/Alfred/Alfred.alfredpreferences/workflows/user.workflow.757C2117-F8FC-40FE-9659-87AA33EC6D5C/vendor/symfony/translation/Formatter/MessageFormatter.php on line 33
PHP Deprecated:  Symfony\Component\Translation\IdentityTranslator::__construct(): Implicitly marking parameter $selector as nullable is deprecated, the explicit nullable type must be used instead in /Users/nick/Library/Application Support/Alfred/Alfred.alfredpreferences/workflows/user.workflow.757C2117-F8FC-40FE-9659-87AA33EC6D5C/vendor/symfony/translation/IdentityTranslator.php on line 32
PHP Deprecated:  Symfony\Contracts\Translation\TranslatorTrait::trans(): Implicitly marking parameter $domain as nullable is deprecated, the explicit nullable type must be used instead in /Users/nick/Library/Application Support/Alfred/Alfred.alfredpreferences/workflows/user.workflow.757C2117-F8FC-40FE-9659-87AA33EC6D5C/vendor/symfony/translation-contracts/TranslatorTrait.php on line 46
PHP Deprecated:  Symfony\Contracts\Translation\TranslatorTrait::trans(): Implicitly marking parameter $locale as nullable is deprecated, the explicit nullable type must be used instead in /Users/nick/Library/Application Support/Alfred/Alfred.alfredpreferences/workflows/user.workflow.757C2117-F8FC-40FE-9659-87AA33EC6D5C/vendor/symfony/translation-contracts/TranslatorTrait.php on line 46
PHP Deprecated:  Carbon\CarbonTimeZone::toOffsetName(): Implicitly marking parameter $date as nullable is deprecated, the explicit nullable type must be used instead in /Users/nick/Library/Application Support/Alfred/Alfred.alfredpreferences/workflows/user.workflow.757C2117-F8FC-40FE-9659-87AA33EC6D5C/vendor/nesbot/carbon/src/Carbon/CarbonTimeZone.php on line 158
PHP Deprecated:  Carbon\CarbonTimeZone::toOffsetTimeZone(): Implicitly marking parameter $date as nullable is deprecated, the explicit nullable type must be used instead in /Users/nick/Library/Application Support/Alfred/Alfred.alfredpreferences/workflows/user.workflow.757C2117-F8FC-40FE-9659-87AA33EC6D5C/vendor/nesbot/carbon/src/Carbon/CarbonTimeZone.php on line 172
PHP Deprecated:  Carbon\CarbonTimeZone::toRegionName(): Implicitly marking parameter $date as nullable is deprecated, the explicit nullable type must be used instead in /Users/nick/Library/Application Support/Alfred/Alfred.alfredpreferences/workflows/user.workflow.757C2117-F8FC-40FE-9659-87AA33EC6D5C/vendor/nesbot/carbon/src/Carbon/CarbonTimeZone.php on line 188
PHP Deprecated:  Carbon\CarbonTimeZone::toRegionTimeZone(): Implicitly marking parameter $date as nullable is deprecated, the explicit nullable type must be used instead in /Users/nick/Library/Application Support/Alfred/Alfred.alfredpreferences/workflows/user.workflow.757C2117-F8FC-40FE-9659-87AA33EC6D5C/vendor/nesbot/carbon/src/Carbon/CarbonTimeZone.php on line 230
[16:45:47.656] Calculate Anything[Script Filter] Deprecated: Carbon\Traits\Date::utcOffset(): Implicitly marking parameter $minuteOffset as nullable is deprecated, the explicit nullable type must be used instead in /Users/nick/Library/Application Support/Alfred/Alfred.alfredpreferences/workflows/user.workflow.757C2117-F8FC-40FE-9659-87AA33EC6D5C/vendor/nesbot/carbon/src/Carbon/Traits/Date.php on line 1440

Deprecated: Carbon\Traits\Localization::locale(): Implicitly marking parameter $locale as nullable is deprecated, the explicit nullable type must be used instead in /Users/nick/Library/Application Support/Alfred/Alfred.alfredpreferences/workflows/user.workflow.757C2117-F8FC-40FE-9659-87AA33EC6D5C/vendor/nesbot/carbon/src/Carbon/Traits/Localization.php on line 436

Deprecated: Carbon\Traits\Test::setDefaultTimezone(): Implicitly marking parameter $date as nullable is deprecated, the explicit nullable type must be used instead in /Users/nick/Library/Application Support/Alfred/Alfred.alfredpreferences/workflows/user.workflow.757C2117-F8FC-40FE-9659-87AA33EC6D5C/vendor/nesbot/carbon/src/Carbon/Traits/Test.php on line 183

Deprecated: Return type of Carbon\Traits\Date::createFromTimestamp($timestamp, $tz = null) should either be compatible with DateTime::createFromTimestamp(int|float $timestamp): static, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /Users/nick/Library/Application Support/Alfred/Alfred.alfredpreferences/workflows/user.workflow.757C2117-F8FC-40FE-9659-87AA33EC6D5C/vendor/nesbot/carbon/src/Carbon/Traits/Timestamp.php on line 29

Deprecated: Symfony\Component\Translation\Translator::__construct(): Implicitly marking parameter $formatter as nullable is deprecated, the explicit nullable type must be used instead in /Users/nick/Library/Application Support/Alfred/Alfred.alfredpreferences/workflows/user.workflow.757C2117-F8FC-40FE-9659-87AA33EC6D5C/vendor/symfony/translation/Translator.php on line 91

Deprecated: Symfony\Component\Translation\Translator::__construct(): Implicitly marking parameter $cacheDir as nullable is deprecated, the explicit nullable type must be used instead in /Users/nick/Library/Application Support/Alfred/Alfred.alfredpreferences/workflows/user.workflow.757C2117-F8FC-40FE-9659-87AA33EC6D5C/vendor/symfony/translation/Translator.php on line 91

Deprecated: Symfony\Contracts\Translation\TranslatorInterface::trans(): Implicitly marking parameter $domain as nullable is deprecated, the explicit nullable type must be used instead in /Users/nick/Library/Application Support/Alfred/Alfred.alfredpreferences/workflows/user.workflow.757C2117-F8FC-40FE-9659-87AA33EC6D5C/vendor/symfony/translation-contracts/TranslatorInterface.php on line 66

Deprecated: Symfony\Contracts\Translation\TranslatorInterface::trans(): Implicitly marking parameter $locale as nullable is deprecated, the explicit nullable type must be used instead in /Users/nick/Library/Application Support/Alfred/Alfred.alfredpreferences/workflows/user.workflow.757C2117-F8FC-40FE-9659-87AA33EC6D5C/vendor/symfony/translation-contracts/TranslatorInterface.php on line 66

Deprecated: Symfony\Component\Translation\Formatter\MessageFormatter::__construct(): Implicitly marking parameter $intlFormatter as nullable is deprecated, the explicit nullable type must be used instead in /Users/nick/Library/Application Support/Alfred/Alfred.alfredpreferences/workflows/user.workflow.757C2117-F8FC-40FE-9659-87AA33EC6D5C/vendor/symfony/translation/Formatter/MessageFormatter.php on line 33

Deprecated: Symfony\Component\Translation\IdentityTranslator::__construct(): Implicitly marking parameter $selector as nullable is deprecated, the explicit nullable type must be used instead in /Users/nick/Library/Application Support/Alfred/Alfred.alfredpreferences/workflows/user.workflow.757C2117-F8FC-40FE-9659-87AA33EC6D5C/vendor/symfony/translation/IdentityTranslator.php on line 32

Deprecated: Symfony\Contracts\Translation\TranslatorTrait::trans(): Implicitly marking parameter $domain as nullable is deprecated, the explicit nullable type must be used instead in /Users/nick/Library/Application Support/Alfred/Alfred.alfredpreferences/workflows/user.workflow.757C2117-F8FC-40FE-9659-87AA33EC6D5C/vendor/symfony/translation-contracts/TranslatorTrait.php on line 46

Deprecated: Symfony\Contracts\Translation\TranslatorTrait::trans(): Implicitly marking parameter $locale as nullable is deprecated, the explicit nullable type must be used instead in /Users/nick/Library/Application Support/Alfred/Alfred.alfredpreferences/workflows/user.workflow.757C2117-F8FC-40FE-9659-87AA33EC6D5C/vendor/symfony/translation-contracts/TranslatorTrait.php on line 46

Deprecated: Carbon\CarbonTimeZone::toOffsetName(): Implicitly marking parameter $date as nullable is deprecated, the explicit nullable type must be used instead in /Users/nick/Library/Application Support/Alfred/Alfred.alfredpreferences/workflows/user.workflow.757C2117-F8FC-40FE-9659-87AA33EC6D5C/vendor/nesbot/carbon/src/Carbon/CarbonTimeZone.php on line 158

Deprecated: Carbon\CarbonTimeZone::toOffsetTimeZone(): Implicitly marking parameter $date as nullable is deprecated, the explicit nullable type must be used instead in /Users/nick/Library/Application Support/Alfred/Alfred.alfredpreferences/workflows/user.workflow.757C2117-F8FC-40FE-9659-87AA33EC6D5C/vendor/nesbot/carbon/src/Carbon/CarbonTimeZone.php on line 172

Deprecated: Carbon\CarbonTimeZone::toRegionName(): Implicitly marking parameter $date as nullable is deprecated, the explicit nullable type must be used instead in /Users/nick/Library/Application Support/Alfred/Alfred.alfredpreferences/workflows/user.workflow.757C2117-F8FC-40FE-9659-87AA33EC6D5C/vendor/nesbot/carbon/src/Carbon/CarbonTimeZone.php on line 188

Deprecated: Carbon\CarbonTimeZone::toRegionTimeZone(): Implicitly marking parameter $date as nullable is deprecated, the explicit nullable type must be used instead in /Users/nick/Library/Application Support/Alfred/Alfred.alfredpreferences/workflows/user.workflow.757C2117-F8FC-40FE-9659-87AA33EC6D5C/vendor/nesbot/carbon/src/Carbon/CarbonTimeZone.php on line 230
{"items":[{"title":"19 January, 2040, 8:45:47 am","subtitle":"Format j F, Y, g:i:s a","arg":"19 January, 2040, 8:45:47 am"},{"title":"14 years, 11 months, 4 weeks, 2 days, 23 hours, 59 minutes, 59 seconds","subtitle":"Timespan","arg":"14 years, 11 months, 4 weeks, 2 days, 23 hours, 59 minutes, 59 seconds"},{"title":2210604347,"subtitle":"Timestamp","arg":2210604347}]}

Oddly, despite all the deprecation warnings, it's actually generating valid items:

{"items":[{"title":"19 January, 2040, 8:45:47 am","subtitle":"Format j F, Y, g:i:s a","arg":"19 January, 2040, 8:45:47 am"},{"title":"14 years, 11 months, 4 weeks, 2 days, 23 hours, 59 minutes, 59 seconds","subtitle":"Timespan","arg":"14 years, 11 months, 4 weeks, 2 days, 23 hours, 59 minutes, 59 seconds"},{"title":2210604347,"subtitle":"Timestamp","arg":2210604347}]}

System information:

  • OS: Sequoia 10.15.2
  • Alfred Version 5.5.1
  • PHP Version - 8.4.2
@juanborre
Copy link

Having the same issue.

The Alfred debug console outputs this error when converting time:

ERROR: Calculate Anything[Script Filter] JSON error: JSON text did not start with array or object and option to allow fragments not set. around line 1, column 0. in JSON:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants