Closed trijste closed 2 years ago
Here's the info from the Alred debugger:
[09:50:35.851] Logging Started...
[09:50:38.363] Johnny.Decimal tools[[Script Filter](alfredpreferences:workflows%3Eworkflow%3Euser.workflow.E9242E09-029C-407B-9981-0B79D313BF54%3EF978713D-5E2D-4119-A13F-B0EAE1D0D1DA)] Queuing argument '(null)'
[09:50:38.403] Johnny.Decimal tools[[Script Filter](alfredpreferences:workflows%3Eworkflow%3Euser.workflow.E9242E09-029C-407B-9981-0B79D313BF54%3EF978713D-5E2D-4119-A13F-B0EAE1D0D1DA)] Script with argv '(null)' finished
[09:50:38.405] STDERR: Johnny.Decimal tools[[Script Filter](alfredpreferences:workflows%3Eworkflow%3Euser.workflow.E9242E09-029C-407B-9981-0B79D313BF54%3EF978713D-5E2D-4119-A13F-B0EAE1D0D1DA)] 🍺
09:50:38 workflow.go:328: ---- Johnny.Decimal tools/0.3.2 (AwGo/0.27.1) ----
09:50:38 update.go:210: 41h25m26.959926s since last check for update
09:50:38 main.go:78: Running update check in background...
09:50:38 update.go:198: latest version: 0.3.2
09:50:38 search.go:152: first query=
09:50:38 feedback.go:481: Sent 3 result(s) to Alfred
09:50:38 workflow.go:405: ------------------ 10.599453ms -------------------
[09:50:38.423] Johnny.Decimal tools[[Script Filter](alfredpreferences:workflows%3Eworkflow%3Euser.workflow.E9242E09-029C-407B-9981-0B79D313BF54%3EF978713D-5E2D-4119-A13F-B0EAE1D0D1DA)] {
"variables": {
"AW_SESSION_ID": "1BRUCBE843I4J0RR9WI775ZW"
},
"items": [
{
"title": "Areas",
"subtitle": "Search Areas",
"valid": true,
"icon": {
"path": "icons/area.png"
},
"variables": {
"lvl": "A"
}
},
{
"title": "Categories",
"subtitle": "Search Categories",
"valid": true,
"icon": {
"path": "icons/category.png"
},
"variables": {
"lvl": "C"
}
},
{
"title": "IDs (Items)",
"subtitle": "Search Items",
"valid": true,
"icon": {
"path": "icons/id.png"
},
"variables": {
"lvl": "ID"
}
}
]
}
[09:50:40.312] Johnny.Decimal tools[[Script Filter](alfredpreferences:workflows%3Eworkflow%3Euser.workflow.E9242E09-029C-407B-9981-0B79D313BF54%3EF978713D-5E2D-4119-A13F-B0EAE1D0D1DA)] Processing complete
[09:50:40.315] Johnny.Decimal tools[[Script Filter](alfredpreferences:workflows%3Eworkflow%3Euser.workflow.E9242E09-029C-407B-9981-0B79D313BF54%3EF978713D-5E2D-4119-A13F-B0EAE1D0D1DA)] Passing output '' to [Debug](alfredpreferences:workflows%3Eworkflow%3Euser.workflow.E9242E09-029C-407B-9981-0B79D313BF54%3E0FC959F2-B911-4394-B44A-B9DA99C878CE)
[09:50:40.316] Johnny.Decimal tools[[Debug](alfredpreferences:workflows%3Eworkflow%3Euser.workflow.E9242E09-029C-407B-9981-0B79D313BF54%3E0FC959F2-B911-4394-B44A-B9DA99C878CE)] /------------- search -------------\
query=
variables={
AW_SESSION_ID = "1BRUCBE843I4J0RR9WI775ZW"
JD_DIR = "/Users/trijste/Library/Mobile Documents/com~apple~CloudDocs/File System"
lvl = "A"
}
\------------- search -------------/
[09:50:40.317] Johnny.Decimal tools[[Debug](alfredpreferences:workflows%3Eworkflow%3Euser.workflow.E9242E09-029C-407B-9981-0B79D313BF54%3E0FC959F2-B911-4394-B44A-B9DA99C878CE)] Processing complete
[09:50:40.317] Johnny.Decimal tools[[Debug](alfredpreferences:workflows%3Eworkflow%3Euser.workflow.E9242E09-029C-407B-9981-0B79D313BF54%3E0FC959F2-B911-4394-B44A-B9DA99C878CE)] Passing output '' to [Script Filter](alfredpreferences:workflows%3Eworkflow%3Euser.workflow.E9242E09-029C-407B-9981-0B79D313BF54%3EF308DF76-98AD-419A-AB13-11154982F6B2)
[09:50:40.318] Johnny.Decimal tools[[Script Filter](alfredpreferences:workflows%3Eworkflow%3Euser.workflow.E9242E09-029C-407B-9981-0B79D313BF54%3EF308DF76-98AD-419A-AB13-11154982F6B2)] Queuing argument '(null)'
[09:50:40.390] Johnny.Decimal tools[[Script Filter](alfredpreferences:workflows%3Eworkflow%3Euser.workflow.E9242E09-029C-407B-9981-0B79D313BF54%3EF308DF76-98AD-419A-AB13-11154982F6B2)] Script with argv '(null)' finished
[09:50:40.390] ERROR: Johnny.Decimal tools[[Script Filter](alfredpreferences:workflows%3Eworkflow%3Euser.workflow.E9242E09-029C-407B-9981-0B79D313BF54%3EF308DF76-98AD-419A-AB13-11154982F6B2)] Code 1: 🍺
09:50:40 workflow.go:328: ---- Johnny.Decimal tools/0.3.2 (AwGo/0.27.1) ----
09:50:40 update.go:210: 1.505857s since last check for update
09:50:40 update.go:198: latest version: 0.3.2
09:50:40 feedback.go:481: Sent 1 result(s) to Alfred
09:50:40 workflow.go:376: [ERROR] Path set for J.D directory does not exist.
09:50:40 workflow.go:379: Get help at bsag/alfred-jd/issues
09:50:40 workflow.go:402: ------------------- 1.125385ms -------------------
[09:50:40.395] Johnny.Decimal tools[[Script Filter](alfredpreferences:workflows%3Eworkflow%3Euser.workflow.E9242E09-029C-407B-9981-0B79D313BF54%3EF308DF76-98AD-419A-AB13-11154982F6B2)] {
"variables": {
"AW_SESSION_ID": "1BRUCBE843I4J0RR9WI775ZW"
},
"items": [
{
"title": "Path set for J.D directory does not exist.",
"valid": false,
"icon": {
"path": "/System/Library/CoreServices/CoreTypes.bundle/Contents/Resources/AlertStopIcon.icns"
}
}
]
}
I looked at the search.go code and wondered if this line is causing the issue:
func expandPath(path string) string {
return strings.ReplaceAll(path, "~", os.Getenv("HOME"))
}
Because the iCloud drive path includes those "~" characters...
This should be fixed now - give the latest release (v0.3.3) a try. Thanks for reporting it and identifying the problematic bit of code!
J.D System is stored here:
/Users/USERNAME/Library/Mobile Documents/com~apple~CloudDocs/File System
I've tried a few variations, but apparently, I'm too noob to get it. I would appreciate any assistance.