Coder Social home page Coder Social logo

Comments (12)

VoidR avatar VoidR commented on May 21, 2024

I also encountered this problem, Actually, the result was obtained, it just didn't show up.

from zotero-pdf-translate.

windingwind avatar windingwind commented on May 21, 2024

Fixed in the v0.3.0

from zotero-pdf-translate.

RemnantCloude avatar RemnantCloude commented on May 21, 2024

I still have this problem in v0.3.4 (zotero v6.0.2). It doesn't work even when I click the "Translate" botton.

from zotero-pdf-translate.

windingwind avatar windingwind commented on May 21, 2024

see #17 and could you please follow the same debug steps:

go to Help->Debug Output Logging->View Output.
Open your pdf.
Select some text after the debug window is opened and paste the logs in this issue.

With debug logs, I can find out what's going on with your Zotero.

from zotero-pdf-translate.

RemnantCloude avatar RemnantCloude commented on May 21, 2024

Thanks for your reply. This add-on works when I reboot my computer and zotero today. I tried reinstalling the add-on to find the bug and it still works, so this bug looks like just an accidental event.

from zotero-pdf-translate.

windingwind avatar windingwind commented on May 21, 2024

Happy to hear that.

I'll close this issue. If you still have the same problem, feel free to open it again.

from zotero-pdf-translate.

zhou201505013 avatar zhou201505013 commented on May 21, 2024

I still have this problem in v0.5.2 Zotero v6.0.4. The log is shown below

(4)(+0028364): SELECT IA.itemID FROM itemAttachments IA NATURAL JOIN items I LEFT JOIN itemData ID ON (IA.itemID=ID.itemID AND fieldID=13) LEFT JOIN itemDataValues IDV ON (ID.valueID=IDV.valueID) WHERE parentItemID=? AND linkMode NOT IN (3) AND IA.itemID NOT IN (SELECT itemID FROM deletedItems) ORDER BY contentType='application/pdf' DESC, value=? DESC, dateAdded ASC [226, 'http://arxiv.org/abs/2108.07258']

(3)(+0000003): Viewing attachment 1/RH8W88TH

(3)(+0000002): Opening D:\Zotero\storage\RH8W88TH\Bommasani 等。 - 2021 - On the Opportunities and Risks of Foundation Model.pdf

(3)(+0000001): Notifier.trigger('open', 'file', [222]) called [observers: 6]

(3)(+0000008): Notifier.trigger('add', 'tab', [tab-1PUITFRj], {"tab-1PUITFRj":{"itemID":222}}) called [observers: 5]

(3)(+0000005): Notifier.trigger('select', 'tab', [tab-1PUITFRj], {"tab-1PUITFRj":{"type":"reader"}}) called [observers: 5]

(3)(+0000009): ZoteroPDFTranslate: open attachment event detected.

(3)(+0000001): ZoteroPDFTranslate: Update Translate Panels

(3)(+0000001): ZoteroPDFTranslate.bindAddToNote

(3)(+0000039): Refreshing item box

(3)(+0000048): ZoteroPDFTranslate: open window event detected.

(3)(+0000223): itemTree.render(). Displaying Item Tree

(3)(+0000006): Getting contents of D:\Zotero\storage\RH8W88TH.zotero-pdf-state

(3)(+0000067): ZoteroPDFTranslate: buildSideBarPanel

(3)(+0000008): ZoteroPDFTranslate: updateSideBarPanelMenu

(3)(+0005553): ZoteroPDFTranslate: onTranslate. language disable=false

(3)(+0000001): ZoteroPDFTranslate: updateSideBarPanelMenu

(3)(+0000002): TypeError: can't access dead object updateResults@chrome://zoteropdftranslate/content/scripts/index.js:1293:11 callTranslate/<@chrome://zoteropdftranslate/content/scripts/index.js:1878:9 __async/<@chrome://zoteropdftranslate/content/scripts/index.js:44:13 __async@chrome://zoteropdftranslate/content/scripts/index.js:28:12 callTranslate@chrome://zoteropdftranslate/content/scripts/index.js:1860:14 onSelect/<@chrome://zoteropdftranslate/content/scripts/index.js:673:17 __async/<@chrome://zoteropdftranslate/content/scripts/index.js:44:13 __async@chrome://zoteropdftranslate/content/scripts/index.js:28:12 onSelect@chrome://zoteropdftranslate/content/scripts/index.js:651:14 updateTranslatePanel/</<@chrome://zoteropdftranslate/content/scripts/index.js:909:13

(3)(+0000001): ZoteroPDFTranslate: updatePopupStyle

from zotero-pdf-translate.

windingwind avatar windingwind commented on May 21, 2024

@zhou201505013
Could you please check the settings in Edit->Preferences->PDF Translate->General->Functions and see if Automatic Translation is disabled.

from zotero-pdf-translate.

zhou201505013 avatar zhou201505013 commented on May 21, 2024

@zhou201505013 Could you please check the settings in Edit->Preferences->PDF Translate->General->Functions and see if Automatic Translation is disabled.

The Automatic Translation is enabled. My settings is shown below.
image

from zotero-pdf-translate.

zhou201505013 avatar zhou201505013 commented on May 21, 2024

I just found that after chose some text i have to right click and chose copy to translate. If I enable the popup, i just need to chose the text and the translation will show up in the side bar.

from zotero-pdf-translate.

windingwind avatar windingwind commented on May 21, 2024

Seem like your debug logs above are not created in a fresh new start of Zotero. The network request is not triggered, which means you selected the same text before the log.

I guess this is caused by a slow network. The translations are not ready until you clicked the copy button.

from zotero-pdf-translate.

zhou201505013 avatar zhou201505013 commented on May 21, 2024

Seem like your debug logs above are not created in a fresh new start of Zotero. The network request is not triggered, which means you selected the same text before the log.

I guess this is caused by a slow network. The translations are not ready until you clicked the copy button.

You are right, thanks for your time

from zotero-pdf-translate.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.