You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
Open Alfred with CA installed and type time. Then ensure you've selected the right one.
Follow the example in the README: "time +15 years"
You only get Google, etc results in Alfred, the workflow does nothing.
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:
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:
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:
Describe the bug
I can't use the
time
subcommand for anything.To Reproduce
Steps to reproduce the behavior:
time
. Then ensure you've selected the right one.Expected behavior
As in the README.
Debug Output
See debug output
Oddly, despite all the deprecation warnings, it's actually generating valid items:
System information:
The text was updated successfully, but these errors were encountered: