ikuyarihS / obsidian-amazingmarvin-plugin

Simple plugin for Amazing Marvin
30 stars 7 forks source link

Only first load / update works, Update button fails & requires restart #18

Open IngoMarquart opened 3 years ago

IngoMarquart commented 3 years ago

Hi all,

many thanks for this plugin. It makes me consider switching from Roam to Obsidian, simply to get Task interop with Marving.

As such, I just installed a fresh version of Obsidian, using an empty vault. I have Sync enabled (but also tried with it disabled).

  1. The AmazingMarvin plugin does work when I open Obsidian - it shows today's tasks in the side panel, and it also correctly copies the tasks into a daily note if so requested.
  2. However, the "Update" button does not work for me. It gets stuck in the "Updating" state. The corresponding page or panel gets "stuck" as well. For example, clicking on "Daily Note" after clicking on "Update" does not add tasks to a new daily note. The issue is the same when I add today or due-today notes to any other open file.
  3. Once this occurs, accessing the API is stuck globally. So for example, if I click "Update" in the panel, but then add a query to a new md file, that query will never execute.
  4. If I DO NOT click "Update", but instead change a config setting (in which case an update is done), then the updating works. For example, switching "HideEmpty" will repopulate the Marvin Panel with and without empty categories. As such, repeated updating works in principle
  5. Similarly, if I add a new query to a new document, having never clicked an Update button, it will load the query correctly.
  6. However, if the Update function was already stuck (by clicking the Update button at least once anywhere in Obsidian), then switching config settings, adding a new query, or issuing an update in any other way does not work anymore - the API stays stuck globally.

So in conclusion, the "Update" Button leads to the the AmazingMarvin sync to become stuck across Obsidian, requiring a restart. My experiments seems to indicate that it is literally the button itself that is the issue, not the API or repeated calls to the API.

What can I do to help with this issue? Any files you would like me to supply? Any tests to run?

ikuyarihS commented 3 years ago

Sorry for the late reply. Do you still have this issue now after adding some tasks and labels to your Marvin? I've tried to replicate but I could not reproduce the issue, can you walk me through your settings on Marvin?

ultron commented 3 years ago

I also experience this issue as described - it works once, but once the refresh button is clicked it then requires a restart of Obsidian. I tried changing plugin settings as described in step 6, but that didn't unblock the plugin. The only thing that worked for me was restarting the application. My plugin settings are all as per defaults, with the addition of the apiToken of course. I checked the developer tools network response, and the response header for "todayItems" request is "content-length:0". Same goes for the "categories" request - the header indicates an empty response, so perhaps it is waiting for data that will never arrive.

edhilgendorf commented 2 years ago

@ultron did you ever work around this issue, or find another way to hook AM into Obsidian? Thanks

ultron commented 2 years ago

@edhilgendorf Alas no. I like both AM and Obsidian a lot, but they don't play nice together.

edhilgendorf commented 2 years ago

Does yours ever show daily items? I can see master list but no tasks ever load. Thinking about forking this and giving it a shot..