alibaba-cloud-toolkit / cosy

阿里云智能编码插件品牌升级为通义灵码,欢迎查看通义灵码帮助手册,同时也期待你在 IDE 客户端中将插件升级,我在通义灵码等你,一起开启智能编码之旅。
https://tongyi.aliyun.com/lingma
435 stars 28 forks source link

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

Open DW5566 opened 1 year ago

DW5566 commented 1 year ago

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

To Reproduce(复现步骤)

Screenshots(截图)

image

System(本地系统)

DW5566 commented 1 year ago
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 commented 1 year ago

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

DW5566 commented 1 year ago

idea.log cosy.log

shuqingdadi commented 10 months ago

同样无法搜索 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)