octo.nvim icon indicating copy to clipboard operation
octo.nvim copied to clipboard

Error connecting to pers

Open phanorcoll opened this issue 1 year ago • 2 comments

Issue Description

Type: bug report

Describe what happened (or what feature you want)

I'm trying to use the package, I've set GITHUB_TOKEN, running :!gh issue list from Neovim works and gh in the terminal also works.

when I try to get the list of issue with Octo for example, I get

error connecting to pers

Describe what you expected to happen

Get the list of issues for my repo and run any other commands from Octo.

How to reproduce it (as minimally and precisely as possible)

  1. Install the package
  2. gh auth login
  3. set GITHUB_TOKEN

Tell us your environment

  • WSL2 -> Ubuntu 22.04.4 LTS
  • NVIM v0.9.5
  • Build type: Release
  • LuaJIT 2.1.1692716794
  • gh version 2.42.1 (2024-01-16)

installed Octo with Lazy

use {
  'pwntester/octo.nvim',
  requires = {
    'nvim-lua/plenary.nvim',
    'nvim-telescope/telescope.nvim',
    'nvim-tree/nvim-web-devicons',
  },
  config = function ()
    require"octo".setup()
  end
}

phanorcoll avatar Mar 02 '24 23:03 phanorcoll

Sorry but cant reproduce the issue. The issue does not seem to come from octo. Can you try running :lua print(require("octo.gh").get_user_name()) and :lua print(vim.inspect(require("octo.gh").run({mode="sync", args={"issue", "list", "--json", "title"}})))?

pwntester avatar Mar 11 '24 14:03 pwntester

Sorry but cant reproduce the issue. The issue does not seem to come from octo. Can you try running :lua print(require("octo.gh").get_user_name()) and :lua print(vim.inspect(require("octo.gh").run({mode="sync", args={"issue", "list", "--json", "title"}})))?

Hi @pwntester, with the first command I get my user name, with the second command I get an empty "[]"

pcolltv avatar Mar 24 '24 12:03 pcolltv