Skip to content
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

离线使用 #170

Open
fuqiangqi opened this issue Mar 28, 2023 · 12 comments
Open

离线使用 #170

fuqiangqi opened this issue Mar 28, 2023 · 12 comments
Assignees
Labels
feature request New feature or request

Comments

@fuqiangqi
Copy link

hi 现在企业安全问题越来越严重了。尤其是金融领域。很多时候工作环境网络受限,我所处的情况是很多网络域名都被网策拒绝了。但是这款插件在使用前会联网更新资源,我们没法连上网络 所以在我的工作环境中无法使用该插件,只能离线安装,但是无法离线使用。

能否提供一个,在无网络情况下。手动离线使用的方式 Thanks♪(・ω・)ノ

@fuqiangqi
Copy link
Author

2023-03-28T10:01:45.125+0800 INFO ===== Starting cosy service =====
2023-03-28T10:01:45.131+0800 INFO Preparing inference environment
2023-03-28T10:01:45.132+0800 ERROR Failed to read raw environment file
2023-03-28T10:01:45.132+0800 ERROR Local inference environment is not ready, please try to restart IDE

@fuqiangqi
Copy link
Author

本地网络无法ping 通 杭州域名

@liulhdarks
Copy link
Collaborator

纯离线使用需要安装all-in-one版本,https://toolkit.aliyun.com/idea/cosy-intellij-beta-latest-all-in-one.zip

@liulhdarks
Copy link
Collaborator

安装前最好先删除.cosy目录

@fuqiangqi
Copy link
Author

2023-03-28T11:06:25.980+0800 INFO Checking update ...
2023-03-28T11:06:25.987+0800 INFO System platform x86_64_windows
2023-03-28T11:06:26.153+0800 ERROR Cosy update failed: failed to initialize client
2023-03-28T11:06:35.617+0800 INFO Checking update ...
2023-03-28T11:06:35.628+0800 INFO System platform x86_64_windows
2023-03-28T11:06:35.671+0800 ERROR Cosy update failed: failed to initialize client
2023-03-28T11:06:37.966+0800 INFO ===== Starting cosy service =====
2023-03-28T11:06:37.991+0800 INFO Preparing inference environment
2023-03-28T11:06:37.993+0800 INFO Inference environment is ready
2023-03-28T11:06:37.993+0800 INFO Starting local cosy inference service
2023-03-28T11:06:38.179+0800 ERROR Failed to call
2023-03-28T11:06:39.123+0800 INFO Local inference service initialized
2023-03-28T11:06:39.203+0800 INFO Server is ready: 1.2359931s
2023-03-28T11:06:39.707+0800 INFO A new client is registered
2023-03-28T11:06:40.074+0800 INFO Initializing server..
2023-03-28T11:06:40.074+0800 INFO Training models for java processor
2023-03-28T11:06:41.740+0800 ERROR Unable to serve local completion: exit status 0xc0000135
2023-03-28T11:06:47.697+0800 INFO Server initialized, time cost: 7.6234051s
2023-03-28T11:08:32.933+0800 INFO Init search method code_snippet_search
2023-03-28T11:08:32.934+0800 INFO Start to call CodeSnippetSearcher.. [99d348f2-b10d-48ca-98ce-ec9cec88f3f8]
2023-03-28T11:08:32.970+0800 ERROR Failed to call remote for searching es.
2023-03-28T11:08:32.970+0800 INFO Return err msg to client..

@fuqiangqi
Copy link
Author

all in one版本也是不能用 上面是报错日志。 删除且卸载了之前的版本。 然后重新install from disk

@liulhdarks
Copy link
Collaborator

代码补全能用吗,还是补全和搜索都不能用?

@fuqiangqi
Copy link
Author

都不能用,console框里倒是有cosy的椭圆标记,但是点过去也没啥用

@fuqiangqi
Copy link
Author

哦 有一点点补全作用 就是写个static关键字的时候可能会把上面的属性带过来,但其实不是我想要得

private List aaa;

下面写
private static

此时会提示一个补全 补全回车后是这样
private static List aaa

o(╥﹏╥)o

@liulhdarks
Copy link
Collaborator

麻烦上传一下完整的日志文件

@fuqiangqi
Copy link
Author

@zxdxjtu
Copy link
Collaborator

zxdxjtu commented May 12, 2023

如果ping不通的话,搜索是用不了的,因为需要发送请求。补全纯本地版本可以使用,看报错好像是cosy端启动失败。试试kill掉cosy进程,删除~/.cosy目录,然后重启IDEA呢?如果不行的话,麻烦发一下~/.cosy/log目录,主要看下cosylocal.log的日志内容

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request New feature or request
Projects
None yet
Development

No branches or pull requests

6 participants