fannheyward / coc-rust-analyzer

rust-analyzer extension for coc.nvim
MIT License
1.13k stars 40 forks source link

import_coc4.window.onDidChangeActiveTextEditor is not a function #1101

Closed zkcrescent closed 1 year ago

zkcrescent commented 1 year ago

What's the output of :CocInfo vim version: NVIM v0.7.0-dev+677-g523f03b50 node version: v18.11.0 coc.nvim version: 0.0.80-a1688fc341 platform: darwin

What's the output of :CocCommand rust-analyzer.serverVersion Error on "runCommand": Command: rust-analyzer.serverVersion not found

What's your coc-rust-analyzer version? You can get it from :CocList extensions

coc-rust-analyzer 0.71.1 ~/.config/coc/extensions/node_modules/coc-rust-analyzer

zkcrescent commented 1 year ago

btw, coc-settings.json: { "eslint.validate": [ "javascript", "javascriptreact", "vue" ], "eslint.filetypes": [ "javascript", "vue" ], "eslint.autoFixOnSave": true, "languageserver": { "go": { "command": "gopls", "rootPatterns": [ "go.mod" ], "trace.server": "verbose", "filetypes": [ "go" ] } }, "yaml.schemas": { "kubernetes": [ "/*.yaml" ] } }

fannheyward commented 1 year ago

coc.nvim version: 0.0.80-a1688fc341

Upgrade your coc.nvim, you're using an very old release.

zkcrescent commented 1 year ago

when I upgrade my coc.nvim, I'm encountering new problems. at INSERT mode, when I tap tab, It shownUnknown function: <SNR>144_check_back_space

image

fannheyward commented 1 year ago

Looks like your tab mapping uses check_back_space but this function is missing.

Check :h coc-completion-example.

zkcrescent commented 1 year ago

Get it. Thanks for your help