copilot.lua icon indicating copy to clipboard operation
copilot.lua copied to clipboard

Doesn't work with Ubuntu 22.04 Snap NodeJS

Open oryband opened this issue 2 years ago • 3 comments

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

  1. 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.
  2. 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

oryband avatar Sep 11 '23 07:09 oryband

What do :Copilot version and :Copilot status say?

MunifTanjim avatar Sep 12 '23 12:09 MunifTanjim

Nothing, not output, no error.

oryband avatar Sep 12 '23 13:09 oryband

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.

MunifTanjim avatar Sep 12 '23 14:09 MunifTanjim