intellism / vscode-comment-translate

vscode 注释翻译插件, 不干扰正常代码,方便快速阅读源码。
https://marketplace.visualstudio.com/items?itemName=intellsmi.comment-translate
MIT License
484 stars 77 forks source link

【error】一直显示正在加载(Always show loading. Even if the change of Baidu, Ali, Bing source is useless. Still loading......) #142

Closed cubxxw closed 1 year ago

cubxxw commented 1 year ago

image image

Always show loading. Even if the change of Baidu, Ali, Bing source is useless. Still loading......

There is also the remote ssh development plug-in failure problem, looking forward to solving. 🎉

intellism commented 1 year ago

可以查看下 输出面板 comment translate的日志信息。

cubxxw commented 1 year ago

我发现 comment translate 有两个输出任务

[Error - 20:08:19] Request textDocument/hover failed.
  Message: Request textDocument/hover failed with message: connect ETIMEDOUT 172.217.163.46:443
  Code: -32603 
[Error - 20:08:19] Request textDocument/hover failed.
  Message: Request textDocument/hover failed with message: connect ETIMEDOUT 172.217.163.46:443
  Code: -32603 
[Error - 20:09:24] Request textDocument/hover failed.
  Message: Request textDocument/hover failed with message: connect ETIMEDOUT 172.217.163.46:443
  Code: -32603 
[Error - 20:09:24] Request textDocument/hover failed.
  Message: Request textDocument/hover failed with message: connect ETIMEDOUT 172.217.163.46:443
  Code: -32603 
[Error - 20:55:11] Request textDocument/hover failed.
  Message: Request textDocument/hover failed with message: connect ETIMEDOUT 142.251.42.238:443
  Code: -32603 
[Error - 20:55:11] Request textDocument/hover failed.
  Message: Request textDocument/hover failed with message: connect ETIMEDOUT 142.251.42.238:443
  Code: -32603 
[Error - 21:04:51] Request textDocument/hover failed.
  Message: Request textDocument/hover failed with message: connect ETIMEDOUT 142.251.42.238:443
  Code: -32603 
[Error - 21:04:51] Request textDocument/hover failed.
  Message: Request textDocument/hover failed with message: connect ETIMEDOUT 142.251.42.238:443
  Code: -32603 
[Error - 21:04:55] Request textDocument/hover failed.
  Message: Request textDocument/hover failed with message: connect ETIMEDOUT 142.251.42.238:443
  Code: -32603 
[Error - 21:04:55] Request textDocument/hover failed.
  Message: Request textDocument/hover failed with message: connect ETIMEDOUT 142.251.42.238:443
  Code: -32603 
[Error - 21:05:12] Request textDocument/hover failed.
  Message: Request textDocument/hover failed with message: connect ETIMEDOUT 142.251.43.14:443
  Code: -32603 
[Error - 21:05:12] Request textDocument/hover failed.
  Message: Request textDocument/hover failed with message: connect ETIMEDOUT 142.251.43.14:443
  Code: -32603 
[Error - 11:08:44] Request textDocument/hover failed.
  Message: Request textDocument/hover failed with message: connect ETIMEDOUT 142.251.42.238:443
  Code: -32603 
[Error - 11:08:44] Request textDocument/hover failed.
  Message: Request textDocument/hover failed with message: connect ETIMEDOUT 142.251.42.238:443
  Code: -32603 
[Error - 11:15:45] Request textDocument/hover failed.
  Message: Request textDocument/hover failed with message: connect ETIMEDOUT 142.251.42.238:443
  Code: -32603 
[Error - 11:15:45] Request textDocument/hover failed.
  Message: Request textDocument/hover failed with message: connect ETIMEDOUT 142.251.42.238:443
  Code: -32603 
[Error - 11:27:15] Request textDocument/hover failed.
  Message: Request textDocument/hover failed with message: connect ETIMEDOUT 142.251.43.14:443
  Code: -32603 
[Error - 11:27:15] Request textDocument/hover failed.
  Message: Request textDocument/hover failed with message: connect ETIMEDOUT 142.251.43.14:443
  Code: -32603 
[Error - 11:27:17] Request textDocument/hover failed.
  Message: Request textDocument/hover failed with message: connect ETIMEDOUT 142.251.43.14:443
  Code: -32603 
[Error - 11:27:17] Request textDocument/hover failed.
  Message: Request textDocument/hover failed with message: connect ETIMEDOUT 142.251.43.14:443
  Code: -32603 
[Error - 11:27:32] Request textDocument/hover failed.
  Message: Request textDocument/hover failed with message: connect ETIMEDOUT 142.251.43.14:443
  Code: -32603 
