windingwind / zotero-pdf-translate

Translate PDF, EPub, webpage, metadata, annotations, notes to the target language. Support 20+ translate services.
GNU Affero General Public License v3.0
7.63k stars 358 forks source link

[Bug] 插件可能与Zotero Reference/Style有冲突? #778

Closed AlbireoBai closed 6 months ago

AlbireoBai commented 7 months ago

Is there an existing issue for this?

Have you checked the FAQ (https://github.com/windingwind/zotero-pdf-translate/issues/6)?

Are you using the latest Zotero and the latest plugin?

Environment

Describe the bug

1.1.0-beta-40大约发布6小时后安装,刚刚安装时可以正常使用,但一觉醒来,所有的免费翻译服务均有如下报错(这里以Google为例,同时我确定可以正常使用google服务): ‘’‘[请求错误]\n\n此翻译引擎不可用,可能是密钥错误,也可能是请求过快。\n可以尝试其他翻译引擎,或者来此查看相关回答:\nhttps://zotero.yuque.com/staff-gkhviy/pdf-trans/age09f \n\n请注意,这些错误与 Zotero 和本翻译插件无关,由该翻译服务引起: Google Error: 连接至服务器时发生错误。请检查网络连接。’‘’ 我多次尝试重装插件并重启软件和电脑后仍然显示相同报错,因此准备上报Issue. 但在”Disable all other plugins(Zotero Reference/Style), exit Zotero, and restart Zotero“之后,translate又完全恢复正常了,并且remove translate重新安装后也没有发生相同报错...@-@

Debug Output

(很抱歉没能复现这一bug,以下是重装translate后无Error的Debug Output,不知道会不会有所帮助) 1712736507233 addons.xpi WARN Checking D:\Program\Working\Zotero7\distribution\extensions for addons

1712736508361 addons.webextension.zoteropdftranslate@euclpts.com WARN Loading extension 'zoteropdftranslate@euclpts.com': Reading manifest: Warning processing version: version must be a version string consisting of at most 4 integers of at most 9 digits without leading zeros, and separated with dots

1712736508392 addons.webextension.zoteropdftranslate@euclpts.com WARN Loading extension 'zoteropdftranslate@euclpts.com': Reading manifest: Using experimental APIs requires a privileged add-on.

1712736509129 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: 1723}]

[JavaScript Error: "Error: Addon must include an id, version, and type" {file: "resource://gre/modules/addons/XPIProvider.jsm" line: 1723}]

[JavaScript Error: "Error: Failed to load resource://services-settings/remote-settings.sys.mjs" {file: "resource://gre/modules/PartitioningExceptionListService.sys.mjs" line: 88}]

[JavaScript Error: "r is undefined" {file: "jar:file:///C:/Users/21062/AppData/Roaming/Zotero/Zotero/Profiles/weacohlo.default/extensions/zoteropdftranslate@euclpts.com.xpi!/chrome/content/scripts/zoteropdftranslate.js" line: 145}]

[JavaScript Error: "r is undefined" {file: "jar:file:///C:/Users/21062/AppData/Roaming/Zotero/Zotero/Profiles/weacohlo.default/extensions/zoteropdftranslate@euclpts.com.xpi!/chrome/content/scripts/zoteropdftranslate.js" line: 145}]

[JavaScript Error: "The connection was refused when attempting to contact wss://stream.zotero.org/."]

[JavaScript Error: "WebSocket connection closed: 1006 "]

[JavaScript Error: "Upload request 1/26DYW6YA failed"]

[JavaScript Error: "您的 Zotero 文件存储配额已经达到,有些文件将不能上传。Zotero 的其他数据将继续同步到 Zotero 服务器。

在 zotero.org 的帐户设置里查看更多的存储选项。

Muiruri 等 - 2022 - Numerical Simulation of High Strain Rate and Temperature Properties of Laser Powder Bed Fusion Ti6Al.pdf (8145 KB)"]

[JavaScript Error: "Upload request 1/2N56PQLU failed"]

[JavaScript Error: "您的 Zotero 文件存储配额已经达到,有些文件将不能上传。Zotero 的其他数据将继续同步到 Zotero 服务器。

在 zotero.org 的帐户设置里查看更多的存储选项。

理论力学_同济.pdf (53427 KB)"]

[JavaScript Error: "The connection was refused when attempting to contact wss://stream.zotero.org/."]

[JavaScript Error: "WebSocket connection closed: 1006 "]

appName => Zotero, version => 7.0.0-beta.72+128a540af, os => Windows 10.0 22631, locale => zh-CN, extensions => Translate for Zotero (1.1.0-beta.40, extension), Zotero Style (2.6.7, extension, disabled), Zotero Reference (0.5.8, extension, disabled)

Anything else?

No response

duofengzhiling commented 7 months ago

翻译一栏无法更改源语言

congmoyue commented 7 months ago

反复测试会遇到类似问题,然后翻译出现在选中框,而且有时候选中不同的段落出现相同的之前的翻译

congmoyue commented 7 months ago
2 1

补充了两种状态希望您对您寻找问题能有所帮助

windingwind commented 7 months ago

感谢反馈,请先打开debug output,然后执行触发问题的操作,然后提交debug output。截图对排查问题帮助不大

congmoyue commented 7 months ago

日志.txt 应该是抓取到最后的错误信息了,希望有帮助

windingwind commented 7 months ago

感谢反馈。请尝试禁用其他所有插件的情况下复现

congmoyue commented 7 months ago

第二次日志.txt 这次是只剩一个插件进行的测试,也是可以复现出来,希望有用

windingwind commented 7 months ago

关于提到的翻译原文本和结果文本在侧边栏的显示顺序,请检查设置中是否开启了翻译 -> 高级 -> 侧边栏:反转源/结果显示位置。

congmoyue commented 7 months ago

关于提到的翻译原文本和结果文本在侧边栏的显示顺序,请检查设置中是否开启了翻译 -> 高级 -> 侧边栏:反转源/结果显示位置。

感谢就是这里的问题,已经改过来了

github-actions[bot] commented 6 months ago

This issue is stale because it has been open for 30 days with no activity.

github-actions[bot] commented 6 months ago

This issue was closed because it has been inactive for 7 days since being marked as stale.