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

Sum percentage not working after 4.0.x update #111

Closed
bcarusodev opened this issue Apr 17, 2023 · 2 comments
Closed

Sum percentage not working after 4.0.x update #111

bcarusodev opened this issue Apr 17, 2023 · 2 comments

Comments

@bcarusodev
Copy link

bcarusodev commented Apr 17, 2023

If you have a problem with the workflow please answer the following questions.

Are you using the latest version of the workflow?
Yes

Describe the bug
Typing this → 5+5% it works on 3.5 version, but not in 4.x.x

To Reproduce
Steps to reproduce the behavior:

  1. Open Alfred '...'
  2. Type a number and sum percentage → Ex: '5+15%'
  3. See error (it doesn't make the calculation, it shows like a normal string or search on the web)

Expected behavior
Make the calculation. Example if i'm typing 5+5% i expect 5.25 as result.

Debug Output
[18:20:01.088] Logging Started...
[18:20:04.031] Calculate Anything[Script Filter] Queuing argument ''
[18:20:04.094] Calculate Anything[Script Filter] Script with argv '(null)' finished
[18:20:04.096] ERROR: Calculate Anything[Script Filter] Code 255: Fatal error: Uncaught Error: Call to undefined function Alfred\normalizer_normalize() in /Users/brunocaruso/Documents/AlfredSettings/Alfred.alfredpreferences/workflows/user.workflow.1BCE8DFD-522C-4FF4-8E4B-90E6037709E2/alfred/Alfred.php:318
Stack trace:
#0 /Users/brunocaruso/Documents/AlfredSettings/Alfred.alfredpreferences/workflows/user.workflow.1BCE8DFD-522C-4FF4-8E4B-90E6037709E2/process.php(29): Alfred\cleanQuery('5')
#1 Command line code(2): include_once('/Users/brunocar...')
#2 {main}
thrown in /Users/brunocaruso/Documents/AlfredSettings/Alfred.alfredpreferences/workflows/user.workflow.1BCE8DFD-522C-4FF4-8E4B-90E6037709E2/alfred/Alfred.php on line 318
[18:20:04.097] ERROR: Calculate Anything[Script Filter] JSON error: JSON text did not start with array or object and option to allow fragments not set. in JSON:
Fatal error: Uncaught Error: Call to undefined function Alfred\normalizer_normalize() in /Users/brunocaruso/Documents/AlfredSettings/Alfred.alfredpreferences/workflows/user.workflow.1BCE8DFD-522C-4FF4-8E4B-90E6037709E2/alfred/Alfred.php:318
Stack trace:
#0 /Users/brunocaruso/Documents/AlfredSettings/Alfred.alfredpreferences/workflows/user.workflow.1BCE8DFD-522C-4FF4-8E4B-90E6037709E2/process.php(29): Alfred\cleanQuery('5')
#1 Command line code(2): include_once('/Users/brunocar...')
#2 {main}
thrown in /Users/brunocaruso/Documents/AlfredSettings/Alfred.alfredpreferences/workflows/user.workflow.1BCE8DFD-522C-4FF4-8E4B-90E6037709E2/alfred/Alfred.php on line 318
[18:20:04.191] Calculate Anything[Script Filter] Queuing argument '+'
[18:20:04.237] Calculate Anything[Script Filter] Queuing argument '+5'
[18:20:04.301] Calculate Anything[Script Filter] Script with argv '(null)' finished
[18:20:04.304] ERROR: Calculate Anything[Script Filter] Code 255: Fatal error: Uncaught Error: Call to undefined function Alfred\normalizer_normalize() in /Users/brunocaruso/Documents/AlfredSettings/Alfred.alfredpreferences/workflows/user.workflow.1BCE8DFD-522C-4FF4-8E4B-90E6037709E2/alfred/Alfred.php:318
Stack trace:
#0 /Users/brunocaruso/Documents/AlfredSettings/Alfred.alfredpreferences/workflows/user.workflow.1BCE8DFD-522C-4FF4-8E4B-90E6037709E2/process.php(29): Alfred\cleanQuery('5+5')
#1 Command line code(2): include_once('/Users/brunocar...')
#2 {main}
thrown in /Users/brunocaruso/Documents/AlfredSettings/Alfred.alfredpreferences/workflows/user.workflow.1BCE8DFD-522C-4FF4-8E4B-90E6037709E2/alfred/Alfred.php on line 318
[18:20:04.305] ERROR: Calculate Anything[Script Filter] JSON error: JSON text did not start with array or object and option to allow fragments not set. in JSON:
Fatal error: Uncaught Error: Call to undefined function Alfred\normalizer_normalize() in /Users/brunocaruso/Documents/AlfredSettings/Alfred.alfredpreferences/workflows/user.workflow.1BCE8DFD-522C-4FF4-8E4B-90E6037709E2/alfred/Alfred.php:318
Stack trace:
#0 /Users/brunocaruso/Documents/AlfredSettings/Alfred.alfredpreferences/workflows/user.workflow.1BCE8DFD-522C-4FF4-8E4B-90E6037709E2/process.php(29): Alfred\cleanQuery('5+5')
#1 Command line code(2): include_once('/Users/brunocar...')
#2 {main}
thrown in /Users/brunocaruso/Documents/AlfredSettings/Alfred.alfredpreferences/workflows/user.workflow.1BCE8DFD-522C-4FF4-8E4B-90E6037709E2/alfred/Alfred.php on line 318
[18:20:04.398] Calculate Anything[Script Filter] Queuing argument '+5%'
[18:20:04.464] Calculate Anything[Script Filter] Script with argv '(null)' finished
[18:20:04.469] ERROR: Calculate Anything[Script Filter] Code 255: Fatal error: Uncaught Error: Call to undefined function Alfred\normalizer_normalize() in /Users/brunocaruso/Documents/AlfredSettings/Alfred.alfredpreferences/workflows/user.workflow.1BCE8DFD-522C-4FF4-8E4B-90E6037709E2/alfred/Alfred.php:318
Stack trace:
#0 /Users/brunocaruso/Documents/AlfredSettings/Alfred.alfredpreferences/workflows/user.workflow.1BCE8DFD-522C-4FF4-8E4B-90E6037709E2/process.php(29): Alfred\cleanQuery('5+5%')
#1 Command line code(2): include_once('/Users/brunocar...')
#2 {main}
thrown in /Users/brunocaruso/Documents/AlfredSettings/Alfred.alfredpreferences/workflows/user.workflow.1BCE8DFD-522C-4FF4-8E4B-90E6037709E2/alfred/Alfred.php on line 318
[18:20:04.470] ERROR: Calculate Anything[Script Filter] JSON error: JSON text did not start with array or object and option to allow fragments not set. in JSON:
Fatal error: Uncaught Error: Call to undefined function Alfred\normalizer_normalize() in /Users/brunocaruso/Documents/AlfredSettings/Alfred.alfredpreferences/workflows/user.workflow.1BCE8DFD-522C-4FF4-8E4B-90E6037709E2/alfred/Alfred.php:318
Stack trace:
#0 /Users/brunocaruso/Documents/AlfredSettings/Alfred.alfredpreferences/workflows/user.workflow.1BCE8DFD-522C-4FF4-8E4B-90E6037709E2/process.php(29): Alfred\cleanQuery('5+5%')
#1 Command line code(2): include_once('/Users/brunocar...')
#2 {main}
thrown in /Users/brunocaruso/Documents/AlfredSettings/Alfred.alfredpreferences/workflows/user.workflow.1BCE8DFD-522C-4FF4-8E4B-90E6037709E2/alfred/Alfred.php on line 318

System information:

  • OS: macOS 11.6.1
  • Alfred Version 5.0.1 [2067]
  • PHP Version 7.3.29

Additional context
macOS running on a Hackintosh (OpenCore)

@bcarusodev bcarusodev changed the title Percentage not working after 4.0.1 update Sum percentage not working after 4.0.x update Apr 17, 2023
@bcarusodev
Copy link
Author

Fixed with: #104 (comment)

@biati-digital
Copy link
Owner

An update has been released, you should be able to update directly from Alfred or download the latest update from the releases page

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