alfred-google-translate icon indicating copy to clipboard operation
alfred-google-translate copied to clipboard

今天我下载了一个最新的版本 覆盖了我之前的版本 不知道什么原因直接不能翻译了

Open hermitcai opened this issue 3 years ago • 33 comments

hermitcai avatar Jan 30 '21 06:01 hermitcai

image

hermitcai avatar Jan 30 '21 06:01 hermitcai

麻烦能截一下错误日志

xfslove avatar Feb 01 '21 00:02 xfslove

一直卡着不动了 没有错误日志 了 其实我一直的痛点是非常慢的问题 2秒我都可以接受 我的现在一直都是10多秒

On Feb 1, 2021, at 8:57 AM, Iven [email protected] wrote:

麻烦能截一下错误日志

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/xfslove/alfred-google-translate/issues/77#issuecomment-770493179, or unsubscribe https://github.com/notifications/unsubscribe-auth/AKX7PKJLH22PCXUA6ZY4V53S4X36LANCNFSM4W2ACTGA.

hermitcai avatar Feb 01 '21 00:02 hermitcai

那应该是网络问题

  1. 看一下你的socks代理正常不
  2. 再一个可能代理服务器访问不了translate.google.cn, 换成com试试

xfslove avatar Feb 01 '21 02:02 xfslove

On Mon, Feb 1, 2021 at 10:14 AM Iven [email protected] 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 https://github.com/xfslove/alfred-google-translate/issues/77#issuecomment-770517325, or unsubscribe https://github.com/notifications/unsubscribe-auth/AKX7PKIRWSB3CTIU5KIZBOTS4YFBDANCNFSM4W2ACTGA .

都试过了 就是很慢 这俩个我都检查

hermitcai avatar Feb 01 '21 02:02 hermitcai

你意思是现在你的问题是翻译结果能出现,不过出现的很慢是吗

xfslove avatar Feb 01 '21 06:02 xfslove

情况是这样的 我之前用我自己改好的版本能用 但是特别慢 15秒才能出现结果 我为了解决慢的问题 我直接改用了最新的版本 也按照要求设置了 翻译不出结果 我的vpn很快 1s不到就能翻译出结果

On Feb 1, 2021, at 2:06 PM, Iven [email protected] wrote:

你意思是现在你的问题是翻译结果能出现,不过出现的很慢是吗

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/xfslove/alfred-google-translate/issues/77#issuecomment-770595954, or unsubscribe https://github.com/notifications/unsubscribe-auth/AKX7PKK4MI34LZNRK2W5RC3S4ZAGDANCNFSM4W2ACTGA.

hermitcai avatar Feb 01 '21 06:02 hermitcai

一直卡住应该是网络问题,网络问题不调试的话确实比较难定位

你能试试在terminal里面能访问到translate.google.com吗

这样curl --socks5 127.0.0.1:7890 https://translate.google.com

xfslove avatar Feb 02 '21 01:02 xfslove

可以很快响应一大串

On Feb 2, 2021, at 9:12 AM, Iven [email protected] wrote:

curl --socks5 127.0.0.1:7890 https://translate.google.com https://translate.google.com/

hermitcai avatar Feb 02 '21 13:02 hermitcai

