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

cosy插件代码示例搜索无结果 #175

Open
DW5566 opened this issue Apr 8, 2023 · 4 comments
Open

cosy插件代码示例搜索无结果 #175

DW5566 opened this issue Apr 8, 2023 · 4 comments
Assignees
Labels
bug Something isn't working needs more info

Comments

@DW5566
Copy link

DW5566 commented Apr 8, 2023

Describe the bug(描述您遇到的问题)
cosy插件代码补全有提示,但是代码示例搜索无结果

To Reproduce(复现步骤)

Screenshots(截图)
image

System(本地系统)

  • OS: Mac 13.0.1
  • Cosy Version: 0.1.9
  • idea Version:2019.3
    Contact Info(如愿意请留下联系方式,需求上线后,我们将第一时间联系您)
@DW5566 DW5566 added the bug Something isn't working label Apr 8, 2023
@DW5566
Copy link
Author

DW5566 commented Apr 8, 2023

image

补充的日志:
2023-04-09T10:01:29.406+0800 INFO System platform x86_64_darwin
2023-04-09T10:01:30.227+0800 INFO Skip update, current version: 0.1.9
2023-04-09T10:01:30.227+0800 INFO Succeed to update Cosy binary
2023-04-09T10:01:30.267+0800 INFO Skip update model, current version: 0.0.3
2023-04-09T10:01:30.267+0800 INFO Succeed to update Cosy model
2023-04-09T10:01:30.267+0800 INFO Succeed to update inference env
2023-04-09T10:01:30.764+0800 INFO Starting server...
2023-04-09T10:01:30.765+0800 INFO Preparing inference envrionment
2023-04-09T10:01:30.765+0800 INFO Inference environment has been created
2023-04-09T10:01:30.765+0800 INFO Cosy is in local mode now
2023-04-09T10:01:30.765+0800 INFO Initializing local inference service
2023-04-09T10:01:30.769+0800 INFO Local inference service initialized
2023-04-09T10:01:30.769+0800 INFO The server has been started
2023-04-09T10:01:30.770+0800 INFO Received initialize message, initializing server...
2023-04-09T10:01:30.770+0800 WARN Failed to identify a git repository
2023-04-09T10:01:30.770+0800 INFO Server initialized, time cost: 136.776µs
2023-04-09T10:01:30.786+0800 INFO No local cache, initializing
2023-04-09T10:01:30.885+0800 INFO No local cache, initializing
2023-04-09T10:01:30.986+0800 INFO No local cache, initializing
2023-04-09T10:01:33.579+0800 INFO Local cache loaded
2023-04-09T10:01:33.579+0800 INFO Training models for java processor...
2023-04-09T10:02:23.456+0800 WARN fail to deepen:afterCommit() , scopeNodeName:process(ProcessorVO processorVO)
2023-04-09T10:21:03.633+0800 INFO Init search method code_suggest_search
2023-04-09T10:21:03.637+0800 INFO Start to call CodeSuggestSearcher for keyword suggestion..
2023-04-09T10:21:04.374+0800 INFO Keyword suggest completed in 735ms
2023-04-09T10:21:11.012+0800 INFO Init search method code_suggest_search
2023-04-09T10:21:11.012+0800 INFO Start to call CodeSuggestSearcher for keyword suggestion..
2023-04-09T10:21:11.614+0800 INFO Keyword suggest completed in 601ms

@zxdxjtu
Copy link
Collaborator

zxdxjtu commented Apr 9, 2023

不知能否提供下完整的cosy日志,目录:~/.cosy/log/
以及idea日志,可以在idea工具栏的 Help > Show log in Finder 找到

@DW5566
Copy link
Author

DW5566 commented Apr 16, 2023

idea.log
cosy.log

@shuqingdadi
Copy link

同样无法搜索
IDEA: 2019.3.3
Windows
image

windows cosy.log 日志##########################

2023-09-18T10:36:39.572+0800 INFO System platform x86_64_windows
2023-09-18T10:36:39.815+0800 INFO Skip update, current version: 0.1.9
2023-09-18T10:36:39.815+0800 INFO Succeed to update Cosy binary
2023-09-18T10:36:39.838+0800 INFO Updating model to 0.0.3
2023-09-18T10:36:53.069+0800 INFO Succeed to update Cosy model
2023-09-18T10:36:53.069+0800 INFO Succeed to update inference env
2023-09-18T10:36:53.162+0800 INFO Starting server...
2023-09-18T10:36:53.166+0800 INFO Preparing inference envrionment
2023-09-18T10:36:53.167+0800 INFO Inference environment has been created
2023-09-18T10:36:53.167+0800 INFO Cosy is in local mode now
2023-09-18T10:36:53.167+0800 INFO Initializing local inference service
2023-09-18T10:36:53.187+0800 INFO Local inference service initialized
2023-09-18T10:36:53.187+0800 INFO The server has been started
2023-09-18T10:36:53.206+0800 INFO Received initialize message, initializing server...
2023-09-18T10:36:53.206+0800 INFO Server initialized, time cost: 0s
2023-09-18T10:36:53.214+0800 INFO No local cache, initializing
2023-09-18T10:36:53.230+0800 INFO No local cache, initializing
2023-09-18T10:36:53.247+0800 INFO No local cache, initializing
2023-09-18T10:36:53.265+0800 INFO No local cache, initializing
2023-09-18T10:36:53.275+0800 INFO Training models for java processor...
2023-09-18T10:37:13.830+0800 INFO Init search method code_suggest_search
2023-09-18T10:37:13.830+0800 INFO Start to call CodeSuggestSearcher for keyword suggestion..
2023-09-18T10:37:14.394+0800 INFO Keyword suggest completed in 564ms

idea 日志###################################

2023-09-18 10:37:13,829 [ 43071] INFO - .cosy.core.lsp.LanguageService - params: {"method":"code_suggest_search","query":"快速排序","pageSize":30,"page":0}
2023-09-18 10:37:23,483 [ 52725] WARN - ConfigurableExtensionPointUtil - ignore deprecated groupId: language for id: preferences.language.Kotlin.scripting
2023-09-18 10:37:23,496 [ 52738] WARN - ConfigurableExtensionPointUtil - use other group instead of unexpected one: null
2023-09-18 10:37:24,504 [ 53746] INFO - j.ide.plugins.RepositoryHelper - using cached plugin list (updated at 2023/9/18 10:34)
2023-09-18 10:37:24,766 [ 54008] INFO - j.ide.plugins.RepositoryHelper - using cached plugin list (updated at 2023/9/18 10:34)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working needs more info
Projects
None yet
Development

No branches or pull requests

7 participants