[Error - 11:27:32] Request textDocument/hover failed.
  Message: Request textDocument/hover failed with message: connect ETIMEDOUT 142.251.43.14:443
  Code: -32603 
[Error - 11:27:39] Request textDocument/hover failed.
  Message: Request textDocument/hover failed with message: connect ETIMEDOUT 142.251.43.14:443
  Code: -32603 
[Error - 11:27:39] Request textDocument/hover failed.
  Message: Request textDocument/hover failed with message: connect ETIMEDOUT 142.251.43.14:443
  Code: -32603 
[Error - 11:27:41] Request textDocument/hover failed.
  Message: Request textDocument/hover failed with message: connect ETIMEDOUT 142.251.43.14:443
  Code: -32603 
[Error - 11:27:41] Request textDocument/hover failed.
  Message: Request textDocument/hover failed with message: connect ETIMEDOUT 142.251.43.14:443
  Code: -32603 
[Error - 11:27:43] Request textDocument/hover failed.
  Message: Request textDocument/hover failed with message: connect ETIMEDOUT 142.251.43.14:443
  Code: -32603 
[Error - 11:27:43] Request textDocument/hover failed.
  Message: Request textDocument/hover failed with message: connect ETIMEDOUT 142.251.43.14:443
  Code: -32603 

 InvalidAccessKeyIdError: Specified access key is not found or invalid., URL: https://mt.cn-hangzhou.aliyuncs.com/ 
 Try again later or change translate source.{"name":"InvalidAccessKeyIdError","data":{"RequestId":"39B333BF-C880-587A-8AA9-951C65609AA7","Message":"Specified access key is not found or invalid.","Recommend":"https://next.api.aliyun.com/troubleshoot?q=InvalidAccessKeyId&product=alimt","HostId":"mt.cn-hangzhou.aliyuncs.com","Code":"InvalidAccessKeyId"},"code":"InvalidAccessKeyId","url":"https://mt.cn-hangzhou.aliyuncs.com/","entry":{"url":"https://mt.cn-hangzhou.aliyuncs.com/","request":{"headers":{"x-sdk-client":"Node.js(v16.14.2), @alicloud/pop-core: 1.7.12","user-agent":"AlibabaCloud (win32; x64) Node.js/v16.14.2 Core/1.7.12","x-acs-action":"TranslateGeneral","x-acs-version":"2018-10-12","content-type":"application/x-www-form-urlencoded","host":"mt.cn-hangzhou.aliyuncs.com"}},"response":{"statusCode":404,"headers":{"date":"Tue, 29 Nov 2022 03:27:31 GMT","content-type":"application/json;charset=utf-8","content-length":"267","connection":"close","access-control-allow-origin":"*","x-acs-request-id":"39B333BF-C880-587A-8AA9-951C65609AA7","x-acs-trace-id":"8b7f8444def0a647c92c064b04a9b96f"}}}}
[Start translate]: Use 'intellsmi.comment-translate-ali.cloud' translate source
[intellsmi.comment-translate-ali.cloud]: request error:
 InvalidAccessKeyIdError: Specified access key is not found or invalid., URL: https://mt.cn-hangzhou.aliyuncs.com/ 
 Try again later or change translate source.{"name":"InvalidAccessKeyIdError","data":{"RequestId":"F81960BE-17A0-5BEC-86DF-65E0934AE67A","Message":"Specified access key is not found or invalid.","Recommend":"https://next.api.aliyun.com/troubleshoot?q=InvalidAccessKeyId&product=alimt","HostId":"mt.cn-hangzhou.aliyuncs.com","Code":"InvalidAccessKeyId"},"code":"InvalidAccessKeyId","url":"https://mt.cn-hangzhou.aliyuncs.com/","entry":{"url":"https://mt.cn-hangzhou.aliyuncs.com/","request":{"headers":{"x-sdk-client":"Node.js(v16.14.2), @alicloud/pop-core: 1.7.12","user-agent":"AlibabaCloud (win32; x64) Node.js/v16.14.2 Core/1.7.12","x-acs-action":"TranslateGeneral","x-acs-version":"2018-10-12","content-type":"application/x-www-form-urlencoded","host":"mt.cn-hangzhou.aliyuncs.com"}},"response":{"statusCode":404,"headers":{"date":"Tue, 29 Nov 2022 03:27:39 GMT","content-type":"application/json;charset=utf-8","content-length":"267","connection":"close","access-control-allow-origin":"*","x-acs-request-id":"F81960BE-17A0-5BEC-86DF-65E0934AE67A","x-acs-trace-id":"66d51bd121271e198e2c7d9fb1b7c35c"}}}}
