When SPUpdate updates vim-import-js, it will try run npm install -g import-js and related directory permissions should be ensured to make this step pass.
- References
- Resolution steps
- Delete cache rm -rf ~/.cache/vimfiles/.cache
- Open vim run
:CheckHealthcheck the current vim status, and fix any errors. - Install pip for
python3if not:curl https://bootstrap.pypa.io/get-pip.py | python3 pip install neovimnpm install -g neovim typescript- Run
:UpdateRemotePluginsin vim and reopen vim
- Add
call dein#reinstall(['nvim-typescript'])to~/.local/share/nvim/rplugin.vim, reopen vim and wait for thenvim-typescriptplugin to install - Install it manually:
cd ~/.cache/vimfiles/repos/github.com/mhartington/ rm -rf nvim-typescript git clone https://github.com/mhartington/nvim-typescript cd nvim-typescript npm config set registry=https://registry.npmjs.com/ ./install.sh
Error detected while processing CursorMoved Autocommands for "*.ts"..function TSCloseWindow[1]..remote#define#notify:
line 6:
E475: Invalid argument: Channel doesn't exist
This error indicates a Neovim remote plugin (likely related to TypeScript tooling) has lost its RPC channel connection. The TSCloseWindow function is trying to communicate with a plugin that has crashed or wasn't properly initialized.
- Resolution steps
- Add
tsserverto LSP enabled clients inSpaceVim.d/init.toml:[[layers]] name = "lsp" enabled_clients = ['pyright', "gopls", "tsserver"]
- Install TypeScript language server globally:
npm install -g typescript typescript-language-server
- Regenerate remote plugins - run
:UpdateRemotePluginsin Neovim, then restart - If the above doesn't work, clear the remote plugin cache:
Then reopen Neovim and run
rm -rf ~/.local/share/nvim/rplugin.vim:UpdateRemotePluginsagain
- Add