ajrosen / Alfred

Alfred workflows
33 stars 2 forks source link

Will not automatically create the org.mlfs.comrp.bw folder #20

Open th815 opened 4 months ago

th815 commented 4 months ago
[15:52:38.575] STDERR: Bitwarden Accelerator[Script Filter] touch: /Users/myuser/Library/Caches/com.runningwithcrayons.Alfred/Workflow Data/org.mlfs.corp.bw/collection_id: No such file or directory
touch: /Users/myuser/Library/Caches/com.runningwithcrayons.Alfred/Workflow Data/org.mlfs.corp.bw/collection_name: No such file or directory
touch: /Users/myuser/Library/Caches/com.runningwithcrayons.Alfred/Workflow Data/org.mlfs.corp.bw/organization_id: No such file or directory
touch: /Users/myuser/Library/Caches/com.runningwithcrayons.Alfred/Workflow Data/org.mlfs.corp.bw/organization_name: No such file or directory
cat: /Users/myuser/Library/Caches/com.runningwithcrayons.Alfred/Workflow Data/org.mlfs.corp.bw/collection_id: No such file or directory
cat: /Users/myuser/Library/Caches/com.runningwithcrayons.Alfred/Workflow Data/org.mlfs.corp.bw/collection_name: No such file or directory
cat: /Users/myuser/Library/Caches/com.runningwithcrayons.Alfred/Workflow Data/org.mlfs.corp.bw/organization_id: No such file or directory
cat: /Users/myuser/Library/Caches/com.runningwithcrayons.Alfred/Workflow Data/org.mlfs.corp.bw/organization_name: No such file or directory
cat: /Users/myuser/Library/Caches/com.runningwithcrayons.Alfred/Workflow Data/org.mlfs.corp.bw/sync: No such file or directory
lib/status.sh: line 6: /Users/myuser/Library/Caches/com.runningwithcrayons.Alfred/Workflow Data/org.mlfs.corp.bw/status: No such file or directory
[15:52:38.576] Bitwarden Accelerator[Script Filter] { "items": 
[ {}
, {
  "title": "Login to Bitwarden"
, "arg": "login", "subtitle": "Default myemail@gmail.com"}
, {
  "title": "Configure Workflow"
, "arg": "workflow", "subtitle": "Opens in Alfred Preferences"}
]
 }