[Start translate]: Use 'intellsmi.comment-translate-ali.cloud' translate source
[intellsmi.comment-translate-ali.cloud]: request error:
 InvalidAccessKeyIdError: Specified access key is not found or invalid., URL: https://mt.cn-hangzhou.aliyuncs.com/ 
 Try again later or change translate source.{"name":"InvalidAccessKeyIdError","data":{"RequestId":"DFD97097-C077-5A89-8A7C-13C88F589457","Message":"Specified access key is not found or invalid.","Recommend":"https://next.api.aliyun.com/troubleshoot?q=InvalidAccessKeyId&product=alimt","HostId":"mt.cn-hangzhou.aliyuncs.com","Code":"InvalidAccessKeyId"},"code":"InvalidAccessKeyId","url":"https://mt.cn-hangzhou.aliyuncs.com/","entry":{"url":"https://mt.cn-hangzhou.aliyuncs.com/","request":{"headers":{"x-sdk-client":"Node.js(v16.14.2), @alicloud/pop-core: 1.7.12","user-agent":"AlibabaCloud (win32; x64) Node.js/v16.14.2 Core/1.7.12","x-acs-action":"TranslateGeneral","x-acs-version":"2018-10-12","content-type":"application/x-www-form-urlencoded","host":"mt.cn-hangzhou.aliyuncs.com"}},"response":{"statusCode":404,"headers":{"date":"Tue, 29 Nov 2022 03:27:41 GMT","content-type":"application/json;charset=utf-8","content-length":"267","connection":"close","access-control-allow-origin":"*","x-acs-request-id":"DFD97097-C077-5A89-8A7C-13C88F589457","x-acs-trace-id":"4515a6717df532e30253fd30bd2d9c36"}}}}
[Start translate]: Use 'intellsmi.comment-translate-ali.cloud' translate source
[intellsmi.comment-translate-ali.cloud]: request error:
 InvalidAccessKeyIdError: Specified access key is not found or invalid., URL: https://mt.cn-hangzhou.aliyuncs.com/ 
 Try again later or change translate source.{"name":"InvalidAccessKeyIdError","data":{"RequestId":"9876AF37-86FD-5145-9D73-37841AFA447E","Message":"Specified access key is not found or invalid.","Recommend":"https://next.api.aliyun.com/troubleshoot?q=InvalidAccessKeyId&product=alimt","HostId":"mt.cn-hangzhou.aliyuncs.com","Code":"InvalidAccessKeyId"},"code":"InvalidAccessKeyId","url":"https://mt.cn-hangzhou.aliyuncs.com/","entry":{"url":"https://mt.cn-hangzhou.aliyuncs.com/","request":{"headers":{"x-sdk-client":"Node.js(v16.14.2), @alicloud/pop-core: 1.7.12","user-agent":"AlibabaCloud (win32; x64) Node.js/v16.14.2 Core/1.7.12","x-acs-action":"TranslateGeneral","x-acs-version":"2018-10-12","content-type":"application/x-www-form-urlencoded","host":"mt.cn-hangzhou.aliyuncs.com"}},"response":{"statusCode":404,"headers":{"date":"Tue, 29 Nov 2022 03:27:42 GMT","content-type":"application/json;charset=utf-8","content-length":"267","connection":"close","access-control-allow-origin":"*","x-acs-request-id":"9876AF37-86FD-5145-9D73-37841AFA447E","x-acs-trace-id":"af93780121e694809d50686fe6ee96cf"}}}}

@intellism

cubxxw commented 1 year ago

我不明白这些错误来自哪里, 突然就不能用了

intellism commented 1 year ago

https://www.aliyun.com/product/ai/alimt 申请一个ali翻译的 apiKey吧。

cubxxw commented 1 year ago

@intellism 申请过了,还是没有改变。

