pwntester / octo.nvim

Edit and review GitHub issues and pull requests from the comfort of your favorite editor

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Error connecting to pers

phanorcoll opened this issue · 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
}

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"}})))?

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 "[]"