alibaba-cloud-toolkit / cosy Goto Github PK
View Code? Open in Web Editor NEW阿里云智能编码插件品牌升级为通义灵码,欢迎查看通义灵码帮助手册,同时也期待你在 IDE 客户端中将插件升级,我在通义灵码等你,一起开启智能编码之旅。
Home Page: https://tongyi.aliyun.com/lingma
阿里云智能编码插件品牌升级为通义灵码,欢迎查看通义灵码帮助手册,同时也期待你在 IDE 客户端中将插件升级,我在通义灵码等你,一起开启智能编码之旅。
Home Page: https://tongyi.aliyun.com/lingma
环境:Win10;idea2021.3;Alibaba Cloud AI Coding Assistant0.9.5-beta
这个地方跳转的本意应该是跳转到能够反馈此插件问题的地方(report problem),现在给跳到了http://www.alibabacloud.com/ 那里也没有反馈此插件问题的入口哇!就算我在网站上联系到的阿里的客服小姐姐,就算客服小姐姐知道这个插件是干嘛地,大概率也会让我转到这里反馈吧!南辕北辙?
Describe the bug(描述您遇到的问题)
编码插件搜索没有结果,查看cosy.log发现报错信息是这个Retry failed, won't use BadgerDB this time
To Reproduce(复现步骤)
发现问题后,更新插件,问题没有解决。清除idea 的cache重启也没有得到解决。
本地系统
Contact Info(如愿意请留下联系方式,需求上线后,我们将第一时间联系您)
cosy.log
Describe the bug(描述您遇到的问题)
为啥安装cosy插件之后 左下角有一个很大的cosy插件图标?怎么去掉?
To Reproduce(复现步骤)
本地系统
Contact Info(如愿意请留下联系方式,需求上线后,我们将第一时间联系您)
[email protected]
Intellij IDEA 2021.2.3(Ultimate Edition)
0.9.6-beta
因为 idea 里面新建类的模板是默认不带 public
关键字的,比如新建一个 User 类:
class User {
}
新建之后,如果想要再手动加上 public
时,由 cosy 提供的代码提示有三项:
这里我认为有 2 个问题:
publiclass User {
}
对于这个问题,比较奇怪,少了一个 c
和空格,导致语法错误。
public interfaceclass User {
}
对于这个问题,我个人觉得,我代码写的 class,为啥还要提示 public interface
呢?而且我选了之后代码语法还是错的。
安装了最新的AIO的插件,包括安装插件商店中的版本,都不能搜索到结果。
以下是日志内容
2022-02-16T09:44:53.254+0800 INFO Starting server...
2022-02-16T09:44:53.254+0800 INFO Preparing inference envrionment
2022-02-16T09:44:53.254+0800 INFO Reinitializing inference environment
2022-02-16T09:44:56.255+0800 ERROR Failed to call
2022-02-16T09:44:58.255+0800 ERROR Failed to create connection, please file an issue at: https://github.com/alibaba-cloud-toolkit/cosy/issues
本地系统
似乎没有什么规律,不知道什么时候就会出现:
Cosy execution errororg.eclipse.lsp4j.jsonrpc.JsonRpcException: java.io.IOException: 管道正在被关闭。
java.util.concurrent.ExecutionException: org.eclipse.lsp4j.jsonrpc.JsonRpcException: java.io.IOException: 管道正在被关闭。
at java.base/java.util.concurrent.CompletableFuture.reportGet(CompletableFuture.java:395)
at java.base/java.util.concurrent.CompletableFuture.get(CompletableFuture.java:2022)
at com.alibabacloud.intellij.cosy.core.lsp.LanguageService.completion(LanguageService.java:106)
at com.alibabacloud.intellij.cosy.core.lsp.LanguageService.lambda$completionWithDebouncer$0(LanguageService.java:75)
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
at java.base/java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:304)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
at java.base/java.lang.Thread.run(Thread.java:829)
Caused by: org.eclipse.lsp4j.jsonrpc.JsonRpcException: java.io.IOException: 管道正在被关闭。
at org.eclipse.lsp4j.jsonrpc.json.StreamMessageConsumer.consume(StreamMessageConsumer.java:72)
at org.eclipse.lsp4j.jsonrpc.RemoteEndpoint.request(RemoteEndpoint.java:161)
at org.eclipse.lsp4j.jsonrpc.services.EndpointProxy.invoke(EndpointProxy.java:91)
at com.sun.proxy.$Proxy119.completion(Unknown Source)
at com.alibabacloud.intellij.cosy.core.lsp.LanguageService.completion(LanguageService.java:105)
... 6 more
Caused by: java.io.IOException: 管道正在被关闭。
at java.base/java.io.FileOutputStream.writeBytes(Native Method)
at java.base/java.io.FileOutputStream.write(FileOutputStream.java:354)
at java.base/java.io.BufferedOutputStream.flushBuffer(BufferedOutputStream.java:81)
at java.base/java.io.BufferedOutputStream.flush(BufferedOutputStream.java:142)
at org.eclipse.lsp4j.jsonrpc.json.StreamMessageConsumer.consume(StreamMessageConsumer.java:69)
... 10 more
代码没有提示,实例搜索可以用
日志:
2022-02-25T14:38:31.247+0800 INFO All model completes prediction, costs: 309.6464ms
2022-02-25T14:38:31.247+0800 INFO Skipped candidate analyzing
2022-02-25T14:38:31.247+0800 INFO Postprocess completed, time cost: 0s
2022-02-25T14:38:31.247+0800 INFO Completion costs: 310.0883ms
2022-02-25T14:38:31.247+0800 INFO **************************************
2022-02-25T14:38:31.264+0800 INFO Calling local completion failed: Calling completion timeout
2022-02-25T14:38:31.264+0800 ERROR Predict error: Calling completion timeout
2022-02-25T14:38:31.271+0800 ERROR Oooops, there is an error in inference session: unexpected EOF
2022-02-25T14:38:31.271+0800 INFO Restarting cosy local service...
2022-02-25T14:38:31.271+0800 ERROR Oooops, there is an error in inference session: unexpected EOF
2022-02-25T14:38:31.271+0800 INFO Shuting down cosy local
2022-02-25T14:38:31.271+0800 INFO Restarting cosy local service...
2022-02-25T14:38:31.271+0800 INFO Shuting down cosy local
2022-02-25T14:38:31.606+0800 INFO Failed to shutdown local service on windows: exit status 128
2022-02-25T14:38:31.606+0800 INFO Initializing local inference service
2022-02-25T14:38:31.606+0800 INFO Failed to shutdown local service on windows: exit status 128
2022-02-25T14:38:31.607+0800 INFO Initializing local inference service
2022-02-25T14:38:31.611+0800 INFO Local inference service initialized
2022-02-25T14:38:31.611+0800 INFO Calling local completion failed: unexpected EOF
2022-02-25T14:38:31.611+0800 ERROR Predict error: unexpected EOF
2022-02-25T14:38:31.614+0800 INFO Local inference service initialized
2022-02-25T14:38:31.614+0800 INFO Calling local completion failed: unexpected EOF
2022-02-25T14:38:31.614+0800 ERROR Predict error: unexpected EOF
2022-02-25T14:38:32.661+0800 ERROR Cosylocal error: The given version [8] is not supported, only version 1 to 7 is supported in this build.
2022-02-25T14:38:32.661+0800 ERROR Cosylocal error: thread 'main' panicked at 'assertion failed: `(left != right)`
left: `0x0`,
right: `0x0`', C:\Users\toolkit\.cargo\registry\src\github.com-1ecc6299db9ec823\onnxruntime-0.0.14\src\lib.rs:180:5
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
2022-02-25T14:38:32.681+0800 ERROR Cosylocal error: The given version [8] is not supported, only version 1 to 7 is supported in this build.
2022-02-25T14:38:32.682+0800 ERROR Cosylocal error: thread 'main' panicked at 'assertion failed: `(left != right)`
left: `0x0`,
right: `0x0`', C:\Users\toolkit\.cargo\registry\src\github.com-1ecc6299db9ec823\onnxruntime-0.0.14\src\lib.rs:180:5
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
使用代码提示提供的代码输入后少一个空格,有点难受,望改进,感谢
最新版idea不支持
OS:macOS Monterey
IDEA 2021.3.1
command+shift+s
快捷键不能生效。
公司对外网有限制,不知是不是因为这个影响的。版本是最新版0.9.2-beta....日志文件上传不了....只能复制了
2021-10-29T11:38:53.322+0800 INFO System platform x86_64_windows
2021-10-29T11:38:54.427+0800 ERROR Request temp token error: Get "https://codeup.cn-hangzhou.aliyuncs.com/api/v2/forceai/sts/": dial tcp 47.111.202.72:443: connectex: An attempt was made to access a socket in a way forbidden by its access permissions.
2021-10-29T11:38:54.428+0800 ERROR Cosy update failed: cannot initialize oss client, err:Get "https://codeup.cn-hangzhou.aliyuncs.com/api/v2/forceai/sts/": dial tcp 47.111.202.72:443: connectex: An attempt was made to access a socket in a way forbidden by its access permissions.
2021-10-29T11:38:54.705+0800 INFO Starting server...
2021-10-29T11:38:54.724+0800 INFO Preparing inference envrionment
2021-10-29T11:38:54.725+0800 ERROR Failed to read raw env file, run cosy update first
2021-10-29T11:44:48.172+0800 INFO System platform x86_64_windows
2021-10-29T11:44:49.121+0800 ERROR Request temp token error: Get "https://codeup.cn-hangzhou.aliyuncs.com/api/v2/forceai/sts/": dial tcp 47.111.202.72:443: connectex: An attempt was made to access a socket in a way forbidden by its access permissions.
2021-10-29T11:44:49.121+0800 ERROR Cosy update failed: cannot initialize oss client, err:Get "https://codeup.cn-hangzhou.aliyuncs.com/api/v2/forceai/sts/": dial tcp 47.111.202.72:443: connectex: An attempt was made to access a socket in a way forbidden by its access permissions.
2021-10-29T11:44:49.692+0800 INFO Starting server...
2021-10-29T11:44:49.708+0800 INFO Preparing inference envrionment
2021-10-29T11:44:49.709+0800 ERROR Failed to read raw env file, run cosy update first
2021-10-29T11:59:49.189+0800 ERROR Failed to call
2021-10-29T12:00:00.090+0800 ERROR Failed to call
2021-10-29T12:14:49.171+0800 ERROR Failed to call
2021-10-29T14:22:37.675+0800 ERROR Failed to call
2021-10-29T14:22:37.675+0800 ERROR Failed to call
2021-10-29T14:37:37.028+0800 ERROR Failed to call
2021-10-29T14:52:37.028+0800 ERROR Failed to call
2021-10-29T15:00:00.096+0800 ERROR Failed to call
2021-10-29T15:07:37.029+0800 ERROR Failed to call
2021-10-29T15:22:37.026+0800 ERROR Failed to call
2021-10-29T15:37:37.184+0800 ERROR Failed to call
2021-10-29T15:52:37.184+0800 ERROR Failed to call
2021-10-29T16:00:00.139+0800 ERROR Failed to call
2021-10-29T16:07:37.177+0800 ERROR Failed to call
2021-10-29T16:22:37.029+0800 ERROR Failed to call
2021-10-29T16:37:37.108+0800 ERROR Failed to call
2021-10-29T16:52:37.209+0800 ERROR Failed to call
2021-10-29T17:00:00.105+0800 ERROR Failed to call
2021-10-29T17:07:37.145+0800 ERROR Failed to call
2021-10-29T17:22:37.166+0800 ERROR Failed to call
2021-11-01T09:16:09.217+0800 INFO System platform x86_64_windows
2021-11-01T09:16:09.942+0800 ERROR Request temp token error: Get "https://codeup.cn-hangzhou.aliyuncs.com/api/v2/forceai/sts/": dial tcp 101.37.132.80:443: connectex: An attempt was made to access a socket in a way forbidden by its access permissions.
2021-11-01T09:16:09.942+0800 ERROR Cosy update failed: cannot initialize oss client, err:Get "https://codeup.cn-hangzhou.aliyuncs.com/api/v2/forceai/sts/": dial tcp 101.37.132.80:443: connectex: An attempt was made to access a socket in a way forbidden by its access permissions.
2021-11-01T09:16:10.875+0800 INFO Starting server...
2021-11-01T09:16:10.890+0800 INFO Preparing inference envrionment
2021-11-01T09:16:10.891+0800 ERROR Failed to read raw env file, run cosy update first
2021-11-01T09:31:11.379+0800 ERROR Failed to call
2021-11-01T09:46:11.056+0800 ERROR Failed to call
2021-11-01T10:00:01.164+0800 ERROR Failed to call
2021-11-01T10:01:10.006+0800 ERROR Failed to call
2021-11-01T10:16:10.140+0800 ERROR Failed to call
2021-11-01T10:31:10.076+0800 ERROR Failed to call
2021-11-01T10:46:10.160+0800 ERROR Failed to call
2021-11-01T11:00:00.235+0800 ERROR Failed to call
2021-11-01T11:01:10.037+0800 ERROR Failed to call
2021-11-01T11:16:10.089+0800 ERROR Failed to call
2021-11-01T11:31:10.078+0800 ERROR Failed to call
2021-11-01T11:46:10.053+0800 ERROR Failed to call
2021-11-01T12:00:00.106+0800 ERROR Failed to call
2021-11-01T12:01:10.004+0800 ERROR Failed to call
2021-11-01T12:16:10.028+0800 ERROR Failed to call
2021-11-01T12:31:10.096+0800 ERROR Failed to call
2021-11-01T12:46:10.177+0800 ERROR Failed to call
2021-11-01T13:00:00.154+0800 ERROR Failed to call
2021-11-01T13:01:10.004+0800 ERROR Failed to call
2021-11-01T13:16:10.171+0800 ERROR Failed to call
2021-11-01T13:31:10.142+0800 ERROR Failed to call
2021-11-01T13:46:10.183+0800 ERROR Failed to call
2021-11-01T14:00:00.180+0800 ERROR Failed to call
2021-11-01T14:01:10.094+0800 ERROR Failed to call
2021-11-01T14:16:10.185+0800 ERROR Failed to call
2021-11-01T14:31:10.550+0800 ERROR Failed to call
2021-11-01T14:46:10.616+0800 ERROR Failed to call
2021-11-01T15:00:00.507+0800 ERROR Failed to call
2021-11-01T15:01:10.034+0800 ERROR Failed to call
2021-11-01T15:16:10.128+0800 ERROR Failed to call
2021-11-01T15:31:10.242+0800 ERROR Failed to call
2021-11-01T15:46:10.305+0800 ERROR Failed to call
2021-11-01T16:00:00.271+0800 ERROR Failed to call
2021-11-01T16:01:10.086+0800 ERROR Failed to call
2021-11-01T16:16:10.202+0800 ERROR Failed to call
2021-11-01T16:31:10.206+0800 ERROR Failed to call
2021-11-01T16:46:10.138+0800 ERROR Failed to call
2021-11-01T17:00:00.549+0800 ERROR Failed to call
2021-11-01T17:01:10.354+0800 ERROR Failed to call
2021-11-01T17:16:10.401+0800 ERROR Failed to call
2021-11-01T17:26:08.423+0800 INFO System platform x86_64_windows
2021-11-01T17:26:08.956+0800 ERROR Request temp token error: Get "https://codeup.cn-hangzhou.aliyuncs.com/api/v2/forceai/sts/": dial tcp 101.37.132.80:443: connectex: An attempt was made to access a socket in a way forbidden by its access permissions.
2021-11-01T17:26:08.956+0800 ERROR Cosy update failed: cannot initialize oss client, err:Get "https://codeup.cn-hangzhou.aliyuncs.com/api/v2/forceai/sts/": dial tcp 101.37.132.80:443: connectex: An attempt was made to access a socket in a way forbidden by its access permissions.
2021-11-01T17:26:09.202+0800 INFO Starting server...
2021-11-01T17:26:09.217+0800 INFO Preparing inference envrionment
2021-11-01T17:26:09.229+0800 ERROR Failed to read raw env file, run cosy update first
2021-11-01T17:31:10.631+0800 ERROR Failed to call
2021-11-01T17:41:09.255+0800 ERROR Failed to call
2021-11-01T17:46:10.186+0800 ERROR Failed to call
2021-11-01T17:56:09.138+0800 ERROR Failed to call
2021-11-01T18:00:00.033+0800 ERROR Failed to call
2021-11-01T18:00:00.064+0800 ERROR Failed to call
2021-11-01T18:01:10.175+0800 ERROR Failed to call
2021-11-02T08:56:18.864+0800 ERROR Failed to call
2021-11-02T08:56:24.389+0800 ERROR Failed to call
2021-11-02T09:11:19.027+0800 ERROR Failed to call
2021-11-02T09:13:26.029+0800 ERROR Failed to call
2021-11-02T09:26:18.180+0800 ERROR Failed to call
2021-11-02T09:28:26.046+0800 ERROR Failed to call
2021-11-02T09:41:18.099+0800 ERROR Failed to call
2021-11-02T09:43:26.016+0800 ERROR Failed to call
2021-11-02T09:56:18.223+0800 ERROR Failed to call
2021-11-02T09:58:26.062+0800 ERROR Failed to call
2021-11-02T10:00:00.004+0800 ERROR Failed to call
2021-11-02T10:00:00.014+0800 ERROR Failed to call
2021-11-02T10:11:18.182+0800 ERROR Failed to call
2021-11-02T10:26:18.285+0800 ERROR Failed to call
2021-11-02T10:41:18.039+0800 ERROR Failed to call
2021-11-02T10:56:18.852+0800 ERROR Failed to call
2021-11-02T11:00:00.060+0800 ERROR Failed to call
2021-11-02T11:04:53.630+0800 INFO System platform x86_64_windows
2021-11-02T11:04:54.262+0800 ERROR Cosy update failed: cannot initialize oss client, err:Get "https://codeup.cn-hangzhou.aliyuncs.com/api/v2/forceai/sts/": dial tcp 47.111.202.72:443: connectex: An attempt was made to access a socket in a way forbidden by its access permissions.
2021-11-02T11:04:54.621+0800 INFO Starting server...
2021-11-02T11:04:54.636+0800 INFO Preparing inference envrionment
2021-11-02T11:04:54.636+0800 ERROR Failed to read raw env file, quit
2021-11-02T11:11:18.209+0800 ERROR Failed to call
2021-11-02T11:19:54.376+0800 ERROR Failed to call
2021-11-02T11:26:18.192+0800 ERROR Failed to call
2021-11-02T11:34:54.310+0800 ERROR Failed to call
2021-11-02T11:41:18.198+0800 ERROR Failed to call
2021-11-02T11:49:54.091+0800 ERROR Failed to call
2021-11-02T11:56:18.110+0800 ERROR Failed to call
2021-11-02T12:00:01.585+0800 ERROR Failed to call
2021-11-02T12:00:01.655+0800 ERROR Failed to call
2021-11-02T12:04:54.012+0800 ERROR Failed to call
2021-11-02T12:11:18.196+0800 ERROR Failed to call
2021-11-02T14:06:41.872+0800 ERROR Failed to call
2021-11-02T14:06:44.319+0800 ERROR Failed to call
2021-11-02T14:13:53.234+0800 ERROR Failed to call
2021-11-02T14:13:53.287+0800 ERROR Failed to call
2021-11-02T14:21:32.071+0800 ERROR Failed to call
2021-11-02T14:28:53.167+0800 ERROR Failed to call
2021-11-02T14:36:32.206+0800 ERROR Failed to call
2021-11-02T14:43:55.158+0800 ERROR Failed to call
2021-11-02T15:05:14.816+0800 INFO System platform x86_64_windows
2021-11-02T15:05:15.898+0800 ERROR Cosy update failed: cannot initialize oss client, err:Get "https://codeup.cn-hangzhou.aliyuncs.com/api/v2/forceai/sts/": dial tcp 47.111.202.72:443: connectex: An attempt was made to access a socket in a way forbidden by its access permissions.
2021-11-02T15:05:16.682+0800 INFO Starting server...
2021-11-02T15:05:16.683+0800 INFO Preparing inference envrionment
2021-11-02T15:05:16.683+0800 ERROR Failed to read raw env file, quit
2021-11-02T15:20:16.505+0800 ERROR Failed to call
2021-11-02T15:35:16.224+0800 ERROR Failed to call
2021-11-02T15:50:17.367+0800 ERROR Failed to call
2021-11-02T16:00:01.641+0800 ERROR Failed to call
2021-11-02T16:05:16.265+0800 ERROR Failed to call
2021-11-02T16:20:16.198+0800 ERROR Failed to call
2021-11-02T16:35:16.223+0800 ERROR Failed to call
2021-11-02T16:50:16.356+0800 ERROR Failed to call
2021-11-02T17:00:01.667+0800 ERROR Failed to call
2021-11-02T17:05:16.325+0800 ERROR Failed to call
2021-11-02T17:20:16.367+0800 ERROR Failed to call
2021-11-02T17:35:16.037+0800 ERROR Failed to call
2021-11-02T17:50:16.238+0800 ERROR Failed to call
2021-11-02T18:00:00.365+0800 ERROR Failed to call
2021-11-02T18:05:16.114+0800 ERROR Failed to call
2021-11-02T19:15:19.905+0800 ERROR Failed to call
2021-11-02T19:15:19.922+0800 ERROR Failed to call
2021-11-02T19:30:19.185+0800 ERROR Failed to call
2021-11-02T19:45:19.120+0800 ERROR Failed to call
2021-11-02T20:00:00.164+0800 ERROR Failed to call
2021-11-02T20:00:19.271+0800 ERROR Failed to call
2021-11-02T20:14:07.791+0800 INFO System platform x86_64_windows
2021-11-02T20:14:08.107+0800 ERROR Cosy update failed: cannot initialize oss client, err:Get "https://codeup.cn-hangzhou.aliyuncs.com/api/v2/forceai/sts/": dial tcp 101.37.132.80:443: connectex: An attempt was made to access a socket in a way forbidden by its access permissions.
2021-11-02T20:14:08.551+0800 INFO Starting server...
2021-11-02T20:14:08.570+0800 INFO Preparing inference envrionment
2021-11-02T20:14:08.570+0800 ERROR Failed to read raw env file, quit
2021-11-02T20:29:08.107+0800 ERROR Failed to call
2021-11-02T20:44:08.101+0800 ERROR Failed to call
2021-11-02T20:45:53.290+0800 INFO System platform x86_64_windows
2021-11-02T20:45:53.624+0800 ERROR Cosy update failed: cannot initialize oss client, err:Get "https://codeup.cn-hangzhou.aliyuncs.com/api/v2/forceai/sts/": dial tcp 101.37.132.80:443: connectex: An attempt was made to access a socket in a way forbidden by its access permissions.
2021-11-02T20:45:54.439+0800 INFO Starting server...
2021-11-02T20:45:54.458+0800 INFO Preparing inference envrionment
2021-11-02T20:45:54.459+0800 ERROR Failed to read raw env file, quit
2021-11-02T20:52:14.505+0800 INFO System platform x86_64_windows
2021-11-02T20:52:14.907+0800 ERROR Cosy update failed: cannot initialize oss client, err:Get "https://codeup.cn-hangzhou.aliyuncs.com/api/v2/forceai/sts/": dial tcp 101.37.132.80:443: connectex: An attempt was made to access a socket in a way forbidden by its access permissions.
2021-11-02T20:52:15.252+0800 INFO Starting server...
2021-11-02T20:52:15.265+0800 INFO Preparing inference envrionment
2021-11-02T20:52:15.265+0800 ERROR Failed to read raw env file, quit
2021-11-02T21:00:00.066+0800 ERROR Failed to call
2021-11-02T21:07:15.042+0800 ERROR Failed to call
2021-11-02T21:22:15.546+0800 ERROR Failed to call
2021-11-02T21:37:15.178+0800 ERROR Failed to call
2021-11-02T21:52:15.138+0800 ERROR Failed to call
2021-11-02T22:00:02.109+0800 ERROR Failed to call
2021-11-02T22:07:15.185+0800 ERROR Failed to call
2021-11-02T22:22:15.188+0800 ERROR Failed to call
2021-11-02T22:37:15.136+0800 ERROR Failed to call
2021-11-02T22:52:15.176+0800 ERROR Failed to call
2021-11-03T09:06:30.489+0800 ERROR Failed to call
2021-11-03T09:06:30.489+0800 ERROR Failed to call
求eclipse支持版本
日志中无明显报错信息
日志文件:
cosy.log
系统版本:macOS Monterey 12.1 (Intel)
idea版本:IntelliJ IDEA 2021.3 (Ultimate Edition)
插件版本:0.9.6-beta
2022-01-21T09:21:57.178+0800 INFO System platform x86_64_windows
2022-01-21T09:21:57.742+0800 INFO Skip update, current version: 0.1.13
2022-01-21T09:21:57.742+0800 INFO Succeed to update Cosy binary
2022-01-21T09:21:57.786+0800 INFO Updating model to 0.0.3
2022-01-21T09:21:57.884+0800 ERROR Failed to update Cosy model
2022-01-21T09:21:58.024+0800 ERROR Failed to download env file
2022-01-21T09:21:58.024+0800 ERROR Failed to update inference env
2022-01-21T09:21:58.670+0800 INFO Starting server...
2022-01-21T09:21:58.672+0800 INFO Preparing inference envrionment
2022-01-21T09:21:58.692+0800 INFO Reinitializing inference environment
2022-01-21T09:21:59.192+0800 ERROR Failed to download env file
2022-01-21T09:21:59.192+0800 ERROR Failed to initialize inference env, please file an issue at: https://github.com/alibaba-cloud-toolkit/cosy/issues
2022-01-21T09:22:04.939+0800 INFO System platform x86_64_windows
2022-01-21T09:22:05.281+0800 INFO Skip update, current version: 0.1.13
2022-01-21T09:22:05.281+0800 INFO Succeed to update Cosy binary
2022-01-21T09:22:05.319+0800 INFO Updating model to 0.0.3
2022-01-21T09:22:05.399+0800 ERROR Failed to update Cosy model
2022-01-21T09:22:05.586+0800 ERROR Failed to download env file
2022-01-21T09:22:05.586+0800 ERROR Failed to update inference env
2022-01-21T09:22:05.749+0800 INFO Starting server...
2022-01-21T09:22:05.750+0800 INFO Preparing inference envrionment
2022-01-21T09:22:05.755+0800 INFO Reinitializing inference environment
2022-01-21T09:22:06.156+0800 ERROR Failed to download env file
2022-01-21T09:22:06.157+0800 ERROR Failed to initialize inference env, please file an issue at: https://github.com/alibaba-cloud-toolkit/cosy/issues
2022-01-21T09:23:50.318+0800 INFO System platform x86_64_windows
2022-01-21T09:23:54.287+0800 INFO Skip update, current version: 0.1.13
2022-01-21T09:23:54.288+0800 INFO Succeed to update Cosy binary
2022-01-21T09:23:54.872+0800 INFO Updating model to 0.0.3
2022-01-21T09:23:58.955+0800 ERROR Failed to update Cosy model
2022-01-21T09:24:02.264+0800 ERROR Failed to download env file
2022-01-21T09:24:02.264+0800 ERROR Failed to update inference env
2022-01-21T09:24:02.470+0800 INFO Starting server...
2022-01-21T09:24:02.471+0800 INFO Preparing inference envrionment
2022-01-21T09:24:02.472+0800 INFO Reinitializing inference environment
2022-01-21T09:24:05.471+0800 ERROR Failed to call
2022-01-21T09:24:08.953+0800 ERROR Failed to download env file
2022-01-21T09:24:08.953+0800 ERROR Failed to initialize inference env, please file an issue at: https://github.com/alibaba-cloud-toolkit/cosy/issues
2022-01-21T09:24:33.272+0800 INFO System platform x86_64_windows
2022-01-21T09:24:34.641+0800 INFO Skip update, current version: 0.1.13
2022-01-21T09:24:34.641+0800 INFO Succeed to update Cosy binary
2022-01-21T09:24:34.671+0800 INFO Updating model to 0.0.3
2022-01-21T09:24:35.097+0800 ERROR Failed to update Cosy model
2022-01-21T09:24:35.294+0800 ERROR Failed to download env file
2022-01-21T09:24:35.294+0800 ERROR Failed to update inference env
2022-01-21T09:24:36.152+0800 INFO Starting server...
2022-01-21T09:24:36.193+0800 INFO Preparing inference envrionment
2022-01-21T09:24:36.198+0800 INFO Reinitializing inference environment
2022-01-21T09:24:37.039+0800 ERROR Failed to download env file
2022-01-21T09:24:37.040+0800 ERROR Failed to initialize inference env, please file an issue at: https://github.com/alibaba-cloud-toolkit/cosy/issues
2022-01-21T09:35:00.821+0800 INFO System platform x86_64_windows
2022-01-21T09:35:01.328+0800 INFO Skip update, current version: 0.1.13
2022-01-21T09:35:01.328+0800 INFO Succeed to update Cosy binary
2022-01-21T09:35:01.405+0800 INFO Updating model to 0.0.3
2022-01-21T09:35:01.456+0800 ERROR Failed to update Cosy model
2022-01-21T09:35:01.559+0800 ERROR Failed to download env file
2022-01-21T09:35:01.559+0800 ERROR Failed to update inference env
2022-01-21T09:35:01.737+0800 INFO Starting server...
2022-01-21T09:35:01.738+0800 INFO Preparing inference envrionment
2022-01-21T09:35:01.741+0800 INFO Reinitializing inference environment
2022-01-21T09:35:02.268+0800 ERROR Failed to download env file
2022-01-21T09:35:02.268+0800 ERROR Failed to initialize inference env, please file an issue at: https://github.com/alibaba-cloud-toolkit/cosy/issues
2022-01-21T09:46:21.686+0800 INFO System platform x86_64_windows
2022-01-21T09:46:22.079+0800 INFO Skip update, current version: 0.1.13
2022-01-21T09:46:22.079+0800 INFO Succeed to update Cosy binary
2022-01-21T09:46:22.102+0800 INFO Updating model to 0.0.3
2022-01-21T09:46:22.202+0800 ERROR Failed to update Cosy model
2022-01-21T09:46:22.295+0800 ERROR Failed to download env file
2022-01-21T09:46:22.295+0800 ERROR Failed to update inference env
2022-01-21T09:46:22.449+0800 INFO Starting server...
2022-01-21T09:46:22.449+0800 INFO Preparing inference envrionment
2022-01-21T09:46:22.453+0800 INFO Reinitializing inference environment
2022-01-21T09:46:22.838+0800 ERROR Failed to download env file
2022-01-21T09:46:22.838+0800 ERROR Failed to initialize inference env, please file an issue at: https://github.com/alibaba-cloud-toolkit/cosy/issues
2022-01-21T09:58:32.801+0800 INFO System platform x86_64_windows
2022-01-21T09:58:33.371+0800 INFO Skip update, current version: 0.1.13
2022-01-21T09:58:33.372+0800 INFO Succeed to update Cosy binary
2022-01-21T09:58:33.454+0800 INFO Updating model to 0.0.3
2022-01-21T09:58:33.617+0800 ERROR Failed to update Cosy model
2022-01-21T09:58:33.743+0800 ERROR Failed to download env file
2022-01-21T09:58:33.743+0800 ERROR Failed to update inference env
2022-01-21T09:58:34.048+0800 INFO Starting server...
2022-01-21T09:58:34.048+0800 INFO Preparing inference envrionment
2022-01-21T09:58:34.055+0800 INFO Reinitializing inference environment
2022-01-21T09:58:34.656+0800 ERROR Failed to download env file
2022-01-21T09:58:34.657+0800 ERROR Failed to initialize inference env, please file an issue at: https://github.com/alibaba-cloud-toolkit/cosy/issues
2022-01-21T10:02:14.780+0800 INFO System platform x86_64_windows
2022-01-21T10:02:16.564+0800 INFO Skip update, current version: 0.1.13
2022-01-21T10:02:16.564+0800 INFO Succeed to update Cosy binary
2022-01-21T10:02:16.632+0800 INFO Updating model to 0.0.3
2022-01-21T10:02:16.738+0800 ERROR Failed to update Cosy model
2022-01-21T10:02:16.879+0800 ERROR Failed to download env file
2022-01-21T10:02:16.879+0800 ERROR Failed to update inference env
2022-01-21T10:02:17.237+0800 INFO Starting server...
2022-01-21T10:02:17.243+0800 INFO Preparing inference envrionment
2022-01-21T10:02:17.248+0800 INFO Reinitializing inference environment
2022-01-21T10:02:17.818+0800 ERROR Failed to download env file
2022-01-21T10:02:17.818+0800 ERROR Failed to initialize inference env, please file an issue at: https://github.com/alibaba-cloud-toolkit/cosy/issues
重新安装了几次,也没有看到你们示例里面的提示信息出来。右边也有“代码示例搜索”的导航菜单出现。
没有提示功能,有搜索功能
日志文件
idea.log
建议鼠标没有在代码上使用快捷键时,进入 cosy 自动定位到搜索栏,方便直接搜索提高效率。或者希望新加入一个快捷方式来提供此功能。
目前是在按下快捷键后还要手动点到搜索栏才能使用,效率不高。
我不确定其他机器会不会有这个问题,我目前的环境是 macOS montery 12.2,IntelliJ IDEA 2021.3.1 (Ultimate Edition)
https://github.com/alibaba-cloud-toolkit/cosy/files/8128855/idea.log
https://github.com/alibaba-cloud-toolkit/cosy/files/8128856/cosy.log
可以连接上公网,没有限制,我的idea也没有开代理,cosy这个插件就是从plugins市场下载的
Describe the bug(描述您遇到的问题)
打开代码示例搜索时,工作区用逗号无法提示
关闭搜索页面后, 工作区代码提示恢复正常
To Reproduce(复现步骤)
本地系统
Contact Info(如愿意请留下联系方式,需求上线后,我们将第一时间联系您)
[email protected]
IDEA 2021.3 版本不兼容该插件
incompatible:requires IDE build 212.* or earlier
如题。
装了 cosy 之后,卸载 idea 的其他插件时,会自动打开浏览器跳转到 https://survey.aliyun.com/apps/zhiliao/BjXmO2C7Q
com.intellij.serviceContainer.AlreadyDisposedException: Cannot create com.intellij.psi.impl.ResolveScopeManager because container is already disposed (container=Project(name=heifengshan, containerState=DISPOSE_COMPLETED, componentStore=C:\zqykj\code\heifengshan) (disposed))
at com.intellij.serviceContainer.ContainerUtilKt.throwAlreadyDisposedError(containerUtil.kt:43)
at com.intellij.serviceContainer.ComponentManagerImpl.doGetService(ComponentManagerImpl.kt:612)
at com.intellij.serviceContainer.ComponentManagerImpl.getService(ComponentManagerImpl.kt:573)
at com.intellij.openapi.client.ClientAwareComponentManager.getFromSelfOrCurrentSession(ClientAwareComponentManager.kt:37)
at com.intellij.openapi.client.ClientAwareComponentManager.getService(ClientAwareComponentManager.kt:22)
at com.intellij.psi.impl.ResolveScopeManager.getInstance(ResolveScopeManager.java:24)
at com.intellij.psi.impl.ResolveScopeManager.getElementResolveScope(ResolveScopeManager.java:36)
at com.intellij.psi.impl.PsiElementBase.getResolveScope(PsiElementBase.java:183)
at com.intellij.psi.impl.PsiClassImplUtil.getMap(PsiClassImplUtil.java:185)
at com.intellij.psi.impl.PsiClassImplUtil.getAllByMap(PsiClassImplUtil.java:169)
at com.intellij.psi.impl.PsiClassImplUtil.getAllMethods(PsiClassImplUtil.java:55)
at com.intellij.psi.impl.compiled.ClsClassImpl.getAllMethods(ClsClassImpl.java:242)
at com.alibabacloud.intellij.cosy.util.PsiUtils.getMethodsFromPsiClass(PsiUtils.java:88)
at com.alibabacloud.intellij.cosy.linguist.util.CosyPsiUtils.findMethodsFieldsFroPsiTypeWhenDot(CosyPsiUtils.java:362)
at com.alibabacloud.intellij.cosy.linguist.psi.model.CosyPsiJavaCodeReferenceElement.tacklePsiClass(CosyPsiJavaCodeReferenceElement.java:139)
at com.alibabacloud.intellij.cosy.linguist.psi.model.CosyPsiJavaCodeReferenceElement.parse(CosyPsiJavaCodeReferenceElement.java:100)
at com.alibabacloud.intellij.cosy.linguist.psi.core.CosyPsiManager.guessCosyPsiElement(CosyPsiManager.java:84)
at com.alibabacloud.intellij.cosy.linguist.psi.core.CosyPsiManager.convertToCosyPsiElement(CosyPsiManager.java:59)
at com.alibabacloud.intellij.cosy.linguist.processor.CandidateAnalyzeProcessor$1$1.lambda$convertCosyTreeWithTimeout$0(CandidateAnalyzeProcessor.java:142)
at com.intellij.openapi.application.impl.ApplicationImpl.runReadAction(ApplicationImpl.java:841)
at com.alibabacloud.intellij.cosy.linguist.processor.CandidateAnalyzeProcessor$1$1.lambda$convertCosyTreeWithTimeout$1(CandidateAnalyzeProcessor.java:140)
at com.intellij.openapi.application.impl.ApplicationImpl$2.call(ApplicationImpl.java:296)
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1$1.run(Executors.java:668)
at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1$1.run(Executors.java:665)
at java.base/java.security.AccessController.doPrivileged(Native Method)
at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1.run(Executors.java:665)
at java.base/java.lang.Thread.run(Thread.java:829)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.