Giter VIP home page Giter VIP logo

Comments (13)

deanishe avatar deanishe commented on August 12, 2024 1

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.

rhydlewis avatar rhydlewis commented on August 12, 2024 1

@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.

timbroder avatar timbroder commented on August 12, 2024

Just a thought, but they just added client side encryption. Not sure if that's related

from search-omnifocus.

alehandrof avatar alehandrof commented on August 12, 2024

I don't have a ~/Library/Application Support/Alfred 3/Workflow Data folder at all.

from search-omnifocus.

rhydlewis avatar rhydlewis commented on August 12, 2024

@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.

rhydlewis avatar rhydlewis commented on August 12, 2024

@macfreek @alehandrof can you confirm which version of the workflow you're using please?

  1. Open Alfred preferences and right click on the Search Omnifocus workflow
  2. Choose Open in Finder
  3. Open the file called 'version'
  4. 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.

rhydlewis avatar rhydlewis commented on August 12, 2024

@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.

macfreek avatar macfreek commented on August 12, 2024

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.

rhydlewis avatar rhydlewis commented on August 12, 2024

Thanks for letting me know that Packal is out of date. I've updated it now.

from search-omnifocus.

alehandrof avatar alehandrof commented on August 12, 2024

@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.

alehandrof avatar alehandrof commented on August 12, 2024

@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.

rhydlewis avatar rhydlewis commented on August 12, 2024

Whoop whoop! Glad it's working now.

from search-omnifocus.

counterbeing avatar counterbeing commented on August 12, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.