paleolimbot / rbbt

R Interface to the Better BiBTex Zotero Connector
142 stars 25 forks source link

bbt_write_bib() Error: keyscope is global, do not provide a library ID #28

Open andrewdeines opened 2 years ago

andrewdeines commented 2 years ago

Not sure how to provide a reproducible example without an endnote library.

But here's a simple call

bbt_write_bib("biblio.json", 
              bbt_detect_citations("MyModel.Rmd"),
              overwrite=TRUE)

which gives: Error: keyscope is global, do not provide a library ID

I've tracked this back, and it's happening somewhere in bbt_call_json_rpc()

This error started arising after I installed R 4.1.2. It was working under 4.0.4.

paleolimbot commented 2 years ago

Thanks for reporting this, and thanks for tracking it back to bbt_call_json_rpc()! I haven't spent much time with rbbt recently and I wonder if @bwiernik has any idea what's going on?

bwiernik commented 2 years ago

I can take a look. @retorquere Has anything changed in the BBT API recently that might produce this error message you’re aware of?

retorquere commented 2 years ago

https://github.com/retorquere/zotero-better-bibtex/issues/2014 ?

It's not yet released, a few more issues I expect to fix this week and then a new release goes out.

andrewdeines commented 2 years ago

I applied test build 6.1.2.1931 from retorquere/zotero-better-bibtex#2014 (with much hope ), but it didn't seem to remedy the error.

retorquere commented 2 years ago

Then I'll need a new issue on GH with a log ID.