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

Install error on OSX #44

Closed
MightyCreak opened this issue Mar 30, 2017 · 12 comments
Closed

Install error on OSX #44

MightyCreak opened this issue Mar 30, 2017 · 12 comments
Labels

Comments

@MightyCreak
Copy link

MightyCreak commented Mar 30, 2017

Tried to install it but got this error...

Error detected while processing ~/.vim/bundle/LeaderF/plugin/leaderf.vim:
line   82:
E806: using Float as a String
E116: Invalid arguments for function <SNR>62_InitVar
line   88:
E806: using Float as a String
E116: Invalid arguments for function <SNR>62_InitVar```
@MightyCreak
Copy link
Author

has('python') return 1
has('python3') return 0
Python is at version 2.7.13

@MightyCreak
Copy link
Author

I updated MacVim and now I have python 3 (3.6.0)

I removed, cleaned and reinstalled LeaderF and got the same error:

Error detected while processing /Users/romainf/.vim/bundle/LeaderF/plugin/leaderf.vim:
line   82:
E806: using Float as a String
E116: Invalid arguments for function <SNR>43_InitVar
line   88:
E806: using Float as a String
E116: Invalid arguments for function <SNR>43_InitVar```

@Yggdroot
Copy link
Owner

Please hack the code in /Users/romainf/.vim/bundle/LeaderF/plugin/leaderf.vim. change the code call s:InitVar('g:Lf_WindowHeight', 0.5) as call s:InitVar('g:Lf_WindowHeight', '0.5'), and change call s:InitVar('g:Lf_NeedCacheTime', 1.5) as call s:InitVar('g:Lf_NeedCacheTime', '1.5'), and have a try.

@Yggdroot
Copy link
Owner

I did not test it on Mac.

@Yggdroot
Copy link
Owner

Does :echo has('float') return 1 for you? Maybe your version of Vim does not support float.

@MightyCreak
Copy link
Author

It seems to work! Thanks!

The first launch of f is quite long though, like 10 or 15 seconds. Some feedback might be great here.

Also, is there a way to remove some directories from the browsing? I'd like to remove .hg, .git and some project specific directories

@MightyCreak
Copy link
Author

Yep, :echo has('float') returns 1

@Yggdroot
Copy link
Owner

The hack makes it work?

@Yggdroot
Copy link
Owner

To ignore some directories, please refer to here.

@Yggdroot
Copy link
Owner

This is a bug of some version of vim. We are not alone, preservim/vim-indent-guides#10 is the same.

Yggdroot added a commit that referenced this issue Mar 30, 2017
@Yggdroot
Copy link
Owner

@MightyCreak
Copy link
Author

MightyCreak commented Mar 30, 2017

Thanks!

The hack makes it work?

Yep, it seems to work now! (although I'm fairly new to this plugin, so I don't really know how it should work ;) )

To ignore some directories, please refer to here.

It would be nice if you could add '.hg' too by default.

https://groups.google.com/forum/#!topic/vim_dev/knwTpoNiTvE may be the root cause.

Strange vim didn't fix that already 🤔

@Yggdroot Yggdroot closed this as completed Apr 1, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants