copilot.lua
copilot.lua copied to clipboard
Doesn't work with Ubuntu 22.04 Snap NodeJS
Copilot doesn't launch on Ubuntu 22.04 if NodeJS 18 is installed via Snap. https://snapcraft.io/install/node/ubuntu
I had to uninstall it and instead install via nodesource to get it working https://github.com/nodesource/distributions#debian-and-ubuntu-based-distributions
- Was there a way to debug this? LspLogs didn't show anything useful, I stumbled upon this by accident and couldn't figure out what was causing this or why this doesn't work.
- This should be documented somewhere
Not directly related, but I also had a very similar issue with Pyright LSP server https://github.com/williamboman/mason-lspconfig.nvim/issues/273
What do :Copilot version and :Copilot status say?
Nothing, not output, no error.
Might be some issue with Snap and AppArmor or something. It always painful to deal with 🤷♂️
Better to just use apt or version managers (e.g. nvm or fnm) for installing Node.js.