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

GoBuild command fail #1444

Closed
reireias opened this issue Sep 13, 2017 · 3 comments
Closed

GoBuild command fail #1444

reireias opened this issue Sep 13, 2017 · 3 comments
Assignees

Comments

@reireias
Copy link

Behavior

When I run :GoBuild, vim shows following error message.

vim-go: building dispatched ...                                                                                 
Error detected while processing function go#cmd#Build[32]..go#jobcontrol#Spawn[4]..<SNR>158_spawn:
line   47:
E745: Using a List as a Number
E15: Invalid expression: ['go'] + a:args

This error occurs later than df60f26 .

I think that the following lines of this commit are wrong.
df60f26#diff-0754118ec7181423a7c0233b50dfaccfR40

The implementation is as follows:

function! s:spawn(bang, desc, args, for) abort

The correct implementation is as follows:

function! s:spawn(bang, desc, for, args) abort

Configuration

  • vim version: NVIM v0.2.1-dev
  • vim-go version: 65a50ce
@arp242
Copy link
Contributor

arp242 commented Sep 13, 2017

@bhcleek Would you mind taking a look if you have time? Otherwise I can look later (similar problem reported in #1446 btw).

@bhcleek
Copy link
Collaborator

bhcleek commented Sep 13, 2017

Yeah, I can take a look today.

@bhcleek
Copy link
Collaborator

bhcleek commented Sep 13, 2017

This is very likely to have been caused by my changes in #1415. As a temporary work around, you can go back to dfc8993.

@bhcleek bhcleek self-assigned this Sep 13, 2017
bhcleek added a commit to bhcleek/vim-go that referenced this issue Sep 13, 2017
arp242 pushed a commit that referenced this issue Sep 14, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants