yetone / avante.nvim

Use your Neovim like using Cursor AI IDE!
Apache License 2.0
6.45k stars 234 forks source link

tiktoken_core not found #31

Closed toblerlee closed 2 months ago

toblerlee commented 2 months ago

I am on m3 macbook pro with cargo installed. I get this message once "tiktoken_core not found". I never got messages from claude or openai only stuck at "Generating response from claude..."

wey-gu commented 2 months ago

try this

brew install cargo

then trigger install of avante again for building tiktoken_core

toblerlee commented 2 months ago

Thanks. I did try it and tiktoken error is gone but claude is still stuck without answer. I got following warning which I am not sure if related, can't modify buffer or window ~/.local/share/nvim/lazy/nui.nvim/lua/nui/line/init.lua line 72

function Line:render(bufnr, ns_id, linenr_start, linenr_end) local row_start = linenr_start - 1 local row_end = linenr_end and linenr_end - 1 or row_start + 1 local content = self:content() vim.api.nvim_buf_set_lines(bufnr, row_start, row_end, false, { content }) self:highlight(bufnr, ns_id, linenr_start) end

aarnphm commented 2 months ago

this is unrelated, tho I do know about this issue.

aarnphm commented 2 months ago

can you create a separate ticket to track this?

toblerlee commented 2 months ago

Done. I create new ticket, thank you.