p00f / clangd_extensions.nvim

Clangd's off-spec features for neovim's LSP client. Use https://sr.ht/~p00f/clangd_extensions.nvim instead
MIT License
495 stars 18 forks source link

cannot use both 'scope' and 'buf' #41

Closed tan-wei closed 1 year ago

tan-wei commented 1 year ago

Use ClangAST or ClangdMemoryUse will cause error message "cannot use both 'scope' and 'buf'". For example:

Error executing vim.schedule lua callback: ...d_extensions.nvim/lua/clangd_extensions/memory_usage.lua:30: cannot use both 'scope' 
and 'buf'                                                                                                                  
stack traceback:
        [C]: in function 'nvim_set_option_value'
        ...d_extensions.nvim/lua/clangd_extensions/memory_usage.lua:30: in function 'display'
        ...d_extensions.nvim/lua/clangd_extensions/memory_usage.lua:95: in function 'handler'
        ...d_extensions.nvim/lua/clangd_extensions/memory_usage.lua:102: in function 'handler'
        /usr/share/nvim/runtime/lua/vim/lsp.lua:1497: in function ''
        vim/_editor.lua: in function <vim/_editor.lua:0>

I use nightly neovim ( v0.10.0-dev-735+g8fe9f41f7), and the error message obviously comes from neovim API. So does any break changes cause this? Thanks.

tan-wei commented 1 year ago

Confirmed fixed! Thanks!