Closed alex-courtis closed 4 weeks ago
The init.lua works fine for me.
What output do you get with:
vim.system({'git', '-c', 'advice.diverging=false', '-c', 'advice.resolveConflict=false', '--version'}):wait()
From your output, it looks like that is returning an empty string.
Gitsigns runs similar code, so I'm surprised you've not seen this error in that.
Thanks for getting back to me Lewis
I'll do some further testing on the weekend.
On Mon, 15 July 2024, 19:36 Lewis Russell, @.***> wrote:
The init.lua works fine for me.
What output do you get with:
vim.system({'git', '-c', 'advice.diverging=false', '-c', 'advice.resolveConflict=false', '--version'}):wait()
From your output, it looks like that is returning an empty string.
— Reply to this email directly, view it on GitHub https://github.com/lewis6991/pckr.nvim/issues/25#issuecomment-2228080591, or unsubscribe https://github.com/notifications/unsubscribe-auth/AALPQYV46QCSI76M5FAPCTDZMOJYRAVCNFSM6AAAAABKZ43QNKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEMRYGA4DANJZGE . You are receiving this because you authored the thread.Message ID: @.***>
nvim --clean
test 1:
:lua vim.system({'git', '-c', 'advice.diverging=false', '-c', 'advice.resolveConflict=false', '--version'}):wait()
No output, not really expecting any.
test 2:
:lua print(vim.inspect(vim.system({'git', '-c', 'advice.diverging=false', '-c', 'advice.resolveConflict=false', '--version'}):wait()))
{
code = 0,
signal = 0,
stderr = "",
stdout = "git version 2.45.2\n"
}
Is the newline expected?
test 3:
:lua print(vim.inspect(vim.fn.system({'git', '-c', 'advice.diverging=false', '-c', 'advice.resolveConflict=false', '--version'})))
"git version 2.45.2\n"
Ok my only guess is that the problem lies in the async lib. I'm not sure how to proceed. This same code is used in Gitsigns so I'm surprised one works and the other doesn't.
No worries. I'll reduce concurrency and see how it behaves.
I'll reopen if it becomes a larger problem.
Alex from nvim-tree here. Many thanks for putting together this fantastic plugin manager - it's the minimalistic one we've all been looking for.
Steps to reproduce
init.lua.gz
Actual behaviour
printed at startup
See
:Pckr log
plog.gzPlugins apparently load OK but it's hard to be sure. A sync after restarting seems OK.
Expected behaviour
No errors.