[Start translate]: Use 'intellsmi.comment-translate-ali.cloud' translate source
[intellsmi.comment-translate-ali.cloud]: request error:
 InvalidAccessKeyIdError: Specified access key is not found or invalid., URL: https://mt.cn-hangzhou.aliyuncs.com/ 
 Try again later or change translate source.{"name":"InvalidAccessKeyIdError","data":{"RequestId":"EED407AC-1608-5325-B86E-45E4DCF8046E","Message":"Specified access key is not found or invalid.","Recommend":"https://next.api.aliyun.com/troubleshoot?q=InvalidAccessKeyId&product=alimt","HostId":"mt.cn-hangzhou.aliyuncs.com","Code":"InvalidAccessKeyId"},"code":"InvalidAccessKeyId","url":"https://mt.cn-hangzhou.aliyuncs.com/","entry":{"url":"https://mt.cn-hangzhou.aliyuncs.com/","request":{"headers":{"x-sdk-client":"Node.js(v16.14.2), @alicloud/pop-core: 1.7.12","user-agent":"AlibabaCloud (win32; x64) Node.js/v16.14.2 Core/1.7.12","x-acs-action":"TranslateGeneral","x-acs-version":"2018-10-12","content-type":"application/x-www-form-urlencoded","host":"mt.cn-hangzhou.aliyuncs.com"}},"response":{"statusCode":404,"headers":{"date":"Tue, 29 Nov 2022 06:05:57 GMT","content-type":"application/json;charset=utf-8","content-length":"267","connection":"close","access-control-allow-origin":"*","x-acs-request-id":"EED407AC-1608-5325-B86E-45E4DCF8046E","x-acs-trace-id":"df9cf19f9f860200d80e5d24eb36be7a"}}}}

image

image

cubxxw commented 1 year ago

我的工作区换成 ali image

Cherrs commented 1 year ago

看下你的代理,应该是设置了代理导致的

cubxxw commented 1 year ago

@Cherrs 如果是系统代理的话,是没有问题的,我尝试过关闭代理,但是依旧效果不明显

Cherrs commented 1 year ago

@cubxxw 切换到bing看看报错吗

cubxxw commented 1 year ago

@Cherrs yep, 都尝试过~ ali、Google、bing、baidu

Cherrs commented 1 year ago

@cubxxw 你切换成bing 日志发出来看下

cubxxw commented 1 year ago

@Cherrs 1.


[Start translate]: Use 'intellsmi.comment-translate-ali.cloud' translate source
[intellsmi.comment-translate-ali.cloud]: request error:
 InvalidAccessKeyIdError: Specified access key is not found or invalid., URL: https://mt.cn-hangzhou.aliyuncs.com/ 
 Try again later or change translate source.{"name":"InvalidAccessKeyIdError","data":{"RequestId":"61F5E0A8-E954-51C8-846F-07910382B206","Message":"Specified access key is not found or invalid.","Recommend":"https://next.api.aliyun.com/troubleshoot?q=InvalidAccessKeyId&product=alimt","HostId":"mt.cn-hangzhou.aliyuncs.com","Code":"InvalidAccessKeyId"},"code":"InvalidAccessKeyId","url":"https://mt.cn-hangzhou.aliyuncs.com/","entry":{"url":"https://mt.cn-hangzhou.aliyuncs.com/","request":{"headers":{"x-sdk-client":"Node.js(v16.14.2), @alicloud/pop-core: 1.7.12","user-agent":"AlibabaCloud (win32; x64) Node.js/v16.14.2 Core/1.7.12","x-acs-action":"TranslateGeneral","x-acs-version":"2018-10-12","content-type":"application/x-www-form-urlencoded","host":"mt.cn-hangzhou.aliyuncs.com"}},"response":{"statusCode":404,"headers":{"date":"Sun, 04 Dec 2022 07:42:04 GMT","content-type":"application/json;charset=utf-8","content-length":"267","connection":"close","access-control-allow-origin":"*","x-acs-request-id":"61F5E0A8-E954-51C8-846F-07910382B206","x-acs-trace-id":"02391e0d737c2819dba2e02d807adc1b"}}}}
[Start translate]: Use 'intellsmi.comment-translate-ali.cloud' translate source
[intellsmi.comment-translate-ali.cloud]: request error:
 InvalidAccessKeyIdError: Specified access key is not found or invalid., URL: https://mt.cn-hangzhou.aliyuncs.com/ 
 Try again later or change translate source.{"name":"InvalidAccessKeyIdError","data":{"RequestId":"0441D197-CD64-5B25-9B63-C0D2E820CAB8","Message":"Specified access key is not found or invalid.","Recommend":"https://next.api.aliyun.com/troubleshoot?q=InvalidAccessKeyId&product=alimt","HostId":"mt.cn-hangzhou.aliyuncs.com","Code":"InvalidAccessKeyId"},"code":"InvalidAccessKeyId","url":"https://mt.cn-hangzhou.aliyuncs.com/","entry":{"url":"https://mt.cn-hangzhou.aliyuncs.com/","request":{"headers":{"x-sdk-client":"Node.js(v16.14.2), @alicloud/pop-core: 1.7.12","user-agent":"AlibabaCloud (win32; x64) Node.js/v16.14.2 Core/1.7.12","x-acs-action":"TranslateGeneral","x-acs-version":"2018-10-12","content-type":"application/x-www-form-urlencoded","host":"mt.cn-hangzhou.aliyuncs.com"}},"response":{"statusCode":404,"headers":{"date":"Sun, 04 Dec 2022 07:45:44 GMT","content-type":"application/json;charset=utf-8","content-length":"267","connection":"close","access-control-allow-origin":"*","x-acs-request-id":"0441D197-CD64-5B25-9B63-C0D2E820CAB8","x-acs-trace-id":"7e4dccdf17baee9c7373951fcff090e4"}}}}Switch translate source to 'Bing'.

[Start translate]: Use 'Bing' translate source
[Start translate]: Use 'Bing' translate source
[Bing]:
{t-0}{t-1}  {t-2}, 12个月前 via PR [**#754**](command:gitlens.action.openPullRequest?%7B%22repoPath%22%3A%22d%3A%2F%E6%96%87%E6%A1%A3%2Fmy%2Fsealos%22%2C%22provider%22%3A%7B%22id%22%3A%22github%22%2C%22name%22%3A%22GitHub%22%2C%22domain%22%3A%22github.com%22%7D%2C%22pullRequest%22%3A%7B%22id%22%3A%22754%22%2C%22url%22%3A%22https%3A%2F%2Fgithub.com%2Flabring%2Fsealos%2Fpull%2F754%22%7D%2C%22type%22%3A%22openPullRequest%22%7D "Open Pull Request \#754 on GitHub
——
add infra module 
Merged, 12个月前")   _(12 19th, 2021 6:38 下午)_ 
> add infra module  \({t-0}\)   \
>   \
>  \* hotfix\(master\): add infra module
--
<span style="color:#8250df;">$(git-merge)</span> {t-0}\
754 merged 12个月前
--
{t-0} &nbsp;{t-1} &nbsp;{t-2} &nbsp;{t-3} &nbsp;{t-4} &nbsp;{t-5} &nbsp;&nbsp;|&nbsp;&nbsp; [$(git-pull-request) PR #754](command:gitlens.action.openPullRequest?%7B%22repoPath%22%3A%22d%3A%2F%E6%96%87%E6%A1%A3%2Fmy%2Fsealos%22%2C%22provider%22%3A%7B%22id%22%3A%22github%22%2C%22name%22%3A%22GitHub%22%2C%22domain%22%3A%22github.com%22%7D%2C%22pullRequest%22%3A%7B%22id%22%3A%22754%22%2C%22url%22%3A%22https%3A%2F%2Fgithub.com%2Flabring%2Fsealos%2Fpull%2F754%22%7D%2C%22type%22%3A%22openPullRequest%22%7D "Open Pull Request \#754 on GitHub
——
add infra module 
Merged, 12个月前") &nbsp;&nbsp;|&nbsp;&nbsp; {t-0} &nbsp;&nbsp;|&nbsp;&nbsp; {t-1}
[<============================>]:
{t-0} {t-1} &nbsp;{t-2}, 12个月前 via PR [**#754**](command:gitlens.action.openPullRequest?%7B%22repoPath%22%3A%22d%3A%2F%E6%96%87%E6%A1%A3%2Fmy%2Fsealos%22%2C%22provider%22%3A%7B%22id%22%3A%22github%22%2C%22name%22%3A%22GitHub%22%2C%22domain%22%3A%22github.com%22%7D%2C%22pullRequest%22%3A%7B%22id%22%3A%22754%22%2C%22url%22%3A%22https%3A%2F%2Fgithub.com%2Flabring%2Fsealos%2Fpull%2F754%22%7D%2C%22type%22% 3A%22openPullRequest%22%7D "Open Pull Request \#754 on GitHub
——
add infra module 
Merged, 12个月前") &nbsp; _(12 19th, 2021 6:38 下午)_ 
> add infra module  \({t-0}\)   \
>   \
>  \* hotfix\(master\): add infra module
--
<span style="color:#8250df;">$(git-merge)</span> {t-0}\
754 merged 12个月前
--
{t-0} &nbsp;{t-1} &nbsp;{t-2} &nbsp;{t-3} &nbsp;{t-4} &nbsp;{t-5} &nbsp;&nbsp;|&nbsp;&nbsp; [$(git-pull-request) PR #754](command:gitlens.action.openPullRequest?%7B%22repoPath%22%3A%22d%3A%2F%E6%96%87%E6%A1%A3%2Fmy%2Fsealos%22%2C%22provider%22%3A%7B%22id%22%3A%22github%22%2C%22name%22%3A%22GitHub%22%2C%22domain%22%3A%22github.com%22%7D%2C%22pullRequest%22%3A%7B%22id%22%3A%22754%22%2C%22url%22%3A%22https%3A% 2F%2Fgithub.com%2Flabring%2Fsealos%2Fpull%2F754%22%7D%2C%22type%22%3A%22openPullRequest%22%7D "Open Pull Request \#754 on GitHub
——
add infra module 
Merged, 12个月前") &nbsp;&nbsp;|&nbsp;&nbsp; {t-0} &nbsp;&nbsp;|&nbsp;&nbsp; {t-1}

[Bing]:
{t-0}{t-1} &nbsp;{t-2}, 12个月前 via PR [**#754**](command:gitlens.action.openPullRequest?%7B%22repoPath%22%3A%22d%3A%2F%E6%96%87%E6%A1%A3%2Fmy%2Fsealos%22%2C%22provider%22%3A%7B%22id%22%3A%22github%22%2C%22name%22%3A%22GitHub%22%2C%22domain%22%3A%22github.com%22%7D%2C%22pullRequest%22%3A%7B%22id%22%3A%22754%22%2C%22url%22%3A%22https%3A%2F%2Fgithub.com%2Flabring%2Fsealos%2Fpull%2F754%22%7D%2C%22type%22%3A%22openPullRequest%22%7D "Open Pull Request \#754 on GitHub
——
add infra module 
Merged, 12个月前") &nbsp; _(12 19th, 2021 6:38 下午)_ 
> add infra module  \({t-0}\)   \
>   \
>  \* hotfix\(master\): add infra module
--
<span style="color:#8250df;">$(git-merge)</span> {t-0}\
754 merged 12个月前\
<span style="color:#8250df;">$(git-merge)</span> {t-0}\
754 merged 12个月前
--
{t-0} &nbsp;{t-1} &nbsp;{t-2} &nbsp;{t-3} &nbsp;{t-4} &nbsp;{t-5} &nbsp;&nbsp;|&nbsp;&nbsp; [$(git-pull-request) PR #754](command:gitlens.action.openPullRequest?%7B%22repoPath%22%3A%22d%3A%2F%E6%96%87%E6%A1%A3%2Fmy%2Fsealos%22%2C%22provider%22%3A%7B%22id%22%3A%22github%22%2C%22name%22%3A%22GitHub%22%2C%22domain%22%3A%22github.com%22%7D%2C%22pullRequest%22%3A%7B%22id%22%3A%22754%22%2C%22url%22%3A%22https%3A%2F%2Fgithub.com%2Flabring%2Fsealos%2Fpull%2F754%22%7D%2C%22type%22%3A%22openPullRequest%22%7D "Open Pull Request \#754 on GitHub
——
add infra module 
Merged, 12个月前") &nbsp;&nbsp;|&nbsp;&nbsp; {t-0} &nbsp;&nbsp;|&nbsp;&nbsp; {t-1}
[<============================>]:
{t-0} {t-1} &nbsp;{t-2}, 12个月前 via PR [**#754**](command:gitlens.action.openPullRequest?%7B%22repoPath%22%3A%22d%3A%2F%E6%96%87%E6%A1%A3%2Fmy%2Fsealos%22%2C%22provider%22%3A%7B%22id%22%3A%22github%22%2C%22name%22%3A%22GitHub%22%2C%22domain%22%3A%22github.com%22%7D%2C%22pullRequest%22%3A%7B%22id%22%3A%22754%22%2C%22url%22%3A%22https%3A%2F%2Fgithub.com%2Flabring%2Fsealos%2Fpull%2F754%22%7D%2C%22type%22% 3A%22openPullRequest%22%7D "Open Pull Request \#754 on GitHub
——
add infra module 
Merged, 12个月前") &nbsp; _(12 19th, 2021 6:38 下午)_ 
> add infra module  \({t-0}\)   \
>   \
>  \* hotfix\(master\): add infra module
--
<span style="color:#8250df;">$(git-merge)</span> {t-0}\
754 merged 12个月前\
<span style="color:#8250df;">$(git-merge)</span> {t-0}\
754 merged 12个月前
--
{t-0} &nbsp;{t-1} &nbsp;{t-2} &nbsp;{t-3} &nbsp;{t-4} &nbsp;{t-5} &nbsp;&nbsp;|&nbsp;&nbsp; [$(git-pull-request) PR #754](command:gitlens.action.openPullRequest?%7B%22repoPath%22%3A%22d%3A%2F%E6%96%87%E6%A1%A3%2Fmy%2Fsealos%22%2C%22provider%22%3A%7B%22id%22%3A%22github%22%2C%22name%22%3A%22GitHub%22%2C%22domain%22%3A%22github.com%22%7D%2C%22pullRequest%22%3A%7B%22id%22%3A%22754%22%2C%22url%22%3A%22https%3A% 2F%2Fgithub.com%2Flabring%2Fsealos%2Fpull%2F754%22%7D%2C%22type%22%3A%22openPullRequest%22%7D "Open Pull Request \#754 on GitHub
——
add infra module 
Merged, 12个月前") &nbsp;&nbsp;|&nbsp;&nbsp; {t-0} &nbsp;&nbsp;|&nbsp;&nbsp; {t-1}

[Start translate]: Use 'Bing' translate source
[Bing]:
GroupName is the group name use in this package
[<============================>]:
GroupName is the group name use in this package

[Start translate]: Use 'Bing' translate source
[Bing]:
Copyright © 2021 sealos.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and limitations under the License.
[<============================>]:
Copyright © 2021 sealos.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and limitations under the License.

[Start translate]: Use 'Bing' translate source
[Bing]:
翻译 `name` :  
{t-0} */neim/*:  
n. 名字, 名称, 姓名, 名义, 名誉, 文件名  
vt. 命名, 称呼, 任命, 提名, 列举  
a. 姓名的, 据以取名的  
[计] 名称, 文件名, 姓名  
[<============================>]:
Translate 'name' :  
{t-0} */neim/*:  
n. Name, Name, Name, Name, Reputation, File Name  
vt. Name, salutation, appointment, nomination, enumeration  
a. Name, on which the name is taken  
Name, file name, name

[Start translate]: Use 'Bing' translate source
[Bing]:
翻译 `the` :  
{t-0} */ðә/*:  
art. 那  
[<============================>]:
Translation 'the' :  
{t-0} */ðә/*:  
art. that

[Start translate]: Use 'Bing' translate source
[Bing]:
翻译 `CONDITIONS` :  
{t-0} :  
n. 形势, 情况, 环境  
[<============================>]:
TRANSLATES 'CONDITIONS' :  
{t-0} :  
n. Situation, situation, environment

[Start translate]: Use 'Bing' translate source
[Bing]:
翻译 `under` :  
{t-0} */'ʌndә/*:  
prep. 在...之下, 低于  
a. 下面的, 从属的  
adv. 在下面  
[<============================>]:
Translation 'under' :  
{t-0} */'ʌndә/*:  
prep. At... below, below  
a. Below, subordinate  
adv. Below

2.

d:\app\vscode\resources\app
[Error - 15:42:26] Request textDocument/hover failed.
  Message: Request textDocument/hover failed with message: connect ETIMEDOUT 142.251.42.238:443
  Code: -32603 
[Error - 15:42:26] Request textDocument/hover failed.
  Message: Request textDocument/hover failed with message: connect ETIMEDOUT 142.251.42.238:443
  Code: -32603 
[Error - 16:28:59] Request textDocument/hover failed.
  Message: Request textDocument/hover failed with message: connect ETIMEDOUT 142.251.43.14:443
  Code: -32603 
[Error - 16:28:59] Request textDocument/hover failed.
  Message: Request textDocument/hover failed with message: connect ETIMEDOUT 142.251.43.14:443
  Code: -32603 
[Error - 16:29:00] Request textDocument/hover failed.
  Message: Request textDocument/hover failed with message: connect ETIMEDOUT 142.251.43.14:443
  Code: -32603 
[Error - 16:29:00] Request textDocument/hover failed.
  Message: Request textDocument/hover failed with message: connect ETIMEDOUT 142.251.43.14:443
  Code: -32603 
[Error - 16:29:01] Request textDocument/hover failed.
  Message: Request textDocument/hover failed with message: connect ETIMEDOUT 142.251.43.14:443
  Code: -32603 
[Error - 16:29:01] Request textDocument/hover failed.
  Message: Request textDocument/hover failed with message: connect ETIMEDOUT 142.251.43.14:443
  Code: -32603 
[Error - 16:29:01] Request textDocument/hover failed.
  Message: Request textDocument/hover failed with message: connect ETIMEDOUT 142.251.43.14:443
  Code: -32603 
[Error - 16:29:01] Request textDocument/hover failed.
  Message: Request textDocument/hover failed with message: connect ETIMEDOUT 142.251.43.14:443
  Code: -32603 
[Error - 16:29:02] Request textDocument/hover failed.
  Message: Request textDocument/hover failed with message: connect ETIMEDOUT 142.251.43.14:443
  Code: -32603 
[Error - 16:29:02] Request textDocument/hover failed.
  Message: Request textDocument/hover failed with message: connect ETIMEDOUT 142.251.43.14:443
  Code: -32603 
[Error - 16:29:04] Request textDocument/hover failed.
  Message: Request textDocument/hover failed with message: connect ETIMEDOUT 142.251.43.14:443
  Code: -32603 
[Error - 16:29:04] Request textDocument/hover failed.
  Message: Request textDocument/hover failed with message: connect ETIMEDOUT 142.251.43.14:443
  Code: -32603 
[Error - 16:29:04] Request textDocument/hover failed.
  Message: Request textDocument/hover failed with message: connect ETIMEDOUT 142.251.43.14:443
  Code: -32603 
[Error - 16:29:04] Request textDocument/hover failed.
  Message: Request textDocument/hover failed with message: connect ETIMEDOUT 142.251.43.14:443
  Code: -32603 
[Error - 16:29:05] Request textDocument/hover failed.
  Message: Request textDocument/hover failed with message: connect ETIMEDOUT 142.251.43.14:443
  Code: -32603 
[Error - 16:29:15] Request textDocument/hover failed.
  Message: Request textDocument/hover failed with message: connect ETIMEDOUT 142.251.43.14:443
  Code: -32603 
[Error - 16:29:15] Request textDocument/hover failed.
  Message: Request textDocument/hover failed with message: connect ETIMEDOUT 142.251.43.14:443
  Code: -32603 
[Error - 16:29:16] Request textDocument/hover failed.
  Message: Request textDocument/hover failed with message: connect ETIMEDOUT 142.251.43.14:443
  Code: -32603 
[Error - 16:29:16] Request textDocument/hover failed.
  Message: Request textDocument/hover failed with message: connect ETIMEDOUT 142.251.43.14:443
  Code: -32603 
[Error - 16:29:18] Request textDocument/hover failed.
  Message: Request textDocument/hover failed with message: connect ETIMEDOUT 142.251.43.14:443
  Code: -32603 
[Error - 16:29:19] Request textDocument/hover failed.
  Message: Request textDocument/hover failed with message: connect ETIMEDOUT 142.251.43.14:443
  Code: -32603 
[Error - 16:29:19] Request textDocument/hover failed.
  Message: Request textDocument/hover failed with message: connect ETIMEDOUT 142.251.43.14:443
  Code: -32603
Cherrs commented 1 year ago

@cubxxw 你已经翻译成功了,你可以看下是不是别的插件影响了hover,尝试使用扩展二等分来排除

lumisong commented 5 months ago

我也遇到了同样的问题:Always show loading. 最终由于翻译源:会出现成功翻译和翻译失败两种情况,但整体翻译速度卡在前面加载过程中很长时间。 image

lumisong commented 5 months ago

标题: 持续的textDocument/hover请求失败导致插件无法通过代理加载

正文:

问题描述

在使用vscode-comment-translate插件时,遇到了一个持续的问题,该插件无法通过代理服务器正常加载和翻译内容。具体表现为Request textDocument/hover failed. 的错误信息频繁出现,这导致了翻译功能无法使用,而且VS Code在尝试使用插件进行翻译时会一直处于加载状态。

重现步骤

  1. 在VS Code中安装并启用vscode-comment-translate插件。
  2. 确保VS Code已经配置了正确的代理设置。
  3. 尝试使用插件翻译代码中的注释。
  4. 观察到插件无法完成翻译,且输出textDocument/hover failed的错误。

预期行为

预期插件应当能够正常通过配置的代理服务器发送请求并完成翻译,不应当出现持续的请求失败。

实际行为

插件在发送翻译请求时出现了连接超时的问题,无法通过代理服务器正确访问到翻译服务的地址,尽管代理服务器能够正常访问Google等网站,并且VS Code的其它插件也能够通过这个代理服务器正常工作。

错误日志和截图

以下是错误日志的截图链接(由于无法直接上传图片,所以提供GitHub中的相关图片链接):

插件错误截图

环境信息

额外的上下文信息

我自己的代理配置是可以正常工作的,我已验证通过浏览器可以正常访问142.251.43.14(解析是Google地址)。我怀疑是插件在某些情况下不使用VS Code全局的代理设置,可能是插件内部如何处理代理请求的机制问题。希望能得到帮助解决这个问题。

感谢您的支持!