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

Error occurred on first run #353

Open
CnTeng opened this issue Jun 5, 2024 · 0 comments
Open

Error occurred on first run #353

CnTeng opened this issue Jun 5, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@CnTeng
Copy link

CnTeng commented Jun 5, 2024

Error occurred on first run

Error executing luv callback:                                                                                                                                 
...g0lzxnabgy-lazy-plugins/plenary.nvim/lua/plenary/job.lua:487: E5560: vim.wait must not be called in a lua loop callback                                    
stack traceback:                                                                                                                                              
        [C]: in function 'wait'                                                                                                                               
        ...g0lzxnabgy-lazy-plugins/plenary.nvim/lua/plenary/job.lua:487: in function 'wait'                                                                   
        ...g0lzxnabgy-lazy-plugins/plenary.nvim/lua/plenary/job.lua:454: in function 'sync'                                                                   
        ...0lzxnabgy-lazy-plugins/plenary.nvim/lua/plenary/curl.lua:317: in function 'get'                                                                    
        ...zy-plugins/CopilotChat.nvim/lua/CopilotChat/tiktoken.lua:26: in function <...zy-plugins/CopilotChat.nvim/lua/CopilotChat/tiktoken.lua:23>          
        [C]: in function '__newindex'                                                                                                                         
        ...y-lazy-plugins/CopilotChat.nvim/lua/CopilotChat/chat.lua:47: in function 'buf_create'                                                              
        ...azy-plugins/CopilotChat.nvim/lua/CopilotChat/overlay.lua:38: in function 'validate'                                                                
        ...y-lazy-plugins/CopilotChat.nvim/lua/CopilotChat/chat.lua:143: in function 'open'                                                                   
        ...y-lazy-plugins/CopilotChat.nvim/lua/CopilotChat/init.lua:326: in function 'open'                                                                   
        ...y-lazy-plugins/CopilotChat.nvim/lua/CopilotChat/init.lua:353: in function <...y-lazy-plugins/CopilotChat.nvim/lua/CopilotChat/init.lua:349>   

I think, the reason is downloading cl100k_base.tiktoken.

local function load_tiktoken_data(done)

But, I don't known how to fix it.

Delete cl100k_base.tiktoken, and run nvim, the error will happen.

@deathbeam deathbeam added the bug Something isn't working label Jun 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants