Giter Club home page Giter Club logo

Comments (6)

ldelossa avatar ldelossa commented on June 27, 2024 1

Think #63 closes this issue.

It only logs cli interactions, but I think this is where 99.99% of the issues with gh.nvim creep up. Closing for now.

from gh.nvim.

ldelossa avatar ldelossa commented on June 27, 2024

@bradsherman failing to fetch remote branch has typically been:

  1. the wrong git protocol (sshs vs https) is being used. The latest commit by @dlvhdr should help fix this.
  2. if youre using SSH keys, make sure ssh-agent is running and the keys are properly added to the agent.

Lmk if either of these two help.

from gh.nvim.

bradsherman avatar bradsherman commented on June 27, 2024

Ah, I assumed my gh config was correctly set to ssh. Setting that value correctly fixes the issues. Is there somewhere I can inspect the output of the commands? That would be helpful for debugging issues like this

from gh.nvim.

ldelossa avatar ldelossa commented on June 27, 2024

@bradsherman completely agree, debugging needs an overhaul. I'm working on other larger features at the moment.

I think most of the clues would come from dumping the command arguments and the outputs of the commands from

local graphql = require('litee.gh.ghcli.graphql')

Sound like something you're willing to take on? In theory, we could add a "debug" flag, which dumps every gh and git cli command that's ran and its output into a text file somewhere? What ya think?

from gh.nvim.

bradsherman avatar bradsherman commented on June 27, 2024

yeah I think I could look into that. My first thought is to doing something like what null-ls does https://github.com/jose-elias-alvarez/null-ls.nvim/blob/main/lua/null-ls/logger.lua. I've flipped the debug flag on to diagnose issues with null-ls in the past

from gh.nvim.

ldelossa avatar ldelossa commented on June 27, 2024

Looks cool. Im down for whatever. My only request is try to build something into litee.nvim or gh.nvim directly.

I have no problems with planetary, but we already require litee.nvim, and i dont want the depedencies to grow even further.

from gh.nvim.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.