-
Notifications
You must be signed in to change notification settings - Fork 65
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
今天我下载了一个最新的版本 覆盖了我之前的版本 不知道什么原因直接不能翻译了 #77
Comments
麻烦能截一下错误日志 |
一直卡着不动了 没有错误日志 了 其实我一直的痛点是非常慢的问题 2秒我都可以接受 我的现在一直都是10多秒
… On Feb 1, 2021, at 8:57 AM, Iven ***@***.***> wrote:
麻烦能截一下错误日志
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub <#77 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AKX7PKJLH22PCXUA6ZY4V53S4X36LANCNFSM4W2ACTGA>.
|
那应该是网络问题
|
On Mon, Feb 1, 2021 at 10:14 AM Iven ***@***.***> wrote:
那应该是网络问题
1. 看一下你的socks代理正常不
2. 再一个可能代理服务器访问不了translate.google.cn, 换成com试试
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#77 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AKX7PKIRWSB3CTIU5KIZBOTS4YFBDANCNFSM4W2ACTGA>
.
都试过了 就是很慢 这俩个我都检查
|
你意思是现在你的问题是翻译结果能出现,不过出现的很慢是吗 |
情况是这样的
我之前用我自己改好的版本能用 但是特别慢 15秒才能出现结果
我为了解决慢的问题 我直接改用了最新的版本 也按照要求设置了 翻译不出结果
我的vpn很快 1s不到就能翻译出结果
… On Feb 1, 2021, at 2:06 PM, Iven ***@***.***> wrote:
你意思是现在你的问题是翻译结果能出现,不过出现的很慢是吗
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub <#77 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AKX7PKK4MI34LZNRK2W5RC3S4ZAGDANCNFSM4W2ACTGA>.
|
一直卡住应该是网络问题,网络问题不调试的话确实比较难定位 你能试试在terminal里面能访问到translate.google.com吗 这样 |
可以很快响应一大串
… On Feb 2, 2021, at 9:12 AM, Iven ***@***.***> wrote:
curl --socks5 127.0.0.1:7890 https://translate.google.com <https://translate.google.com/>
|
我看到控制台异常了
[21:46:17.724] Logging Started...
[21:46:25.803] Google Translate[Hotkey <alfredpreferences:workflows%3Eworkflow%3Euser.workflow.E1DE072B-CD08-41F5-8E97-6A285240F831%3EC111234F-195C-486B-BB1D-04203C339ADD>] Processing complete
[21:46:25.812] Google Translate[Hotkey <alfredpreferences:workflows%3Eworkflow%3Euser.workflow.E1DE072B-CD08-41F5-8E97-6A285240F831%3EC111234F-195C-486B-BB1D-04203C339ADD>] Passing output 'Rocketbot' to Script Filter <alfredpreferences:workflows%3Eworkflow%3Euser.workflow.E1DE072B-CD08-41F5-8E97-6A285240F831%3E287F7DE4-2A8A-4356-9659-797E2F2AE72A>
[21:46:26.122] Google Translate[Script Filter <alfredpreferences:workflows%3Eworkflow%3Euser.workflow.E1DE072B-CD08-41F5-8E97-6A285240F831%3E287F7DE4-2A8A-4356-9659-797E2F2AE72A>] Queuing argument 'Rocketbot'
[21:46:27.275] Google Translate[Script Filter <alfredpreferences:workflows%3Eworkflow%3Euser.workflow.E1DE072B-CD08-41F5-8E97-6A285240F831%3E287F7DE4-2A8A-4356-9659-797E2F2AE72A>] Script with argv 'Rocketbot' finished
[21:46:27.278] STDERR: Google Translate[Script Filter <alfredpreferences:workflows%3Eworkflow%3Euser.workflow.E1DE072B-CD08-41F5-8E97-6A285240F831%3E287F7DE4-2A8A-4356-9659-797E2F2AE72A>] (node:20231) UnhandledPromiseRejectionWarning: /Users/garlichead/Library/Application Support/Alfred/Alfred.alfredpreferences/workflows/user.workflow.E1DE072B-CD08-41F5-8E97-6A285240F831/node_modules/read-pkg-up/node_modules/parse-json/index.js:1
Error: Cannot find module 'json-parse-better-errors'
Require stack:
- /Users/garlichead/Library/Application Support/Alfred/Alfred.alfredpreferences/workflows/user.workflow.E1DE072B-CD08-41F5-8E97-6A285240F831/node_modules/read-pkg-up/node_modules/parse-json/index.js
- /Users/garlichead/Library/Application Support/Alfred/Alfred.alfredpreferences/workflows/user.workflow.E1DE072B-CD08-41F5-8E97-6A285240F831/node_modules/read-pkg-up/node_modules/read-pkg/index.js
- /Users/garlichead/Library/Application Support/Alfred/Alfred.alfredpreferences/workflows/user.workflow.E1DE072B-CD08-41F5-8E97-6A285240F831/node_modules/read-pkg-up/index.js
- /Users/garlichead/Library/Application Support/Alfred/Alfred.alfredpreferences/workflows/user.workflow.E1DE072B-CD08-41F5-8E97-6A285240F831/node_modules/alfy/lib/update-notification.js
- /Users/garlichead/Library/Application Support/Alfred/Alfred.alfredpreferences/workflows/user.workflow.E1DE072B-CD08-41F5-8E97-6A285240F831/node_modules/alfy/index.js
- /Users/garlichead/Library/Application Support/Alfred/Alfred.alfredpreferences/workflows/user.workflow.E1DE072B-CD08-41F5-8E97-6A285240F831/index.js
at Object.<anonymous> (/usr/local/lib/node_modules/alfred-google-translate/node_modules/read-pkg-up/node_modules/parse-json/index.js:3:18)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1171:10)
(node:20231) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1)
(node:20231) UnhandledPromiseRejectionWarning: TypeError: updateNotification is not a function
at /usr/local/lib/node_modules/alfred-google-translate/node_modules/alfy/index.js:14:1
at Object.<anonymous> (/usr/local/lib/node_modules/alfred-google-translate/node_modules/alfy/index.js:166:3)
at Generator.next (<anonymous>)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1171:10)
(node:20231) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 2)
(node:20231) UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'length' of undefined
at sM (/Users/garlichead/Library/Application Support/Alfred/Alfred.alfredpreferences/workflows/user.workflow.E1DE072B-CD08-41F5-8E97-6A285240F831/token.js:32:42)
at /Users/garlichead/Library/Application Support/Alfred/Alfred.alfredpreferences/workflows/user.workflow.E1DE072B-CD08-41F5-8E97-6A285240F831/token.js:111:18
at processTicksAndRejections (internal/process/task_queues.js:97:5)
(node:20231) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 3)
… On Feb 2, 2021, at 9:12 AM, Iven ***@***.***> wrote:
socks5
|
你这个问题应该和 #73 一样,包冲突了,他那边试着重装了一下 |
只有删除重装吗
…On Wed, Feb 3, 2021 at 11:23 AM Iven ***@***.***> wrote:
你这个问题应该和 #73
<#73> 一样,包冲突了
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#77 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AKX7PKLQLL5XZQNJZHLXCNTS5C6S7ANCNFSM4W2ACTGA>
.
|
只是说重装起来比较简单,找包冲突的话比较复杂,需要看看你安装的npm包里哪些依赖了 |
只要重装npm就好了吗
… On Feb 4, 2021, at 9:31 AM, Iven ***@***.***> wrote:
只是说重装起来比较简单,找包冲突的话比较复杂,需要看看你安装的npm包里哪些依赖了parse-json
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub <#77 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AKX7PKIAIYQ45MZ34NBQ5BTS5H2I3ANCNFSM4W2ACTGA>.
|
npm不需要重装,重装一下你安装过的包 |
是我进去把node_modules删除 然后重新安装一次吗
是哪些包?
可以给我下命令吗
… On Feb 4, 2021, at 9:37 AM, Iven ***@***.***> wrote:
npm不需要重装,重装一下你安装过的包
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub <#77 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AKX7PKNYEMGZ2AWQPZFWX6LS5H233ANCNFSM4W2ACTGA>.
|
|
之后再运行什么命令 npm install吗 我这些操作都是直接在控制台默认窗口下就可以 还是要去到插件的目录 npm怎么安装alfred?
… On Feb 4, 2021, at 9:42 AM, Iven ***@***.***> wrote:
npm list -g,都uninstall 再 install一下就好,然后我看你workflow好像是下载的,你也在alfred里面删掉,用npm安装一下
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub <#77 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AKX7PKNKUAZPQAIPYJT5MLTS5H3P5ANCNFSM4W2ACTGA>.
|
你看这个,我这个npm安装了5个包,我就把除了npm之外的包卸载掉 然后我再重新装一遍``npm install -g alfred-google-translate 也不需要重新装alfred,我意思是把alfred-google-translate从alfred workflow里面删除,用上面的命令装一下 |
1 我按照这个思路执行下看看
… On Feb 4, 2021, at 10:06 AM, Iven ***@***.***> wrote:
<https://user-images.githubusercontent.com/7803346/106834357-40b88f80-66d0-11eb-985a-853fe7dd3ae0.png>
你看这个,我这个npm安装了5个包,我就把除了npm之外的包卸载掉npm uninstall -g alfred-google-translate, npm uninstall -g alfred-language-configuration, ...
然后我再重新装一遍``npm install -g alfred-google-translate, npm install -g alfred-language-configration`, ...
<https://user-images.githubusercontent.com/7803346/106834548-a3119000-66d0-11eb-9d68-b884e1174a09.png>
也不需要重新装alfred,我意思是把alfred-google-translate从alfred workflow里面删除,用上面的命令装一下
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub <#77 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AKX7PKPDKXV3WWKAU2MZOJLS5H6LVANCNFSM4W2ACTGA>.
|
#13 |
… On Feb 4, 2021, at 10:06 AM, Iven ***@***.***> wrote:
<https://user-images.githubusercontent.com/7803346/106834357-40b88f80-66d0-11eb-985a-853fe7dd3ae0.png>
你看这个,我这个npm安装了5个包,我就把除了npm之外的包卸载掉npm uninstall -g alfred-google-translate, npm uninstall -g alfred-language-configuration, ...
然后我再重新装一遍``npm install -g alfred-google-translate, npm install -g alfred-language-configration`, ...
<https://user-images.githubusercontent.com/7803346/106834548-a3119000-66d0-11eb-9d68-b884e1174a09.png>
也不需要重新装alfred,我意思是把alfred-google-translate从alfred workflow里面删除,用上面的命令装一下
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub <#77 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AKX7PKPDKXV3WWKAU2MZOJLS5H6LVANCNFSM4W2ACTGA>.
|
是支持4的,你全局搜索一下Alfred,看下是不是有Alfred3的缓存 |
确实没有3的任何东西 但是就是总是识别到3的文件 出现那个异常
… On Feb 4, 2021, at 5:43 PM, Iven ***@***.***> wrote:
是支持4的,你全局搜索一下Alfred,看下是不是有Alfred3的缓存sudo find / -iname "*alfred*"
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub <#77 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AKX7PKK7GEJPCOGZNHIAW5TS5JT4HANCNFSM4W2ACTGA>.
|
找不到另外一个语言配置的包
… On Feb 4, 2021, at 10:06 AM, Iven ***@***.***> wrote:
<https://user-images.githubusercontent.com/7803346/106834357-40b88f80-66d0-11eb-985a-853fe7dd3ae0.png>
你看这个,我这个npm安装了5个包,我就把除了npm之外的包卸载掉npm uninstall -g alfred-google-translate, npm uninstall -g alfred-language-configuration, ...
然后我再重新装一遍``npm install -g alfred-google-translate, npm install -g alfred-language-configration`, ...
<https://user-images.githubusercontent.com/7803346/106834548-a3119000-66d0-11eb-9d68-b884e1174a09.png>
也不需要重新装alfred,我意思是把alfred-google-translate从alfred workflow里面删除,用上面的命令装一下
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub <#77 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AKX7PKPDKXV3WWKAU2MZOJLS5H6LVANCNFSM4W2ACTGA>.
|
手动安装语言包可以了 但是速度还是慢了 |
确实还是很慢 需要5-8秒
… On Feb 4, 2021, at 10:06 AM, Iven ***@***.***> wrote:
<https://user-images.githubusercontent.com/7803346/106834357-40b88f80-66d0-11eb-985a-853fe7dd3ae0.png>
你看这个,我这个npm安装了5个包,我就把除了npm之外的包卸载掉npm uninstall -g alfred-google-translate, npm uninstall -g alfred-language-configuration, ...
然后我再重新装一遍``npm install -g alfred-google-translate, npm install -g alfred-language-configration`, ...
<https://user-images.githubusercontent.com/7803346/106834548-a3119000-66d0-11eb-9d68-b884e1174a09.png>
也不需要重新装alfred,我意思是把alfred-google-translate从alfred workflow里面删除,用上面的命令装一下
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub <#77 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AKX7PKPDKXV3WWKAU2MZOJLS5H6LVANCNFSM4W2ACTGA>.
|
👍 慢的问题确实存在,不过最近忙着别的事确实没时间去研究,等看啥时候有空了来看看 |
嗯嗯 等待你的好消息啊 其实网络这些都很快的 是不是google的api调用很慢 具体慢在哪里 很奇怪 如果调用api慢 我们是不是可以考虑换成其他的api调用方 因为我也试用了有道的一个alfred翻译插件 是真的贼快
… On Feb 24, 2021, at 10:07 AM, Iven ***@***.***> wrote:
手动安装语言包可以了 但是速度还是慢了
👍
慢的问题确实存在,不过最近忙着别的事确实没时间去研究,等看啥时候有空了来看看
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub <#77 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AKX7PKLXDXGNCT664O4LKATTARNP7ANCNFSM4W2ACTGA>.
|
哎
长翻译出不来 不知道是啥原因 哎 一波三折
… On Feb 24, 2021, at 10:09 AM, Garlichead Cai ***@***.***> wrote:
嗯嗯 等待你的好消息啊 其实网络这些都很快的 是不是google的api调用很慢 具体慢在哪里 很奇怪 如果调用api慢 我们是不是可以考虑换成其他的api调用方 因为我也试用了有道的一个alfred翻译插件 是真的贼快
> On Feb 24, 2021, at 10:07 AM, Iven ***@***.*** ***@***.***>> wrote:
>
>
> 手动安装语言包可以了 但是速度还是慢了
>
> 👍
>
> 慢的问题确实存在,不过最近忙着别的事确实没时间去研究,等看啥时候有空了来看看
>
> —
> You are receiving this because you authored the thread.
> Reply to this email directly, view it on GitHub <#77 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AKX7PKLXDXGNCT664O4LKATTARNP7ANCNFSM4W2ACTGA>.
>
|
No description provided.
The text was updated successfully, but these errors were encountered: