Git Product home page Git Product logo

Comments (8)

Conni2461 avatar Conni2461 commented on August 16, 2024 3

lazy.nvim just clones the repo in .local/share/nvim/lazy/plenary.nvim it should be enough to open that directory and manually checkout that branch. even with gh pr checkout 589 and after that switch back to the previous branch and later updating with :Lazy. you dont need to get fancy

from plenary.nvim.

Conni2461 avatar Conni2461 commented on August 16, 2024 1

thanks for testing

from plenary.nvim.

Conni2461 avatar Conni2461 commented on August 16, 2024

fixed by #589

my bad for introducing this regression, didnt think that anyone is using the module in an fast event. could you test that PR?

from plenary.nvim.

augustdolan avatar augustdolan commented on August 16, 2024

@Conni2461 thanks so much for getting back so quickly. I would love to test the PR. However, this is my first time foraying into version control with Lazy. Is it possible for your to provide some guidance? I've tried:

  {
    "CopilotC-Nvim/CopilotChat.nvim",
    branch = "canary",
    dependencies = {
      { "zbirenbaum/copilot.lua" },                                       -- or github/copilot.vim
      { "Conni2461/plenary.nvim", branch = "fix/in_fast_loop" }, -- for curl, log wrapper
    },
    opts = {
      debug = true, -- Enable debugging
      -- See Configuration section for rest
    },
    -- See Commands section for default commands if you want to lazy load on them
  },
}

as well as

  {
    "CopilotC-Nvim/CopilotChat.nvim",
    branch = "canary",
    dependencies = {
      { "zbirenbaum/copilot.lua" },
      { "nvim-lua/plenary.nvim", branch = "Conni2461:fix/in_fast_loop" }, 
    },
    opts = {
      debug = true,
    },
  },
}

to try and depend on your branch, but both options give me a refspec error.

I've been just calling nvim-lua/plenary.nvimas a dependency for a few plugins and tried simply changing the dependency on that plugin, so maybe its a namespace issue somehow? Sorry I am not able to test it yet. Later on I can try to install plenary directly and do the same versioning there if no one has any insight.

Thanks so much for your help, apologies again

from plenary.nvim.

augustdolan avatar augustdolan commented on August 16, 2024

Thanks Conni, that made good, plain sense and put my head on straight about the actual relationship Lazy has with plugins. I am no longer receiving the error I opened this issue for when using your branch.

Thanks so much, and again I can confirm this fixes the plenary issue.

from plenary.nvim.

tris203 avatar tris203 commented on August 16, 2024

Apologies for the regression @Conni2461

it was my PR that introduced it! I don't really understand what was going wrong, was it the inner function calling before the inline function could return? Id like to understand what I could have done better, and why.

Apologies for the head-scratching!

from plenary.nvim.

Conni2461 avatar Conni2461 commented on August 16, 2024

Apologies for the regression

don't worry, it can happen. The problem was that your flatten method was called in a fast lua loop, and contained a vim.fn.has function call with is not api-fast and we are not allowed to call that at this point in time. The solution now is to do the vim.fn.has check on module load, which is always safe to do and then either set compat.flatten to the old or the new way of doing things, the version value will also never change while nvim is open, so its safe to do that and cache the result like that

you can read more here :help api-fast and :help vim.in_fast_event()

from plenary.nvim.

7adidaz avatar 7adidaz commented on August 16, 2024

@Conni2461 thanks for the fix:)

from plenary.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.