retorquere / zotero-better-bibtex

Make Zotero effective for us LaTeX holdouts
https://retorque.re/zotero-better-bibtex/
MIT License
5.19k stars 284 forks source link

Better Bibtex isn't automatically pinning citation keys despite the setting to do so after 1 sec #2960

Closed odysseus90210 closed 1 week ago

odysseus90210 commented 2 weeks ago

Debug log ID

ZNPERUAA-refs-euc/6.7.225-7

What happened?

Although I have set an auto pin delay of 1 sec, references aren't being automatically pinned (although manual pinning works). I don't understand why not.

retorquere commented 2 weeks ago

I don't see a change to any item in the log.

odysseus90210 commented 2 weeks ago

I don't know why the auto-pinning wasn't working. Selecting all the references and choosing to "Refresh BibTex key" (even though the keys were already there) seems to have fixed the problem.

retorquere commented 2 weeks ago

Autopin comes into action when an item changes. Turning it on just means that going forward items will get auto pinned when created/changed.

odysseus90210 commented 2 weeks ago

I believe autopin has been on the whole time. What exactly does pinning do?

retorquere commented 2 weeks ago

I believe autopin has been on the whole time.

I can't tell what your scenario was without a log taken while the behavior occurred.

What exactly does pinning do?

It writes the key to the Extra field after which it will no longer change (without you forcing it). The benefit of doing that is that these keys will sync across machines and will show up in the Overleaf integration.

At some point Zotero will add a real citation key field (it's been in their plans for a while), and at that point it will migrate automatically out of the extra field.

retorquere commented 2 weeks ago

I don't think there's anything else I can do right now?

odysseus90210 commented 2 weeks ago

I guess not, but when I was unable to insert references because of "invalid key" situation, the key was indeed in the extra field, which is strange.

retorquere commented 2 weeks ago

I don't understand? If the key is in the extra field it has a key?

odysseus90210 commented 2 weeks ago

Only you can know why your plugin wasn't finding it. Maybe it was some sort of edge situation or condition. In any case, the plugin appears to be working now.

retorquere commented 1 week ago

I find this response so strange. I'm saying I don't understand what you're saying and your response is that "you should understand because it is your plugin"?

I do not understand the situation you were describing, and I can't derive understanding from a log I don't have. I don't know what was happening at the time on a system I have no access to; the behavior isn't structural because all my tests in the test suite would fail. Without a log covering the problem or local replicability there is just not much I can do, and it isn't yet clear to me that we're actually talking about a BBT problem (see below).

I guess not, but when I was unable to insert references because of "invalid key" situation, the key was indeed in the extra field, which is strange.

  1. If the key is in the extra field, it has a citation key, and
  2. I don't know what you mean by "inserting references" in the context of BBT citation keys; if it is about inserting in Word, BBT citation keys play no role there.

BBT doesn't have the string "invalid key" anywhere, I don't know what "invalid key" would mean to BBT, and the only place that I see "invalid key" in the Zotero source has to do with syncing, and those keys are the technical item keys that Zotero assigns to items, not citation keys.

odysseus90210 commented 1 week ago

Sorry. These tools are so complex (Zotero has its plugins, Logseq has its plugins …) that I get confused. Your plugin is great and the fact that you’re doing this for free, on your own spare time, is amazing!

retorquere commented 1 week ago

Ah you're inserting something in LogSeq. I don't know about that integration, if you get the author of that plugin involved maybe we can get to the bottom of this.

retorquere commented 1 week ago

Are you going to get the author of the logseq integration involved? Otherwise we can close this issue.

odysseus90210 commented 1 week ago

Sorry for the confusion, but this particular issue is about auto-pinning not occurring. And as a matter of fact, I'm seeing that now. I had Zotero download a reference using the "Add Items by Identifier" toolbar icon. Better Bibtex still hasn't put the citation key in the Extra field for reasons that escape me. How can we troubleshoot?

retorquere commented 1 week ago

Reproduce, send a log

odysseus90210 commented 1 week ago

It stopped being correctly installed. How could it appear under Tools > Plugins without a corresponding pane in Zotero's settings?

You can close this issue.

retorquere commented 1 week ago

When you say

Better Bibtex still hasn't put the citation key in the Extra field

I assumed you have BBT installed. If it is not installed, it obviously won't do anything. Are you saying now you cannot install BBT?

I have a sense you are trying to talk about many things at once; I have no idea what you want(ed) help with. I'd love to help, but I am thoroughly confused on what problem you want addressed.

You can close this issue.

OK....