Can't recognized root directory when use terminal to output

Open
#34 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
35/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Stale
Tech stack
vim
Domain
devtools

Research direction

Reproduce the issue with the shown .root, src/1.cpp, and .tasks tree, using cwd=$(VIM_ROOT) first with output=terminal and then with output=quickfix. Compare how the terminal and quickfix entry points apply the working directory. Done means terminal output runs pwd from /home/qsdrqs/test, matching quickfix behavior.

Written by the indexing model from the issue text.

Description

Hello! It's a nice vim plugin and I get a lot of benefit from it!
But I meet a problem that I can't change to my root directory on terminal output mode. Here is my project tree.

.
├── .root
├── src
│   └── 1.cpp
└── .tasks

When I open 1.cpp in src directory, and run asynctasks configured like that:

[file-build]
command=pwd
cwd=$(VIM_ROOT)

output=terminal

It shows

/home/qsdrqs/test/src

[Process exited 0]

When I change output into quickfix, it shows

|| [pwd]
|| /home/qsdrqs/test
|| [Finished in 0 seconds]

In a word, the "terminal" mode may not works well in changing directory.

Dominant language
Vim Script
Stars
936
Forks
32
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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from skywind3000/asynctasks.vim

All issues in skywind3000/asynctasks.vim

Similar issues

More DevTools issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.