-
-
Notifications
You must be signed in to change notification settings - Fork 278
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
Failed to spawn process #492
Comments
I seem to be running into this issue aswell.
|
command = "git" It's not a bug of plenary. Git executables are not found. Make sure
|
Hi there, I just confirmed this issue on my neovim config. -- Only load those plugins if the current buffer is a git repository
local is_inside_git_repo = function()
local git_dir = vim.fn.finddir(".git", vim.fn.expand("%:p:h") .. ";")
return vim.fn.isdirectory(git_dir) ~= 0
end
return {
{
"akinsho/git-conflict.nvim",
opts = {
highlights = { -- They must have background color, otherwise the default color will be used
incoming = "DiffAdd",
current = "DiffText",
},
},
lazy = not is_inside_git_repo(),
keys = {
-- Chose conflict
{ "<leader>gfc", "<cmd>GitConflictChooseTheirs<cr>", desc = "Git Conflict Choose - Incoming changes" },
{ "<leader>gfo", "<cmd>GitConflictChooseOurs<cr>", desc = "Git Conflict Choose - Current changes" },
{ "<leader>gfb", "<cmd>GitConflictChooseBoth<cr>", desc = "Git Conflict Choose - Both changes" },
-- Navigate conflicts
{ "<leader>gfl", "<cmd>GitConflictListQf<cr>", desc = "Git Conflict Quicklist" },
{ "<leader>gfp", "<cmd>GitConflictPrevConflict<cr>", desc = "Git Conflict Previous" },
{ "<leader>gfp", "<cmd>GitConflictPrevConflict<cr>", desc = "Git Conflict Previous" },
},
},
{
"sindrets/diffview.nvim",
lazy = not is_inside_git_repo(),
cmd = "DiffviewOpen",
keys = { { "<leader>gd", "<cmd>DiffviewOpen<cr>", desc = "Open Git Diff" } },
},
} I am using NVIM v0.10.0-dev-4c32927 by the way. ❯ vi --version
NVIM v0.10.0-dev-4c32927
Build type: RelWithDebInfo
LuaJIT 2.1.1697887905
Run "nvim -V1 -v" for more info |
The issue you report is invalid, it's probably not a bug of plenary. Do you have git installed? I doubt so. Make sure |
Git seems ok. What's the precise error you are getting? Could you please post a detailed stacktrace and error messages? |
Is this valid? @wookayin |
I use git daily, so I most definitely have it installed. I haven't used |
The error message just says that git does not exist in your %PATH%. |
Here you go, this video should prove the opposite :) https://streamable.com/f6frff |
its probably related to the set cwd local Job = require("plenary.job")
local stdout, ret = Job:new({
command = "git",
args = { "rev-parse", "--show-toplevel" },
cwd = "__insert_cwd_here__",
}):sync()
print(ret) mind running this script above? just create a so it should be 0 in a repo and 128 (at least for me on linux) if not a repo. Make sure to set the cwd to a path without and then with Sadly i dont have a windows machine so i can do testing, so yeah |
I am working with diffview.
I am getting when I do
DiffViewFileHistory
on certain folder.The text was updated successfully, but these errors were encountered: