Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Doesn't work with Ubuntu 22.04 Snap NodeJS #211

Open
oryband opened this issue Sep 11, 2023 · 3 comments
Open

Doesn't work with Ubuntu 22.04 Snap NodeJS #211

oryband opened this issue Sep 11, 2023 · 3 comments

Comments

@oryband
Copy link

oryband commented Sep 11, 2023

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 williamboman/mason-lspconfig.nvim#273

@MunifTanjim
Copy link
Collaborator

What do :Copilot version and :Copilot status say?

@oryband
Copy link
Author

oryband commented Sep 12, 2023

Nothing, not output, no error.

@MunifTanjim
Copy link
Collaborator

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants