zbirenbaum / copilot.lua

Fully featured & enhanced replacement for copilot.vim complete with API for interacting with Github Copilot
MIT License
2.78k stars 87 forks source link

Doesn't work with Ubuntu 22.04 Snap NodeJS #211

Open oryband opened 1 year ago

oryband commented 1 year ago

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

MunifTanjim commented 1 year ago

What do :Copilot version and :Copilot status say?

oryband commented 1 year ago

Nothing, not output, no error.

MunifTanjim commented 1 year ago

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.