[15:52:39.551] Bitwarden Accelerator[Script Filter] Processing complete
[15:52:39.552] Bitwarden Accelerator[Script Filter] Passing output 'login' to Arg and Vars
[15:52:39.554] Bitwarden Accelerator[Arg and Vars] Processing complete
[15:52:39.556] Bitwarden Accelerator[Arg and Vars] Passing output 'login' to Conditional
[15:52:39.558] Bitwarden Accelerator[Conditional] Processing complete
[15:52:39.560] Bitwarden Accelerator[Conditional] Passing output 'login' to Call External Trigger
[15:52:39.564] Bitwarden Accelerator[Run Script] Running directly with argument ''
[15:52:41.843] ERROR: Bitwarden Accelerator[Run Script] touch: /Users/myuser/Library/Caches/com.runningwithcrayons.Alfred/Workflow Data/org.mlfs.corp.bw/collection_id: No such file or directory
touch: /Users/myuser/Library/Caches/com.runningwithcrayons.Alfred/Workflow Data/org.mlfs.corp.bw/collection_name: No such file or directory
touch: /Users/myuser/Library/Caches/com.runningwithcrayons.Alfred/Workflow Data/org.mlfs.corp.bw/organization_id: No such file or directory
touch: /Users/myuser/Library/Caches/com.runningwithcrayons.Alfred/Workflow Data/org.mlfs.corp.bw/organization_name: No such file or directory
cat: /Users/myuser/Library/Caches/com.runningwithcrayons.Alfred/Workflow Data/org.mlfs.corp.bw/collection_id: No such file or directory
cat: /Users/myuser/Library/Caches/com.runningwithcrayons.Alfred/Workflow Data/org.mlfs.corp.bw/collection_name: No such file or directory
cat: /Users/myuser/Library/Caches/com.runningwithcrayons.Alfred/Workflow Data/org.mlfs.corp.bw/organization_id: No such file or directory
cat: /Users/myuser/Library/Caches/com.runningwithcrayons.Alfred/Workflow Data/org.mlfs.corp.bw/organization_name: No such file or directory
cat: /Users/myuser/Library/Caches/com.runningwithcrayons.Alfred/Workflow Data/org.mlfs.corp.bw/sync: No such file or directory
lib/status.sh: line 6: /Users/myuser/Library/Caches/com.runningwithcrayons.Alfred/Workflow Data/org.mlfs.corp.bw/status: No such file or directory
touch: /Users/myuser/Library/Caches/com.runningwithcrayons.Alfred/Workflow Data/org.mlfs.corp.bw/collection_id: No such file or directory
touch: /Users/myuser/Library/Caches/com.runningwithcrayons.Alfred/Workflow Data/org.mlfs.corp.bw/collection_name: No such file or directory
touch: /Users/myuser/Library/Caches/com.runningwithcrayons.Alfred/Workflow Data/org.mlfs.corp.bw/organization_id: No such file or directory
touch: /Users/myuser/Library/Caches/com.runningwithcrayons.Alfred/Workflow Data/org.mlfs.corp.bw/organization_name: No such file or directory
cat: /Users/myuser/Library/Caches/com.runningwithcrayons.Alfred/Workflow Data/org.mlfs.corp.bw/collection_id: No such file or directory
cat: /Users/myuser/Library/Caches/com.runningwithcrayons.Alfred/Workflow Data/org.mlfs.corp.bw/collection_name: No such file or directory
cat: /Users/myuser/Library/Caches/com.runningwithcrayons.Alfred/Workflow Data/org.mlfs.corp.bw/organization_id: No such file or directory
cat: /Users/myuser/Library/Caches/com.runningwithcrayons.Alfred/Workflow Data/org.mlfs.corp.bw/organization_name: No such file or directory
cat: /Users/myuser/Library/Caches/com.runningwithcrayons.Alfred/Workflow Data/org.mlfs.corp.bw/sync: No such file or directory
/Users/myuser/Library/Application Support/Alfred/Alfred.alfredpreferences/workflows/user.workflow.732992FB-74DC-47E0-B2EC-30D1348EF7F6/login.sh: line 40: jq: command not found
/Users/myuser/Library/Application Support/Alfred/Alfred.alfredpreferences/workflows/user.workflow.732992FB-74DC-47E0-B2EC-30D1348EF7F6/login.sh: line 40: jq: command not found
/Users/myuser/Library/Application Support/Alfred/Alfred.alfredpreferences/workflows/user.workflow.732992FB-74DC-47E0-B2EC-30D1348EF7F6/login.sh: line 45: jq: command not found
[15:52:41.845] Bitwarden Accelerator[Run Script] Processing complete
[15:52:41.845] Bitwarden Accelerator[Run Script] Passing output '' to Conditional
[15:52:48.772] Bitwarden Accelerator[Script Filter] Queuing argument '(null)'
[15:52:48.880] Bitwarden Accelerator[Script Filter] Script with argv '(null)' finished
[15:52:48.882] STDERR: Bitwarden Accelerator[Script Filter] touch: /Users/myuser/Library/Caches/com.runningwithcrayons.Alfred/Workflow Data/org.mlfs.corp.bw/collection_id: No such file or directory
touch: /Users/myuser/Library/Caches/com.runningwithcrayons.Alfred/Workflow Data/org.mlfs.corp.bw/collection_name: No such file or directory
touch: /Users/myuser/Library/Caches/com.runningwithcrayons.Alfred/Workflow Data/org.mlfs.corp.bw/organization_id: No such file or directory
touch: /Users/myuser/Library/Caches/com.runningwithcrayons.Alfred/Workflow Data/org.mlfs.corp.bw/organization_name: No such file or directory
cat: /Users/myuser/Library/Caches/com.runningwithcrayons.Alfred/Workflow Data/org.mlfs.corp.bw/collection_id: No such file or directory
cat: /Users/myuser/Library/Caches/com.runningwithcrayons.Alfred/Workflow Data/org.mlfs.corp.bw/collection_name: No such file or directory
cat: /Users/myuser/Library/Caches/com.runningwithcrayons.Alfred/Workflow Data/org.mlfs.corp.bw/organization_id: No such file or directory
cat: /Users/myuser/Library/Caches/com.runningwithcrayons.Alfred/Workflow Data/org.mlfs.corp.bw/organization_name: No such file or directory
cat: /Users/myuser/Library/Caches/com.runningwithcrayons.Alfred/Workflow Data/org.mlfs.corp.bw/sync: No such file or directory
lib/status.sh: line 6: /Users/myuser/Library/Caches/com.runningwithcrayons.Alfred/Workflow Data/org.mlfs.corp.bw/status: No such file or directory

When I manually created the directory, it worked normally.

ajrosen commented 4 months ago

Hi @th815, and thank you for the bug report.

How did you install the Bitwarden CLI? Or, where is the bw executable?

Also, did you get a dialog offering to install it?

I see that the cache sub-directory is only created when the workflow finds bw in a certain location. It looks in:

/usr/local/bin
/opt/{homebrew,local}/bin
/usr/local/Cellar/bitwarden-cli/*/bin
/opt/homebrew/Cellar/bitwarden-cli/*/bin

If it's not there, the directory is never created.

dimdom69 commented 1 month ago

I'm getting the same issue. I installed the Bitwarden CLI via brew. I have confirmed that bw is in /opt/homebrew/Cellar/bitwarden-cli/2024.10.0/bin

EDIT: Can also confirm, simply manually creating the directory fixes the issues.