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

Error when calling map() as a method - ProhibitInvalidMapCall - Number of arguments for map() #380

Open
systemmonkey42 opened this issue May 13, 2022 · 0 comments

Comments

@systemmonkey42
Copy link

systemmonkey42 commented May 13, 2022

Using the latest release (vim-vint-0.1.dev1+g471e70b) I get the following

  function! Mask2int(mask,drawer) abort
✗     return printf("%010b", '0x'.a:mask)->slice(0,10)->split('\zs')->reverse()->map('v:val ? a:drawer."/".(v:key+1) : ""')->filter('v:val')
  endfunction

ProhibitInvalidMapCall - Number of arguments for map() must be 2 (if not, it will throw E118 or E119) (see :help map())

It appears it accepts most method calls, but fails on map() which it thinks requires additional arguments despite being a method call.

Thanks

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

1 participant