-
Notifications
You must be signed in to change notification settings - Fork 49
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
E874: (NFA) Could not pop the stack ! #156
Comments
I can see that you have Could you provide the key typed at each step? Thanks |
ping @cryptomaniac512 |
Oh, sorry |
Did finally succeeded to stage some hunks with vimagit? You say you can't stage by hunk with magit too, do you think the problem is not in vimagit but in your environment? In that case, I am interested to understand your environment to maybe handle it wisely in vimagit. |
I don't use vim now (because I can't live without all magit features), but I will try to reproduce it in the coming days. |
I still have not found the time to check it out and I'm not sure I'll find it. Sorry :( |
I think I have a repro for this bug:
set directory=~/.config/nvim/backups,~/.vim/tmp,~/.tmp,~/tmp,/var/tmp,/tmp
set wildignore+=*/.git/*,*/tmp/*,*.swp,*.o,*/.hg/*,*/.svn/*,*/.DS_Store,*~,*.pyc
set backspace=eol,start,indent " indent: allow backspacing over autoindent
" eol: allow backspacing over linebreaks
" start: allow backspacing over start of
" insert
set noerrorbells
" }}}
set directory=~/.config/nvim/backups,~/.vim/tmp,~/.tmp,~/tmp,/var/tmp,/tmp
set wildignore+=*/.git/*,*/tmp/*,*.swp,*.o,*/.hg/*,*/.svn/*,*/.DS_Store,*~,*.pyc
set backspace=eol,start,indent " indent: allow backspacing over autoindent
" eol: allow backspacing over linebreaks
" start: allow backspacing over start of
" insert
set noerrorbells
" }}}
nvim v0.3.2-dev |
Thanks @wilt00 for your effort trying to setup a simple to reproduce this error. The only way I see to continue this investigation would be for you to let me try with a remote access on your machine (ssh, or anything else). |
I also had the same issue. |
@akrejczinger thanks a lot for the docker image. I never used docker, how am I supposed to get your docker image hoborg/vimagit_bug_156 ? |
Docker hub link: https://hub.docker.com/r/hoborg/vimagit_bug_156/ |
I can finnaly reproduce your issue! Thanks a lot @akrejczinger for your docker image. |
vimagit may want to search hunk position, based on hunk title. When a hunk title has a '~' in it, the character make the search crash. It must be escaped. Finnally, after almost one year of open issue and several issue contributors, I got it, thanks to akrejczinger and its docker image. The reason I was unable to reproduce this issue is maybe that all the vim and nvim version I used were built with another regex engine.
Finally, I got it! Thanks @akrejczinger for the docker, thanks @wilt00 for the step by step, and thanks @sivakov512 for opening this issue. It was actually very fast to fix, but a little bit harder to introduce this case in the test suite! Would you mind test the branch |
Looks fixed! Thanks for all your work on this @jreybert ! |
Short description of the problem
Can not stage hunk
Steps to reproduce
Environment
vim
ornvim
versionNVIM v0.2.2
git
versiongit version 2.15.1
current vimagit version or (or SHA1)
latest
OS
Void Linux
terminal or gvim
xfce4-terminal
Screenshot with problem
The text was updated successfully, but these errors were encountered: