Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
odysseus90210 opened this issue Aug 27, 2024 · 17 comments

Comments

@odysseus90210
Copy link

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
Copy link
Owner

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

@odysseus90210
Copy link
Author

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
Copy link
Owner

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
Copy link
Author

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

@retorquere
Copy link
Owner

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
Copy link
Owner

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

@odysseus90210
Copy link
Author

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
Copy link
Owner

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

@odysseus90210
Copy link
Author

odysseus90210 commented Aug 31, 2024

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
Copy link
Owner

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
Copy link
Author

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
Copy link
Owner

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
Copy link
Owner

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

@odysseus90210
Copy link
Author

odysseus90210 commented Sep 5, 2024

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
Copy link
Owner

Reproduce, send a log

@odysseus90210
Copy link
Author

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
Copy link
Owner

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....

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants