Skip to content
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

FugitiveCommonDir: Argument of get() must be a List, Dictionary or Blob #1930

Closed
akemrir opened this issue Jan 20, 2022 · 3 comments
Closed

Comments

@akemrir
Copy link

akemrir commented Jan 20, 2022

Hi

From lastest update, from main branch I've started receiving erros:

obraz

fugitive#head[5]..fugitive#Head[5]..fugitive#Find[31]..FugitiveCommonDir[9]..96_ReadFile:
fugitive#head[5]..fugitive#Head[5]..fugitive#Find[31]..FugitiveCommonDir:
ProjectionistDetect[40]..User Autokomend dla "ProjectionistDetect"..function 96_ProjectionistDetect[11]..FugitiveFind[4]..fugitive#Fin
d[31]..FugitiveCommonDir[9]..96_ReadFile:
ProjectionistDetect[40]..User Autokomend dla "ProjectionistDetect"..function 96_ProjectionistDetect[11]..FugitiveFind[4]..fugitive#Fin
d[31]..FugitiveCommonDir:

I know that they don't exist on my machine.
It looks like it is trying to read it even when commondir is not present.

@tpope
Copy link
Owner

tpope commented Jan 20, 2022

It looks like it is trying to read it even when commondir is not present.

Yes it is, inside of a try/catch which silences any exception. What is up with your Vim? Can you test if this causes an error?

:try|throw 'x'|catch|endtry

@akemrir
Copy link
Author

akemrir commented Jan 21, 2022

I have archlinux vim package
VIM - Vi IMproved 8.2 (2019 Dec 12, compiled Jan 16 2022 12:09:56)
Patchset 1-4106

No, this does not cause any errors.

@akemrir
Copy link
Author

akemrir commented Jan 21, 2022

I've prepared minimal .vimrc and in fact there is something with my setup.
I've found guilty my current statusline config.

I had this:
autocmd VimEnter * silent! call fugitive#detect(expand('<afile>'))

So this is not relevant to fugitive directly, I am closing.

@akemrir akemrir closed this as completed Jan 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants