TerminalFi / LSP-copilot

GitHub Copilot support for Sublime Text LSP plugin provided through Copilot.vim.
625 stars 25 forks source link

LSP-Copilot not working! #120

Closed sindhujit1 closed 3 months ago

sindhujit1 commented 10 months ago

I get a popup in sublime text:

Failed to start LSP-copilot: - disabling for this window for the duration of the current session. Re-enable by running "LSP:Enable Language Server in project" from the command palette.

I am not sure how to enable that, as I don't see any such options.

TerminalFi commented 10 months ago

Does the console or lsp log panel say anything.

sindhujit1 commented 10 months ago

Nothing on the console. not sure where is the "lsp log panel".

TerminalFi commented 10 months ago

CleanShot 2023-08-29 at 21 02 55@2x

Also you can try this

https://github.com/TerminalFi/LSP-copilot/assets/32599364/581e1a8d-3268-46f5-b337-d9006587405b

sindhujit1 commented 10 months ago

How do you get that prompt? When I go to "Install Package" I see:

image

jfcherng commented 10 months ago

How do you get that prompt? When I go to "Install Package" I see:

It's not "Install Package". Just type it in the command palette.

sindhujit1 commented 10 months ago

ok I could now open the "LSP: Troubleshooting server" file.

image

image

sindhujit1 commented 10 months ago

The django project is running on my E1 server and I am connecting to it through SFTP. Could that somehow prompt this error ?

jfcherng commented 10 months ago

That looks like you dont have nodejs installed on your machine and at the same time you rejected to install it. There should be a popup which asked for installing nodejs.

Some points to check:

sindhujit1 commented 10 months ago

Yes LSP Co-pilot was installed using package control. I restarted sublime text. After that I tried downloading Node.js, but it fails with this popup:

image

jfcherng commented 10 months ago

After that I tried downloading Node.js,

how did you do this?

TerminalFi commented 9 months ago

@sindhujit1 any update ? Else can we close

sindhujit1 commented 9 months ago

I have installed Nodejs on my local machine as well on the E1 machine where our sublimeText connects to and where our code resides. However I still get a failed message.

jfcherng commented 9 months ago

Hmm... I think before it reports Node.js not found. lsp_utils should ask you whether you want to install Node.js... but maybe you cancel it at that time and it never asks again.

sindhujit1 commented 9 months ago

We are behind a proxy and so I think there is some issue with that. Here's the error:

image

jfcherng commented 9 months ago

Maybe set a proxy server for NPM. https://www.jhipster.tech/configuring-a-corporate-proxy/

TerminalFi commented 3 months ago

Closing as inactive.