how to inherit father terminal bash env
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 25/100
Research direction
Start with plenary.nvim/lua/plenary/job.lua around line 108 and review the Job:new invocation shown in the issue, especially vim.fn.environ(), env, command, and cwd. Reproduce the bitbake launch from Neovim and compare it with the working terminal environment; done means the job can locate and run bitbake without the reported executable-not-found error.
Written by the indexing model from the issue text.
Description
i use code:
-- Get the current environment and modify it if needed
local myenv = vim.fn.environ()
-- Use plenary.job to capture output
local Job = require('plenary.job')
Job:new({
command = 'bitbake ',
args = { foldname },
cwd = project_root,
env = myenv, -- Inherit and extend the current environment
on_exit = function(j, return_val)
-- Send output to Quickfix
vim.fn.setqflist({}, ' ', {
title = 'Bitbake Output',
lines = j:result(),
})
-- Open Quickfix window
vim.cmd('botright copen 6')
end,
}):start()
run result:
E5108: Error executing lua: .../site/pack/packer/start/plenary.nvim/lua/plenary/job.lua:108: bitbake : Executable not found
the bitbake command is load in the terminal; how can i fix this problem
- Dominant language
- Lua
- Stars
- 3.5k
- Forks
- 340
- PR merge metrics
- No merged PRs in 30d
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from nvim-lua/plenary.nvim
-
Difficulty 1/5 Under an hour Newbie friendliness 88/100
nvim-lua/plenary.nvim#682 ·
-
Difficulty 1/5 Under an hour Newbie friendliness 72/100
nvim-lua/plenary.nvim#680 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 45/100
nvim-lua/plenary.nvim#675 ·
-
Difficulty 4/5 3-5 days Newbie friendliness 28/100
nvim-lua/plenary.nvim#672 · 1 comment ·
-
Difficulty 4/5 3-5 days Newbie friendliness 25/100
nvim-lua/plenary.nvim#671 · 1 comment ·
All issues in nvim-lua/plenary.nvim
Similar issues
-
ai-authored
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
-
Data Correction Forever Needs testing/reproduction
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
Questie/Questie#7941 · 1 comment ·
Maintainers usually reply within 1 day
-
Difficulty 1/5 Under an hour Newbie friendliness 78/100
-
remote remote-plugin
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
Maintainers usually reply within 1 day
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 1 day