Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sync stopped working #44

Open
aaronjz opened this issue Apr 12, 2023 · 11 comments
Open

Sync stopped working #44

aaronjz opened this issue Apr 12, 2023 · 11 comments
Labels
bug Something isn't working

Comments

@aaronjz
Copy link

aaronjz commented Apr 12, 2023

Before Submitting: Double-check that you are running the latest version of the plugin. The bug might have already been fixed 😄

Describe the bug

After the latest Things 3 update (3.17.4), the Things Logbook plugin stopped syncing.

Steps to reproduce

  1. Run the Things Logbook: Sync command.
  2. See error, "Things Logbook sync failed."

Expected behavior

To sync completed tasks from the Logbook.

Screenshots

If applicable, add screenshots to help explain your problem.

Environment (please specify)

OS

macOS 12.6.3

Obsidian Version (e.g. v0.10.6)

1.1.16

Theme (if applicable):

If the bug is visual, please provide the name of the Community Theme you're using.

@aaronjz aaronjz added the bug Something isn't working label Apr 12, 2023
@ChipMorris
Copy link

Same problem. macOS Ventura 13.2.1. M1 mini. Things 3.17.4. May be related to update of URL scheme.

@dentonjacobs
Copy link

Some discussion on Reddit indicates that the location and structure of the local database has changed. Perhaps details there are helpful.

@netfly
Copy link

netfly commented Apr 15, 2023

You need to change the following constant and add the Folder "ThingsData-S6UZE" to the path.

const THINGS_DB_PATH = "~/Library/Group Containers/JLMPQHK86H.com.culturedcode.ThingsMac/ThingsData-S6UZE/Things Database.thingsdatabase/main.sqlite";

@sacbegg
Copy link

sacbegg commented Apr 16, 2023

@netfly Sorry can you explain more?, where should I make the changes?

@netfly
Copy link

netfly commented Apr 16, 2023

@netfly Sorry can you explain more?, where should I make the changes?

In your Obsidian Vault-Folder (in the Filesystem) there is a folder called .obsidian/plugins/things-logbook. There is a main.js. Open it with an editor and search for this constant THINGS_DB_PATH. For me it is on line 570, but I already changed some code.
Overwrite this line with the following code:
const THINGS_DB_PATH = "~/Library/Group Containers/JLMPQHK86H.com.culturedcode.ThingsMac/ThingsData-S6UZE/Things Database.thingsdatabase/main.sqlite";

I think I will write a pullrequest for this fix, but for now you can do this manually.
hope this helped.

@sacbegg
Copy link

sacbegg commented Apr 16, 2023

@netfly Sorry can you explain more?, where should I make the changes?

In your Obsidian Vault-Folder (in the Filesystem) there is a folder called .obsidian/plugins/things-logbook. There is a main.js. Open it with an editor and search for this constant THINGS_DB_PATH. For me it is on line 570, but I already changed some code. Overwrite this line with the following code: const THINGS_DB_PATH = "~/Library/Group Containers/JLMPQHK86H.com.culturedcode.ThingsMac/ThingsData-S6UZE/Things Database.thingsdatabase/main.sqlite";

I think I will write a pullrequest for this fix, but for now you can do this manually. hope this helped.

Thanks!!! By the way the name of this folder ThingsData-S6UZE, I think it changes on each computer on mine it was ThingsData-9D38J

@netfly
Copy link

netfly commented Apr 17, 2023

Hmm ... thats bad. So it's not possible to have this path hardcoded as a constant anymore. In this case we either need a setting to save this generated folder name (which is not very user friendly) or get the info at the initialize.

@aaronjz
Copy link
Author

aaronjz commented Apr 17, 2023

I also had a different folder name. It's back to working like normal for me after adding that folder to the constant. Thanks, @netfly!

@likeweiss
Copy link

Had the same issue and fixed it using PATH code above. Mine was also a different alphanumeric string after ThingsData-_____ so I can confirm it does change based on your computer. Thank you!

@themanofsilver
Copy link

Brilliant. Thanks so much @netfly ... this solution worked for me (but needed to rename with my database string).

@adarsh
Copy link

adarsh commented May 16, 2023

Many have noticed the database location has recently changed (link to Reddit discussion).

@pwflint pwflint mentioned this issue Aug 1, 2023
@yarnaid yarnaid mentioned this issue Aug 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

8 participants