-
Notifications
You must be signed in to change notification settings - Fork 30
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
call minpac#status() not working anymore? #76
Comments
Does the |
This is the output of
|
Hmm, looks okay. |
Ok, maybe we are not talking about the same thing? 🤔 I meant it used to show the commits of the updates etc...
|
That's strange. I've never seen that before. |
@k-takata it was added in this PR, check the screenshot in this comment #58 (comment) |
I mean that I've never seen many same commit IDs are shown. |
That was just me showing an example, my bad I was lazy to change the commits sha :) |
So, what's the problem? |
It's not showing the commits of the updated plugins anymore so it only shows this
not this
|
Hmm, cannot reproduce. Does it happen with the all plugins? |
Yes with all plugins, this is how I load the plugins maybe you can see something I don't https://github.com/ahmedelgabri/dotfiles/blob/08b63a10d4e61cc446c9b88396251322efb7cbd5/files/.vim/autoload/plugins.vim |
This might not be related, but why you put these three lines inside a function? |
I guess it was just when I moved things inside a function that I just forgot to move it outside. But it was already working like this. So not sure if it's the issue or not, will move it out & see. |
Hmm, strange. Normally |
Yeah, I finally found it. It's Cygwin issue, which also applies to all msys2 apps (i.e. linked to POSIX-ish layer msys-2.0.dll; mingw/native stuff is ok) due to the shared code base with Cygwin. If Cygwin application is run directly (i.e. not by Cygwin/shell), the startup code tries to do "kinda shell wildcard globbing". The CYGWIN environment variable:
Also a relevant topic from StackOverflow: Cygwin's Git command is removing the curly braces from a command. How do I prevent this? So that was just crazy: msys/vim runs minpac + msys/git without issues, but vim's official Windows binary fails to get any commit history. But |
Interesting find @matveyt, but for me, the issue is happening on a mac with |
Yes, I already realized that it's a different story. Just one debugging advice: if commit history is not shown, then it should be something about this piece of code invoking
You may try to set |
Thanks @matveyt, will do this & see |
Ok, so here is the output of one of these log commands The command git -C /Users/ahmed/.config/nvim/pack/minpac/start/coc-neco log --color=never --pretty=format:%h <<<<%D>>>> %s (%cr) --no-show-signature HEAD...HEAD@{1} When I run it as is, I get
So I changed to notice the double quotes after git -C /Users/ahmed/.config/nvim/pack/minpac/start/coc-neco log --color=never --pretty=format:"%h <<<<%D>>>> %s (%cr)" --no-show-signature HEAD...HEAD@{1} Which gave me
That's because there is no |
In fact, I'm rather incompetent in all that git stuff, but from what I have learned so far,
Maybe it makes sense to add argument to |
Turns out @matveyt was right here #76 (comment) & when I tested #76 (comment) I tested wrong. The key is indeed this line minpac/autoload/minpac/status.vim Lines 27 to 29 in a4b9d29
On the right is git from the command line running these commands & on the left the status view of minpac. I investigated this more & it seems that So @k-takata I think the problem might be with the syntax for minpac/autoload/minpac/impl.vim Lines 436 to 442 in a4b9d29
@@ -435,10 +435,10 @@ function! s:update_single_plugin(name, force) abort
let l:cmd = [g:minpac#opt.git, 'clone', '--quiet', l:url, l:dir, '--no-single-branch']
if l:pluginfo.depth > 0 && l:pluginfo.rev ==# ''
- let l:cmd += ['--depth=' . l:pluginfo.depth]
+ let l:cmd += ['--depth ' . l:pluginfo.depth]
endif
if l:pluginfo.branch !=# ''
- let l:cmd += ['--branch=' . l:pluginfo.branch]
+ let l:cmd += ['--branch ' . l:pluginfo.branch]
endif
else
" The type was changed (start <-> opt). But it errors out with this, it seems that
I'm keen to open a PR to fix this, but I need some help understanding why removing the |
Thanks to @kristijanhusak (sorry for the notification, you can unsubscribe from the thread if you want) The issue was that I had this in my
The fix is to add minpac/autoload/minpac/impl.vim Line 436 in a4b9d29
Check PR #88 |
I have this
And I did update my plugins last week & after that, it doesn't show any info anymore
The text was updated successfully, but these errors were encountered: