zotero / zotero-google-docs-integration

32 stars 6 forks source link

Instead of citation getting inserted {Updating} is displayed after insertion is finished #61

Closed adomasven closed 2 years ago

adomasven commented 2 years ago

I've finally managed to reliably reproduce it. I think it only happens on fairly fast and low-load machines.

To reproduce chrome needs to be set to reopen previous tabs after restarting the browser:

  1. Install uBlock Origin
  2. Open a google doc, set citing style to Chicago (note).
  3. Restart Chrome
  4. The google doc will likely not have Zotero extension loaded. Refresh the tab if so.
  5. Insert a citation. It will turn into {Updating}. Subsequent citations may or may not turn into {Updating} too

Ways to resolve:

  1. Disable uBlock Origin
  2. Disable uBlock Origin blocking on google docs pages

I'll try reporting this upstream.

adomasven commented 2 years ago

Ok, this is actually more complicated than I suspected. I can only reproduce this when loading an unpacked Connector from a local network samba share in my existing account. I tried testing with a new chrome account with only uBlock Origin and Zotero Connector and I couldn't reproduce it whether loading Zotero Connector from the network share of installed via chrome store.

Moreover, in the setup where I can reproduce it, the problem mostly disappears if I disable all my other extensions except for the Connector and uBlock origin. I don't think this is caused by any extension in particular, but is a race condition bug in Google Docs/Chrome that must eventually manifest in other ways in Chrome and cause doc desync issues, such that they will have to fix it.

I am out of ideas for how to debug it right now. If we update a google document in the backend and the client (browser-side google doc) doesn't receive/overwrites its contents with client-side version, there is nothing we can do.

The tentative solution is for users to use Firefox while waiting for Google to fix this.