Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
os: Index out of range on StartProcess call #11417
I'm running go 1.4.2 windows/amd64
I made a SO post here describing it: http://stackoverflow.com/questions/31072865/runtime-error-index-out-of-range-when-attempting-to-os-startprocess
Basically I'm attempting to start a process with os.StartProcess and a slice of arguments, but I keep getting an index out of range runtime error.
For simplicity, I also made this simplified go code to reproduce it for me:
Literally right as I hit post, a friend messaged me and said he fixed this lol. He's answering the SO post.
Edit: To help anyone else who might have this problem, my friend answered the SO post. On windows you apparently need to specify the stdin and stderr in the ProcAttr.