Comments (13)
Try deleting this file then run the workflow again:
/Users/freek/Library/Application Support/Alfred 3/Workflow Data/net.rhydlewis.alfred.searchomnifocus/db_path.cpickle
from search-omnifocus.
@alehandrof if you type this command (note, should be all on 1 line) into Terminal.app what does it show you?
cat /Users/alex/Library/Application Support/Alfred 3/Workflow Data/net.rhydlewis.alfred.searchomnifocus/settings.json
My file shows:
{
"__workflow_last_version": "1.1.15"
}
If you don't see that, try deleting the settings.json
file to see if that forces the workflow to recreate it. @deanishe do you know what might be causing this?
from search-omnifocus.
Just a thought, but they just added client side encryption. Not sure if that's related
from search-omnifocus.
I don't have a ~/Library/Application Support/Alfred 3/Workflow Data
folder at all.
from search-omnifocus.
@timbroder don't think it's this as the locations haven't - to my knowledge - changed as part of the encryption changes but thanks for the suggestion
from search-omnifocus.
@macfreek @alehandrof can you confirm which version of the workflow you're using please?
- Open Alfred preferences and right click on the Search Omnifocus workflow
- Choose Open in Finder
- Open the file called 'version'
- If you don't see 1.1.15 then please upgrade to the latest version (https://github.com/rhydlewis/search-omnifocus/releases/download/v1.1.15/Search.OmniFocus.v1.1.15.alfredworkflow)
@macfreek in your case, I'm wondering if the db_path.cpickle file has an incorrect or empty reference to the Omnifocus database. Suggestion from @deanishe to delete the file should help here.
@alehandrof, do you see the same issue as @macfreek? Can you post the debug information from Alfred?
from search-omnifocus.
@alehandrof sorry, didn't spot that you already commented about the version number in #12. Please post the debug log to help me investigate. Thanks
from search-omnifocus.
Thanks, @deanishe, your suggestion works. The file did indeed contain a path referencing the MAS location. (I did a quick strings of the file).
I'm running version 1.1.11 of the workflow, as that was the latest I found at http://www.packal.org/workflow/search-omnifocus. I'll update to the Github version in a moment.
A quick check revealed that the workflow file I installed did not originally contain a db_path.cpickle file. This means it was created on my Mac. What I suspect happened is as follows: when I first used this workflow, OmniFocus 2 was not installed (my trigger to buy the upgrade from OF 1 to OF 2 was triggered that it was not supported by this workflow). Apparently, when no valid path is found, search.py created a pickle file with the MAS path.
Regardless of what's in the cpickle file, I expect search.py to ignore (or recreate) the db_path.cpickle file, if it's content is invalid, because the file can't be found.
from search-omnifocus.
Thanks for letting me know that Packal is out of date. I've updated it now.
from search-omnifocus.
@rhydlewis Here's the debug log:
10:23:54 workflow.py:2154 DEBUG Workflow version : 1.1.15
10:23:54 workflow.py:1556 DEBUG Reading settings from `/Users/alex/Library/Application Support/Alfred 3/Workflow Data/net.rhydlewis.alfred.searchomnifocus/settings.json` ...
10:23:54 workflow.py:2176 ERROR No JSON object could be decoded
Traceback (most recent call last):
File "/Users/alex/Library/Application Support/Alfred 3/Alfred.alfredpreferences/workflows/user.workflow.B3CEB625-348A-4E66-AD72-D2D34E1E671C/workflow/workflow.py", line 2166, in run
self.check_update()
File "/Users/alex/Library/Application Support/Alfred 3/Alfred.alfredpreferences/workflows/user.workflow.B3CEB625-348A-4E66-AD72-D2D34E1E671C/workflow/workflow.py", line 2414, in check_update
if not force and not self.settings.get('__workflow_autoupdate', True):
File "/Users/alex/Library/Application Support/Alfred 3/Alfred.alfredpreferences/workflows/user.workflow.B3CEB625-348A-4E66-AD72-D2D34E1E671C/workflow/workflow.py", line 1558, in settings
self._default_settings)
File "/Users/alex/Library/Application Support/Alfred 3/Alfred.alfredpreferences/workflows/user.workflow.B3CEB625-348A-4E66-AD72-D2D34E1E671C/workflow/workflow.py", line 974, in __init__
self._load()
File "/Users/alex/Library/Application Support/Alfred 3/Alfred.alfredpreferences/workflows/user.workflow.B3CEB625-348A-4E66-AD72-D2D34E1E671C/workflow/workflow.py", line 986, in _load
for key, value in json.load(file_obj, encoding='utf-8').items():
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/json/__init__.py", line 290, in load
**kw)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/json/__init__.py", line 351, in loads
return cls(encoding=encoding, **kw).decode(s)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/json/decoder.py", line 366, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/json/decoder.py", line 384, in raw_decode
raise ValueError("No JSON object could be decoded")
ValueError: No JSON object could be decoded
10:23:54 workflow.py:2197 DEBUG Workflow finished in 0.036 seconds.
from search-omnifocus.
@rhydlewis that was it! The settings.json
was there, but it was empty. After I deleted it the workflow now works again!
from search-omnifocus.
Whoop whoop! Glad it's working now.
from search-omnifocus.
Just wanted to chime in and say that deleting the cpickle
file did the trick for me immediately. Thank you @deanishe!
Copy paste-able for anyone else:
rm ~/Library/Application\ Support/Alfred\ 3/Workflow\ Data/net.rhydlewis.alfred.searchomnifocus/db_path.cpickle
from search-omnifocus.
Related Issues (20)
- OF3: Searching new tags is broken HOT 5
- Unable to open database file HOT 1
- Error "unable to open database file" HOT 3
- In the release version 2.0.3, 'version' is still tagged as 2.0.2 HOT 2
- Question: I could have sworn that search-omnifocus used to open new windows on searches... HOT 2
- Use OF3 by default? HOT 3
- Request: Option to search title *and* notes in same command HOT 4
- Request: fuzzier search queries? HOT 3
- No results returned for custom perspectives with .v or .lv HOT 14
- Does it support Alfred 4? HOT 3
- Incompatible in Alfred v3.8.2 HOT 9
- Workflow doesn't show results from OmniFocus after upgrade to 3.5 HOT 2
- time data does not match format '%Y-%m-%dT%H:%M:%S.%fZ' HOT 2
- v2.1.1 is no longer support Alfred 3? HOT 2
- Tasks that inherit completion from their parent still appear as active tasks HOT 1
- .d does not work with the latest Omnifocus and Alfred HOT 6
- List inbox (.li) also shows completed items. HOT 1
- Not working with Enterprise? HOT 3
- Python 2.7 removed from macOS 12.3 = broken workflow HOT 11
- Search OmniFocus not working in Alfred 5 HOT 10
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from search-omnifocus.