deanishe / alfred-repos

Browse, search and open Git repositories in Alfred
Other
315 stars 23 forks source link

Error in workflow - No JSON object could be decoded #11

Closed ChristinWhite closed 8 years ago

ChristinWhite commented 8 years ago

Hey,

Repos looks awesome but unfortunately I seem to be getting an error.

superlumic-config

I'm not a JSON expert but I don't think there are errors in my configuration, here's what I have:

{
  "app_1": "Finder",
  "app_2": "Atom",
  "app_3": "Sublime Text",
  "app_4": "Tower",
  "app_5": "HyperTerm",
  "app_6": ["Finder", "Atom", "Tower", "HyperTerm"],
  "global_exclude_patterns": [],
  "search_dirs": [
    {
      "path": "~/Source",
      "depth": 2
    },
  ]
}

Am I missing something?

Note that I am running the Sierra beta so it may be incompatible but I doubt it in this context.

macOS Sierra 10.12 Beta (16A304a) Alfred 3.1 [716]

deanishe commented 8 years ago

http://jsonlint.com

The problem is in search_dirs. There is a trailing comma here:

{
  "path": "~/Source",
   "depth": 2
},
ChristinWhite commented 8 years ago

Dang, I can't believe I missed that. Thank you so much @deanishe, I really appreciate the help and the awesome workflow!