davidrthorn / cross_reference

Cross referencing for Google Docs
MIT License
80 stars 20 forks source link

Error - target tags not updating #65

Open jvillatoro-leal opened 3 years ago

jvillatoro-leal commented 3 years ago

Today I started getting the error "TypeError: Cannot read property 'getParagraphs' of null" and the tags stopped updating (so #fig_reference doesn't get converted to the tag "Fig 1" for example).

Additionally, previously generated tags remain there, they just don't update. For example, ref3 was introduced after ref2, between ref1 and ref2. The previous list was correct but since the error, the target tags are not updating and so the target list is not updating.

figur_ref1 --> Fig. 1 | #fig_ref1 --> Fig. 1

figur_ref3 --> Fig. 2 | #fig_ref3 --> #fig_ref2 (not converted)

figur_ref2 --> Fig. 3 | #fig_ref2 --> Fig. 2

What could be the cause for this?

davidrthorn commented 3 years ago

Not sure. Could you post a link to the document or a document that reproduces the problem that you're comfortable sharing?

jvillatoro-leal commented 3 years ago

So I made a duplicate of the original document to try and debug it (I can't share the original, sorry :/ ). In the original document I still get the error above, but in the exact duplicate (I didn't change anything), there is no error... The only difference is that the original is in a shared folder, several people have access to it and we are working with tracked changes ("suggestions") and comments. The duplicate was in my private drive, so nobody else had access and when duplicating it, all tracked changes were automatically accepted. Then I thought it was a matter of accepting changes so I accepted every change relating to the hashtags and references but that didn't work... maybe I missed one, though? I think I will live with the error until the document is ready and every change is accepted... Then if I still have it, I'll just create a duplicate and delete the original.....

I will keep you posted!