我看到控制台异常了 [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. (/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. (/usr/local/lib/node_modules/alfred-google-translate/node_modules/alfy/index.js:166:3) at Generator.next () 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 [email protected] wrote:

socks5

hermitcai avatar Feb 02 '21 13:02 hermitcai

你这个问题应该和 #73 一样,包冲突了,他那边试着重装了一下

xfslove avatar Feb 03 '21 03:02 xfslove

只有删除重装吗 On Wed, Feb 3, 2021 at 11:23 AM Iven [email protected] wrote:

你这个问题应该和 #73 https://github.com/xfslove/alfred-google-translate/issues/73 一样,包冲突了

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/xfslove/alfred-google-translate/issues/77#issuecomment-772191061, or unsubscribe https://github.com/notifications/unsubscribe-auth/AKX7PKLQLL5XZQNJZHLXCNTS5C6S7ANCNFSM4W2ACTGA .

hermitcai avatar Feb 03 '21 03:02 hermitcai

只是说重装起来比较简单,找包冲突的话比较复杂,需要看看你安装的npm包里哪些依赖了parse-json

xfslove avatar Feb 04 '21 01:02 xfslove

只要重装npm就好了吗

On Feb 4, 2021, at 9:31 AM, Iven [email protected] wrote:

只是说重装起来比较简单,找包冲突的话比较复杂,需要看看你安装的npm包里哪些依赖了parse-json

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/xfslove/alfred-google-translate/issues/77#issuecomment-772956520, or unsubscribe https://github.com/notifications/unsubscribe-auth/AKX7PKIAIYQ45MZ34NBQ5BTS5H2I3ANCNFSM4W2ACTGA.

hermitcai avatar Feb 04 '21 01:02 hermitcai

npm不需要重装,重装一下你安装过的包

xfslove avatar Feb 04 '21 01:02 xfslove

是我进去把node_modules删除 然后重新安装一次吗 是哪些包? 可以给我下命令吗

On Feb 4, 2021, at 9:37 AM, Iven [email protected] wrote:

npm不需要重装,重装一下你安装过的包

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/xfslove/alfred-google-translate/issues/77#issuecomment-772958252, or unsubscribe https://github.com/notifications/unsubscribe-auth/AKX7PKNYEMGZ2AWQPZFWX6LS5H233ANCNFSM4W2ACTGA.

hermitcai avatar Feb 04 '21 01:02 hermitcai

npm list -g,都uninstall 再 install一下就好,然后我看你workflow好像是下载的,你也在alfred里面删掉,用npm安装一下

xfslove avatar Feb 04 '21 01:02 xfslove

之后再运行什么命令 npm install吗 我这些操作都是直接在控制台默认窗口下就可以 还是要去到插件的目录 npm怎么安装alfred?

On Feb 4, 2021, at 9:42 AM, Iven [email protected] 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 https://github.com/xfslove/alfred-google-translate/issues/77#issuecomment-772960083, or unsubscribe https://github.com/notifications/unsubscribe-auth/AKX7PKNKUAZPQAIPYJT5MLTS5H3P5ANCNFSM4W2ACTGA.

hermitcai avatar Feb 04 '21 01:02 hermitcai

image

你看这个,我这个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`, ...

image

也不需要重新装alfred,我意思是把alfred-google-translate从alfred workflow里面删除,用上面的命令装一下

xfslove avatar Feb 04 '21 02:02 xfslove

1 我按照这个思路执行下看看

On Feb 4, 2021, at 10:06 AM, Iven [email protected] 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 https://github.com/xfslove/alfred-google-translate/issues/77#issuecomment-772969292, or unsubscribe https://github.com/notifications/unsubscribe-auth/AKX7PKPDKXV3WWKAU2MZOJLS5H6LVANCNFSM4W2ACTGA.

hermitcai avatar Feb 04 '21 02:02 hermitcai

image 遇到了这个异常

hermitcai avatar Feb 04 '21 04:02 hermitcai

https://github.com/xfslove/alfred-google-translate/issues/13 我的alfred的版本是4 但是检测出来是3 如果让我重新安装alfred我在alfred里面记录的标签就都没有了 为什么会alfred是3呢

hermitcai avatar Feb 04 '21 04:02 hermitcai

image 我本地没有3版本的文件 是否可以通过命令指定为4

hermitcai avatar Feb 04 '21 04:02 hermitcai

现在竟然出现了识别我的alfred版本问题 识别为3 我不用命令安装 手动安装是不行的 https://github.com/xfslove/alfred-google-translate/issues/31 https://github.com/xfslove/alfred-google-translate/issues/31 这里是已经支持alfred4了吗 还是说要想办法去处理

On Feb 4, 2021, at 10:06 AM, Iven [email protected] 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 https://github.com/xfslove/alfred-google-translate/issues/77#issuecomment-772969292, or unsubscribe https://github.com/notifications/unsubscribe-auth/AKX7PKPDKXV3WWKAU2MZOJLS5H6LVANCNFSM4W2ACTGA.

hermitcai avatar Feb 04 '21 06:02 hermitcai

是支持4的,你全局搜索一下Alfred,看下是不是有Alfred3的缓存sudo find / -iname "*alfred*"

xfslove avatar Feb 04 '21 09:02 xfslove

image 我在我的全局搜索过了 确实没有这个3 我反复看过俩次

hermitcai avatar Feb 11 '21 01:02 hermitcai

确实没有3的任何东西 但是就是总是识别到3的文件 出现那个异常

On Feb 4, 2021, at 5:43 PM, Iven [email protected] 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 https://github.com/xfslove/alfred-google-translate/issues/77#issuecomment-773173765, or unsubscribe https://github.com/notifications/unsubscribe-auth/AKX7PKK7GEJPCOGZNHIAW5TS5JT4HANCNFSM4W2ACTGA.

hermitcai avatar Feb 23 '21 09:02 hermitcai

找不到另外一个语言配置的包

On Feb 4, 2021, at 10:06 AM, Iven [email protected] 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 https://github.com/xfslove/alfred-google-translate/issues/77#issuecomment-772969292, or unsubscribe https://github.com/notifications/unsubscribe-auth/AKX7PKPDKXV3WWKAU2MZOJLS5H6LVANCNFSM4W2ACTGA.

hermitcai avatar Feb 23 '21 09:02 hermitcai

手动安装语言包可以了 但是速度还是慢了

hermitcai avatar Feb 23 '21 09:02 hermitcai

确实还是很慢 需要5-8秒

On Feb 4, 2021, at 10:06 AM, Iven [email protected] 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 https://github.com/xfslove/alfred-google-translate/issues/77#issuecomment-772969292, or unsubscribe https://github.com/notifications/unsubscribe-auth/AKX7PKPDKXV3WWKAU2MZOJLS5H6LVANCNFSM4W2ACTGA.

hermitcai avatar Feb 23 '21 09:02 hermitcai