TerminalFi / LSP-copilot

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

after i install the package i dont get a Copilot: Sign In option in the console #92

Closed obnoxiousish closed 1 year ago

obnoxiousish commented 1 year ago

after i install the package i dont get a Copilot: Sign In option in the console

why is this? is it failing to install or something how can I check

jfcherng commented 1 year ago

or something how can I check

Yes, restart ST and check step 1 in https://github.com/TerminalFi/LSP-copilot#setup You've installed LSP as well right? Presuming your installation is done via Package Control?

obnoxiousish commented 1 year ago

i have multiple times, and yes I installed both correctly unless these installation guides are missing steps....

is there an error log somewhere? I see sometimes I get a npm error

As well I removed and reinstalled package + restart ST a few times

im on manjaro kde

jfcherng commented 1 year ago

Run LSP: troubleshoot server for LSP-copilot and paste the output here may give some clues.

obnoxiousish commented 1 year ago

https://imgur.com/a/2Wc2093 does this help and running that now

obnoxiousish commented 1 year ago

Troubleshooting: LSP-copilot

Version

npm ERR! A complete log of this run can be found in: npm ERR! /home/joey/.npm/_logs/2023-03-11T04_21_52_218Z-debug-0.log

## Server Configuration
 - command
```json
[
  "${node_bin}", 
  "${server_path}", 
  "--stdio"
]
 - selector

source | text | embedding

 - priority_selector

source | text | embedding

 - init_options
```json
{}

Active view

Project / Workspace

LSP configuration

## System PATH - /home/joey/.local/bin - /usr/local/sbin - /usr/local/bin - /usr/bin - /home/joey/.dotnet/tools - /usr/bin/site_perl - /usr/bin/vendor_perl - /usr/bin/core_perl
jfcherng commented 1 year ago

Very helpful. It looks like your local Node.js setup failed to download a package from NPM. But I've no further thought from the error message at this moment.

npm ERR! FetchError: request to https://registry.npmjs.org/copilot-node-server/-/copilot-node-server-1.8.3.tgz failed, reason: connect ECONNREFUSED 2606:4700::6810:1923:443

I doubt that this maybe an IPv6 issue.

obnoxiousish commented 1 year ago

my vpn config had ipv6 disabled reenabling it allowed it to install ok weird

jfcherng commented 1 year ago

So it looks like as of Node.js v17, it may use IPv6 for DNS resolution by default.

And that can be an issue for downloading packages from NPM.

We can force it to use IPv4 with --dns-result-order=ipv4first CLI argument.

I will report this to upstream dependency.

jfcherng commented 1 year ago

Closed as resolved.