-
-
Notifications
You must be signed in to change notification settings - Fork 50
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
[Bug] Missing Reader Menu when used with Better BibTeX #231
Comments
Could you please report this to the BBT repo as well? Hopefully we can get some hint there |
Done, thank you. |
Can you serialize the container of that element after that happens? I can indeed reproduce it at will, but even if I remove all my code that scribbles in that area, the problem remains. |
Oh and it'd be helpful if you could add a mutationobserver to log when it is removed (or hidden?). Maybe what BBT is doing around that point will give us some idea. |
Hmm... I am using Try the build below: I've added an IntersectionObserver and when the element becomes visible/invisible it will console.log and Zotero.debug |
The relevant code is here, in case you need it: zotero-actions-tags/src/modules/menu.ts Lines 78 to 152 in d887e23
|
I have no idea how Zotero.Reader works or how BBT could interfere with it; BBT is not using it. I have replayed the scenario and |
OK, now it shows a log Could BBT somehow delay or affect the event dispatch on readers? |
I have no idea how it would do that. And then why doesn't that happen on re-open? Do I understand correctly that this is reached correctly then? What point in the code is not being reached? |
OK... I guess perhaps BBT loading somehow delays the loading of other plugins and thus the registration of these callbacks comes after Zotero opens the readers. So this isn't actually a bug with BBT. I'll try to release a fix. |
I have updated BBT to v6.7.143. Then I have tested to see if the problem was still there. But I could not reproduce anymore... Are you both able to reproduce? |
If it's indeed a timing issue it could well be that the installation order plays a role. |
Exactly! |
Is there any way to overwrite the order imposed by the installation order? |
I think it's not entirely avoidable given how bootstrapped plugins work. |
Probably, yes, but that's just kicking the problem down the road. |
OK I've released a new beta, hope it works |
Not sure but this could be possibly fixed in the Zotero side's API. I will notify the team |
I confirm that it is fixed. |
Is there an existing issue for this?
Are you using the latest Zotero and the latest plugin?
Environment
Describe the bug
Steps to reproduce with the A&T and BBT plugins:
-> After restarting, the PDF Viewer loads automatically. But the Reader Menu of the plugin is missing.
Closing and reopening the tab fixes the problem, with the Reader Menu appearing again.
Doing the same with the BBT plugin disabled does not produce this issue.
Debug Output
1704295785999 addons.xpi WARN Checking C:\Program Files\Zotero\distribution\extensions for addons
[JavaScript Error: "NS_NOINTERFACE: " {file: "resource://gre/modules/ComponentUtils.jsm" line: 90}]
createInstance@resource://gre/modules/ComponentUtils.jsm:90:36
1704295787417 addons.xpi WARN Addon with ID undefined already installed, older version will be disabled
[JavaScript Error: "Error: Addon must include an id, version, and type" {file: "resource://gre/modules/addons/XPIProvider.jsm" line: 1710}]
[JavaScript Error: "Error: Addon must include an id, version, and type" {file: "resource://gre/modules/addons/XPIProvider.jsm" line: 1710}]
[JavaScript Error: "NS_ERROR_FAILURE: Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsITelemetry.getHistogramById]" {file: "resource://gre/modules/TerminatorTelemetry.jsm" line: 87}]
[JavaScript Error: "NS_ERROR_FAILURE: Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsITelemetry.getHistogramById]" {file: "resource://gre/modules/TerminatorTelemetry.jsm" line: 87}]
[JavaScript Error: "NS_ERROR_FAILURE: Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsITelemetry.getHistogramById]" {file: "resource://gre/modules/TerminatorTelemetry.jsm" line: 87}]
[JavaScript Error: "NS_ERROR_NOT_AVAILABLE" {file: "resource://gre/modules/PartitioningExceptionListService.jsm" line: 92}]
[JavaScript Error: "uncaught exception: undefined"]
[JavaScript Error: "uncaught exception: undefined"]
[JavaScript Error: "NotFoundError: Could not get children of file(C:\Users\mjthoraval\AppData\Roaming\Zotero\Zotero\Crash Reports\events) because it does not exist" {file: "resource://gre/modules/CrashManager.jsm" line: 682}]
_getUnprocessedEventsFiles/<@resource://gre/modules/CrashManager.jsm:682:12
appName => Zotero, version => 7.0.0-beta.54+6b996d4f9, os => Windows 10.0 19045, locale => en-US, extensions => Better BibTex for Zotero (6.7.140, extension), Actions and Tags for Zotero (1.0.0-31, extension), Zotero PDF Preview (1.0.0-4, extension, disabled), Zotero Better Authors (4.0.2, extension, disabled), Translate for Zotero (1.1.0-22, extension, disabled), Better Notes for Zotero (1.1.4-49, extension, disabled), Open PDF for Zotero (0.0.10, extension, disabled)
Anything else?
No response
The text was updated successfully, but these errors were encountered: