zbirenbaum / copilot.lua

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

Copilot not working or very slow on python files #175

Closed blob42 closed 1 year ago

blob42 commented 1 year ago

I get the following repeating errors on LspLog when using copilot on a python code base. This started happening randomly recently.

The completions take very long to appear.

I tested also on my lua files and it works flowlessly.

NVIM v0.10.0-dev-400+ge41b2e34b Build type: RelWithDebInfo LuaJIT 2.1.0-beta3

[ERROR][2023-06-05 01:41:05] .../vim/lsp/rpc.lua:734    "rpc"   "node"  "stderr"    "ApplicationInsights:Sender [\n  'Ingestion endpoint could not be reached. This batch of telemetry items has been lost. Use Disk Retry Caching to enable resending of failed telemetry. Error:',\n  [\n    \"[object Error]{ stack: 'Error: connect ECONNREFUSED 0.0.0.0:443\\n\" +\n      \"    at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1571:16)', message: 'connect ECONNREFUSED 0.0.0.0:443', name: 'Error'\"\n  ]\n]\n"
[ERROR][2023-06-05 01:41:22] .../vim/lsp/rpc.lua:734    "rpc"   "node"  "stderr"    "ApplicationInsights:Sender [\n  'Ingestion endpoint could not be reached. This batch of telemetry items has been lost. Use Disk Retry Caching to enable resending of failed telemetry. Error:',\n  [\n    \"[object Error]{ stack: 'Error: connect ECONNREFUSED 0.0.0.0:443\\n\" +\n      \"    at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1571:16)', message: 'connect ECONNREFUSED 0.0.0.0:443', name: 'Error'\"\n  ]\n]\n"
[ERROR][2023-06-05 01:41:38] .../vim/lsp/rpc.lua:734    "rpc"   "node"  "stderr"    "ApplicationInsights:Sender [\n  'Ingestion endpoint could not be reached. This batch of telemetry items has been lost. Use Disk Retry Caching to enable resending of failed telemetry. Error:',\n  [\n    \"[object Error]{ stack: 'Error: connect ECONNREFUSED 0.0.0.0:443\\n\" +\n      \"    at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1571:16)', message: 'connect ECONNREFUSED 0.0.0.0:443', name: 'Error'\"\n  ]\n]\n"
[ERROR][2023-06-05 01:41:54] .../vim/lsp/rpc.lua:734    "rpc"   "node"  "stderr"    "ApplicationInsights:Sender [\n  'Ingestion endpoint could not be reached. This batch of telemetry items has been lost. Use Disk Retry Caching to enable resending of failed telemetry. Error:',\n  [\n    \"[object Error]{ stack: 'Error: connect ECONNREFUSED 0.0.0.0:443\\n\" +\n      \"    at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1571:16)', message: 'connect ECONNREFUSED 0.0.0.0:443', name: 'Error'\"\n  ]\n]\n"
[ERROR][2023-06-05 01:42:11] .../vim/lsp/rpc.lua:734    "rpc"   "node"  "stderr"    "ApplicationInsights:Sender [\n  'Ingestion endpoint could not be reached. This batch of telemetry items has been lost. Use Disk Retry Caching to enable resending of failed telemetry. Error:',\n  [\n    \"[object Error]{ stack: 'Error: connect ECONNREFUSED 0.0.0.0:443\\n\" +\n      \"    at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1571:16)', message: 'connect ECONNREFUSED 0.0.0.0:443', name: 'Error'\"\n  ]\n]\n"
[ERROR][2023-06-05 01:42:27] .../vim/lsp/rpc.lua:734    "rpc"   "node"  "stderr"    "ApplicationInsights:Sender [\n  'Ingestion endpoint could not be reached. This batch of telemetry items has been lost. Use Disk Retry Caching to enable resending of failed telemetry. Error:',\n  [\n    \"[object Error]{ stack: 'Error: connect ECONNREFUSED 0.0.0.0:443\\n\" +\n      \"    at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1571:16)', message: 'connect ECONNREFUSED 0.0.0.0:443', name: 'Error'\"\n  ]\n]\n"
[ERROR][2023-06-05 01:42:44] .../vim/lsp/rpc.lua:734    "rpc"   "node"  "stderr"    "ApplicationInsights:Sender [\n  'Ingestion endpoint could not be reached. This batch of telemetry items has been lost. Use Disk Retry Caching to enable resending of failed telemetry. Error:',\n  [\n    \"[object Error]{ stack: 'Error: connect ECONNREFUSED 0.0.0.0:443\\n\" +\n      \"    at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1571:16)', message: 'connect ECONNREFUSED 0.0.0.0:443', name: 'Error'\"\n  ]\n]\n"
[ERROR][2023-06-05 01:43:00] .../vim/lsp/rpc.lua:734    "rpc"   "node"  "stderr"    "ApplicationInsights:Sender [\n  'Ingestion endpoint could not be reached. This batch of telemetry items has been lost. Use Disk Retry Caching to enable resending of failed telemetry. Error:',\n  [\n    \"[object Error]{ stack: 'Error: connect ECONNREFUSED 0.0.0.0:443\\n\" +\n      \"    at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1571:16)', message: 'connect ECONNREFUSED 0.0.0.0:443', name: 'Error'\"\n  ]\n]\n"
[ERROR][2023-06-05 01:43:14] .../vim/lsp/rpc.lua:734    "rpc"   "node"  "stderr"    "ApplicationInsights:Sender [\n  'Ingestion endpoint could not be reached. This batch of telemetry items has been lost. Use Disk Retry Caching to enable resending of failed telemetry. Error:',\n  [\n    \"[object Error]{ stack: 'Error: connect ECONNREFUSED 0.0.0.0:443\\n\" +\n      \"    at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1571:16)', message: 'connect ECONNREFUSED 0.0.0.0:443', name: 'Error'\"\n  ]\n]\n"
{
  panel = {
    enabled = false,
    auto_refresh = false,
    keymap = {
      jump_prev = "[[",
      jump_next = "]]",
      accept = "<CR>",
      refresh = "gr",
      open = "<M-CR>"
    },
    layout = {
      position = "bottom", -- | top | left | right
      ratio = 0.4
    },
  },
  suggestion = {
    enabled = false,
    auto_trigger = true,
    debounce = 75,
    keymap = {
      accept = "<M-l>",
      accept_word = false,
      accept_line = false,
      next = "<M-]>",
      prev = "<M-[>",
      dismiss = "<C-]>",
    },
  },
  filetypes = {
    python = true,
    yaml = false,
    markdown = false,
    help = false,
    gitcommit = false,
    gitrebase = false,
    hgcommit = false,
    svn = false,
    cvs = false,
    ["."] = false,
  },
  copilot_node_command = 'node', -- Node.js version must be > 16.x
  server_opts_overrides = {
      -- trace = "verbose"
  },
}
blob42 commented 1 year ago

I hade a lot of comments in the the file, I removed them and somehow the problem stopped.