Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error connecting to pers #506

Open
phanorcoll opened this issue Mar 2, 2024 · 2 comments
Open

Error connecting to pers #506

phanorcoll opened this issue Mar 2, 2024 · 2 comments

Comments

@phanorcoll
Copy link

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
}
@pwntester
Copy link
Owner

pwntester commented Mar 11, 2024

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

@pcolltv
Copy link

pcolltv commented Mar 24, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants