AlexanderWillner / deepl-alfred-workflow2

DeepL Alfred Workflow
228 stars 8 forks source link

It does nothing #28

Closed MannyFay closed 12 months ago

MannyFay commented 12 months ago

I'm on macOS Ventura. Workflow is installed without API key.

If I start to write dl, DeepL logo is in Alfreds search results. But if I continue typing and end query with . DeepL is gone from the Alfred results and Chrome is the only option. Why?

[22:08:43.447] Deepl-Translate[Script Filter] Queuing argument 'guten '
[22:08:43.493] Deepl-Translate[Script Filter] Script with argv '(null)' finished
[22:08:43.494] ERROR: Deepl-Translate[Script Filter] Code 1: {"items": [{"uid": null,"arg": "End query with .","valid": "yes","autocomplete": "autocomplete","title": "End query with ."}]}
[22:08:44.455] Deepl-Translate[Script Filter] Queuing argument 'guten tan'
[22:08:44.500] Deepl-Translate[Script Filter] Script with argv '(null)' finished
[22:08:44.501] ERROR: Deepl-Translate[Script Filter] Code 1: {"items": [{"uid": null,"arg": "End query with .","valid": "yes","autocomplete": "autocomplete","title": "End query with ."}]}
[22:08:45.664] Deepl-Translate[Script Filter] Queuing argument 'guten tag.'
[22:08:45.913] Deepl-Translate[Script Filter] Script with argv '(null)' finished
[22:08:45.913] ERROR: Deepl-Translate[Script Filter] Code 126: ./deepl.sh: line 105: /Volumes/Users/manny/.config/alfred/Alfred.alfredpreferences/workflows/user.workflow.0F46EDD3-0C5A-4FE4-8288-E974D1C0D9EC/jq-dist: Bad CPU type in executable
AlexanderWillner commented 12 months ago

Ah, I assume you're using an M1/M2 - seems jq-dist is a x64 binary which only works if rosetta is enabled. Seems there is no native arm binary...

However, I just compiled a universal binary myself, if you'd like to test it...it's attached.

jq-dist.zip

MannyFay commented 12 months ago

Thanks for the reply @AlexanderWillner .

Yes, I'm on a M1. First, should i install Rosseta? If yes, ...no :-P I do not install Rosetta on my machine. Second, how do I do compile things to a ARM-architecture? Do you have a good source by the hand where I can gain knowledge about this topic?

AlexanderWillner commented 12 months ago

No need to compile it yourself. You could also use https://brew.sh and run brew install jq which would install an arm64 native jq binary.