{"action":"created","issue":{"url":"https://api.github.com/repos/fatih/vim-go/issues/668","labels_url":"https://api.github.com/repos/fatih/vim-go/issues/668/labels{/name}","comments_url":"https://api.github.com/repos/fatih/vim-go/issues/668/comments","events_url":"https://api.github.com/repos/fatih/vim-go/issues/668/events","html_url":"https://github.com/fatih/vim-go/issues/668","id":123957094,"number":668,"title":"combination of golang installed on win and vim cming from cygwin doesn't work properly with vim-go ","user":{"login":"stachg","id":5466422,"avatar_url":"https://avatars.githubusercontent.com/u/5466422?v=3","gravatar_id":"","url":"https://api.github.com/users/stachg","html_url":"https://github.com/stachg","followers_url":"https://api.github.com/users/stachg/followers","following_url":"https://api.github.com/users/stachg/following{/other_user}","gists_url":"https://api.github.com/users/stachg/gists{/gist_id}","starred_url":"https://api.github.com/users/stachg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stachg/subscriptions","organizations_url":"https://api.github.com/users/stachg/orgs","repos_url":"https://api.github.com/users/stachg/repos","events_url":"https://api.github.com/users/stachg/events{/privacy}","received_events_url":"https://api.github.com/users/stachg/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-12-27T02:34:51Z","updated_at":"2016-01-03T01:16:46Z","closed_at":null,"body":"In such situation GOPATH format is something like C:\\path1\\to\\go;C:\\path2\\to\\go but in vim, has('win32') etc are 0 and has('unix')/has('win32unix') are 1 which seem to confuse vim-go. For instance, running :GoUpdateBinaries writes to C/bin directory instead of C:\\path1\\to\\go\\bin. So it looks like GOPATH is parsed assuming unix syntax instead of windows."},"comment":{"url":"https://api.github.com/repos/fatih/vim-go/issues/comments/168448514","html_url":"https://github.com/fatih/vim-go/issues/668#issuecomment-168448514","issue_url":"https://api.github.com/repos/fatih/vim-go/issues/668","id":168448514,"user":{"login":"fatih","id":438920,"avatar_url":"https://avatars.githubusercontent.com/u/438920?v=3","gravatar_id":"","url":"https://api.github.com/users/fatih","html_url":"https://github.com/fatih","followers_url":"https://api.github.com/users/fatih/followers","following_url":"https://api.github.com/users/fatih/following{/other_user}","gists_url":"https://api.github.com/users/fatih/gists{/gist_id}","starred_url":"https://api.github.com/users/fatih/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fatih/subscriptions","organizations_url":"https://api.github.com/users/fatih/orgs","repos_url":"https://api.github.com/users/fatih/repos","events_url":"https://api.github.com/users/fatih/events{/privacy}","received_events_url":"https://api.github.com/users/fatih/received_events","type":"User","site_admin":false},"created_at":"2016-01-03T01:16:46Z","updated_at":"2016-01-03T01:16:46Z","body":"Hi @sbdchd, how do you think we should solve this? I'm not using Windows and don't have a clear understanding of your problem. Never used cygwin too.\r\n\r\nThis is the code we use to detect if it's running under Windows or not. If it's Windows we'll change the Path separator from `/` to `\\`:\r\n\r\n\r\n```vim\r\n\" IsWin returns 1 if current OS is Windows or 0 otherwise\r\nfunction! go#util#IsWin()\r\n\tlet win = ['win16', 'win32', 'win64', 'win95']\r\n\tfor w in win\r\n\t\tif (has(w))\r\n\t\t\treturn 1\r\n\t\tendif\r\n\tendfor\r\n\r\n\treturn 0\r\nendfunction\r\n```"}}