deanishe / alfred-firefox

Search and control Firefox from Alfred
Other
345 stars 19 forks source link

No such file or directory when running 'ffass > Install Firefox Extension' #3

Closed ghost closed 4 years ago

ghost commented 4 years ago

image

I tried reinstalling the workflow and the firefox extension but that did not fix it.

ghost commented 4 years ago

When i run alfred-firefox in finder, i get the following errors:

nikodem@Nikodems-MacBook-Pro ~ % /Users/nikodem/Library/Application\ Support/Alfred/Alfred.alfredpreferences/workflows/user.workflow.A6F257C0-5E96-41AA-94CA-76CE474B0669/alfred-firefox ; exit; panic: invalid Workflow environment: alfred_workflow_bundleid is not set, alfred_workflow_cache is not set, alfred_workflow_data is not set

goroutine 1 [running]: github.com/deanishe/awgo.NewFromEnv(0x0, 0x0, 0xc0000aac00, 0x3, 0x3, 0xc0000aac00) /Users/daj/pkg/mod/github.com/deanishe/awgo@v0.22.0/workflow.go:159 +0xbe3 github.com/deanishe/awgo.New(0xc0000aac00, 0x3, 0x3, 0xc0000aabe0) /Users/daj/pkg/mod/github.com/deanishe/awgo@v0.22.0/workflow.go:149 +0x47 main.init() /Users/daj/Code/Alfred/alfred-firefox-assistant/main.go:54 +0x325

[Process completed]

ghost commented 4 years ago

I managed to find the log file and here's the error: 15:27:21 ---------------- END STACK TRACE ----------------- 15:27:21 Sent 1 result(s) to Alfred 15:27:21 [ERROR] open /Users/nikodem/Library/Application Support/Mozilla/NativeMessagingHosts/net.deanishe.alfred.firefox.json: no such file or directory 15:27:21 Get help at https://github.com/deanishe/alfred-firefox/issues 15:27:21 ------------------- 7.918355ms -------------------

deanishe commented 4 years ago

Run ffass > Install Firefox Extension doesn't mean type that into Alfred. It means type ffass into Alfred, and then choose the Install Firefox Extension item.

ghost commented 4 years ago

Ok so i tried that just now, and I'm getting the following trace:

https://pastebin.com/AdExcKu5

ghost commented 4 years ago

Also it is worth pointing out I don't have an 'install firefox extension' item: https://imgur.com/a/TwtxsSM

deanishe commented 4 years ago

Also it is worth pointing out I don't have an 'install firefox extension' item

Of course not. The workflow is crashing.

Which version of Firefox do you have installed?

Can you check that this directory exists: /Users/nikodem/Library/Application Support/Mozilla/NativeMessagingHosts?

ghost commented 4 years ago
Screenshot 2020-02-12 at 20 41 37 Screenshot 2020-02-12 at 20 42 10

Yeah, that directory doesn't exist for me.

deanishe commented 4 years ago

Create it, and the workflow should work.

ghost commented 4 years ago

That worked! Thank you so much.