retorquere / zotero-better-bibtex

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

[Bug]: cayw api error with `minimize` in Zotero 7 #2621

Closed raykr closed 1 year ago

raykr commented 1 year ago

Debug log ID

not in zotero 7 client

What happened?

When I was develop a vscode plugin using CAYW api, and I want to use minimize variable to minimize zotero 7 window after a pick, there is an zotero error like this

CAYW failed: windows.getNext().QueryInterface is not a function
init@jar:file:///Users/jzl/Library/Application%20Support/Zotero/Profiles/gdjuekh7.default/extensions/better-bibtex@iris-advies.com.xpi!/content/better-bibtex.js:133535:43

It maybe a zotero 7's compatibility problem I think. Please to check it, thank you!

github-actions[bot] commented 1 year ago

Hello there @RayKr,

Hope you're doing well! @retorquere is here to help you get the most out of your experience with Better BibTeX. To make sure he can assist you effectively, he kindly asks for your cooperation in providing a debug log – it's like giving him the key to understanding and solving the puzzle!

Getting your debug log is a breeze and will save us both time. Trust me, it's way quicker than discussing why it's important. :smiley:

How to Share Your Debug Log:

  1. If the issue involves specific references or exports, just right-click on the relevant item(s) and choose "Better BibTeX -> Submit Better BibTeX debug log" from the menu.

  2. For other issues, follow these simple steps:

    • Restart Zotero with debugging enabled (Help -> Debug Output Logging -> Restart with logging enabled).
    • Reproduce the problem.
    • Select "Send Better BibTeX debug report..." from the help menu.

Once you hit that submit button, you'll get a special red debug ID. Just share that with @retorquere in this issue thread. If the question is regarding an export, don't forget to include what you see exported and what you expected.

By sharing your debug log, you're giving @retorquere a clearer picture of your setup and the items causing the issue. It's like a superhero cape for him – he can swoop in and tackle the problem much faster.

We totally get that your time is valuable, and we appreciate your effort in helping @retorquere help you. You might be surprised at how much this simple step speeds up the whole process.

Thanks a bunch!

retorquere commented 1 year ago

I don't know what "not in zotero 7 client" means?

github-actions[bot] commented 1 year ago

:robot: this is your friendly neighborhood build bot announcing test build 6.7.111.2621.4926 ("try through mainwindow")

Install in Zotero by downloading test build 6.7.111.2621.4926, opening the Zotero "Tools" menu, selecting "Add-ons", open the gear menu in the top right, and select "Install Add-on From File...".

raykr commented 1 year ago

I don't know what "not in zotero 7 client" means?

Sorry, I didn't make it clear. What I meant was that I wasn't performing the operation in the Zotero client, so I couldn't get the log of the BBT plugin. I'm using the Cayw API in my VSCode plugin development, and there is a "minimize" field inside which can minimize the Zotero window after picking. However, when debugging with Postman, an error occurred.

retorquere commented 1 year ago

Ah. You could have gotten a log after the fact in the client. But the build above will work ik think.

raykr commented 1 year ago

Okay, I follow the tips to produce a log, debug log id is M3JY8Y9L-apse/6.7.111-7.

retorquere commented 1 year ago

I think build 4926 (linked above) will fix it. Can you try that build?

raykr commented 1 year ago

I think build 4926 (linked above) will fix it. Can you try that build?

Oh, yes! I tried it, 4926 it works!

image image
github-actions[bot] commented 1 year ago

Thanks for the feedback; there's no way you could have known, but @retorquere prefers to keep bugreports/enhancements open as a reminder to merge the changes into a new release.