-
-
Notifications
You must be signed in to change notification settings - Fork 297
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
Zotero links lost when copying notes #2981
Comments
I cannot replicate the behavior that links are added at the end of a note, with or without better bibtex installed. |
The notes I copied were added via annotations, thus including citations at the end; I guess it might be related to this. |
Ah comments and annotations are different things in Zotero. Still, I have that setting enabled now, and if I have an annotated PDF open and press control-C (or Cmd-C on a mac), nothing ends up on the clipboard. No note or links. So I still don't know how to replicate what you have. |
output.mp4I hope this video is helpful. |
Hey, any updates on this issue? Is there anything I can help with? |
I don't think so. I am just juggling a lot of work right now. |
Alright, I can provide any details on this issue anytime you need them. |
I thought I had the links, but now I don't get them anymore. Can you do the following:
and add a line to make it this:
|
I tried doing it this way, but even after I modified the file and restarted Zotero, I couldn't get the links anymore. |
Ah, there's a syntax error in the code |
Debug log ID: I'm not certain whether the file I modified would impact Zotero 6 or Zotero 7, so I've sent logs for both. I'm unable to utilize version 6.7.231 as it seems to not be compatible with Zotero 6, and it consistently fails to appear on the plugin page for Zotero 7 (after restarting Zotero, I see no plugins on the plugin page, but I'm confident that I've installed and disabled BBT). |
It impacts both
It is fully compatible with Zotero 6, builds don't drop in issues unless they've passed my full test suite on 6, 7 and beta. If it doesn't work on 6 for you, please open a separate issue for that. Can you send separate debug logs for the situation where the links work and where they don't? I don't see any difference between the objects logged in
What happens if you install BBT again? I don't control what shows in the plugin page, so if it doesn't show there, Zotero is saying it isn't installed. |
Just to be sure, the way I've tried to reproduce this is:
I should now be seeing links I think (I have the option on in the prefs) but I don't. |
I tried to save and view Zotero's logs and found logs corresponding to different situations, which were exactly the same. I re-did the operations and checked the new logs, and they were indeed identical, but the results of the copy operation were indeed different. I noticed a detail that when BBT is disabled, for a short period immediately after starting Zotero, possibly 30 seconds, the copy result is the same as when BBT is enabled, with no links. After waiting for a while and copying again, the links were there. |
The thing is I'm not seeing the links even with BBT uninstalled and Zotero restarted. |
New debug log ID: I performed three copies without enabling BBT, and all results included links. After that, I enabled BBT and sent the first log. |
This is the result I got from copying shortly after Zotero started up, and it completely lacks the final citation. This is the result I got with BBT enabled: This is the result I got with BBT disabled: This is the result I obtained after removing the entire if code block that followed the newly added Zotero.debug line in Note Markdown.js. It appears that this if code block was responsible for adding only the second link. |
I reinstalled version 6.7.231 of BBT, and the issue did not reoccur. |
Here with me, completely removing those two sections of code that add links or changing includeAppLinks to false will make the links disappear. |
I'm finding it hard to follow where we stand on diagnosis. The parts you pointed out are indeed responsible for generating the links and I'm trying to find out what effect BBT has on the conditions that trigger that code to be ran. Right now I don't have a clear picture of what you changed.
Please don't do this. It adds variability we don't need. We want very targeted changes for diagnosis, and I need to know what code is running on your end when I can't replicate it locally.
As in installing 6.7.231 fixes the problem for you? I don't follow. You were reporting the problem on .231.
There's no relevant difference there. Can you make the following changes:
and generate a new log (only for the error condition, no need to disable BBT). No other changes to the translator please -- in fact it'd help if you would first go into Preferences, advanced, reset translators, and after that quit Zotero and make these two changes, then run the test. |
New debug log ID: You're right. I reset translators before submitting this log. |
A build will drop here shortly, please reproduce on that and send a new log. |
🤖 this is your friendly neighborhood build bot announcing test build 6.7.232.7032 ("temp disable 1827") This update may name other issues, but the build just dropped here is for you; it just means problems already fixed in other issues have been folded into the work we are doing here. Install in Zotero by downloading test build 6.7.232.7032, opening the Zotero "Tools" menu, selecting "Add-ons", open the gear menu in the top right, and select "Install Add-on From File...". |
Debug log ID: The copy result includes links with this version. |
🤖 this is your friendly neighborhood build bot announcing test build 6.7.232.7038 ("immediately exit patch for non-BBT translators") This update may name other issues, but the build just dropped here is for you; it just means problems already fixed in other issues have been folded into the work we are doing here. Install in Zotero by downloading test build 6.7.232.7038, opening the Zotero "Tools" menu, selecting "Add-ons", open the gear menu in the top right, and select "Install Add-on From File...". |
Debug log ID for new build: The result includes links. |
So, fixed? That's what the log seems to indicate. If so, I'm rolling it out to release. |
Yeah, I think it's fixed now. |
Debug log ID
9VDYTL46-apse/6.7.225-6
What happened?
When I use 'Ctrl+A' to select all and 'Ctrl+C' to copy a note, the text in the clipboard that I get via the 'text/plain' type usually contains zotero links at the end, which allows me to jump to the entry or note location in zotero.
They look like 'zotero://select/library/items/...' or 'zotero://open-pdf/library/items/...'.
However, starting with version 6.7.225, these links have been lost, leaving only the simple text.
Version 6.7.224 is correct.
Zotero 6 and zotero 7 get the same result.
Platform: win32 / x64 / 10.0.22631
The text was updated successfully, but these errors were encountered: