zbirenbaum / copilot.lua

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

Doesn't work with Ubuntu 22.04 Snap NodeJS #211

Open oryband opened 10 months ago

oryband commented 10 months 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 9 months ago

What do :Copilot version and :Copilot status say?

oryband commented 9 months ago

Nothing, not output, no error.

MunifTanjim commented 9 months 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.