DisposaBoy / GoSublime

A Golang plugin collection for SublimeText 3, providing code completion and other IDE-like features.
MIT License
3.42k stars 302 forks source link

MarGo build failed on go1.7.3 #740

Closed mei-rune closed 5 years ago

mei-rune commented 7 years ago

go env go version go1.7.3 windows/amd64

| GoSublime error: MarGo build failed
|                > This is possibly a bug or miss-configuration of your environment.
|                > For more help, please file an issue with the following build output
|                > at: https://github.com/DisposaBoy/GoSublime/issues/new
|                > or alternatively, you may send an email to: gosublime@dby.me
|                > 
|                > 
|                > cmd: `['D:\\tools\\go_amd64\\bin\\go.exe', 'build', '-tags', '', '-v', '-o', 'gosublime.margo_r16.07.09-1_go?.exe', 'disposa.blue/cmd/margo']`
|                > stdout: `
|                > 
|                > `
|                > stderr: `
|                > net
|                > disposa.blue/margo
|                > disposa.blue/something-borrowed/types
|                > disposa.blue/margo/meth/importpaths
|                > net/textproto
|                > net/http/httptrace
|                > crypto/x509
|                > mime/multipart
|                > crypto/tls
|                > net/http
|                > net/http/pprof
|                > net/rpc
|                > disposa.blue/something-borrowed/gocode
|                > disposa.blue/cmd/margo_pkg
|                > disposa.blue/cmd/margo
|                > go install disposa.blue/cmd/margo: open gosublime.margo_r16.07.09-1_go?.exe: The filename, directory name, or volume label syntax is incorrect.
|                > `
|                > exception: `None`
|   install state: busy
| sublime.version: 3126
| sublime.channel: stable
|       about.ann: a16.07.09-1
|   about.version: r16.07.09-1
|         version: r16.07.09-1
|        platform: windows-x64
|            ~bin: D:\tools\sublime_text\Data\Packages\User\GoSublime\windows-x64\bin
|       margo.exe: ~bin\gosublime.margo_r16.07.09-1_go?.exe (missing)
|          go.exe: D:\tools\go_amd64\bin\go.exe (ok)
|      go.version: go?
|          GOROOT: D:\tools\go_amd64
|          GOPATH: D:\developing\go\mj;
|           GOBIN: (not set) (should usually be `(not set)`)
|       set.shell: []
|       env.shell: 
|       shell.cmd: ['C:\\Windows\\system32\\cmd.exe', '/C', '${CMD}']
wadtech commented 7 years ago
| GoSublime error: MarGo build failed
|                > This is possibly a bug or miss-configuration of your environment.
|                > For more help, please file an issue with the following build output
|                > at: https://github.com/DisposaBoy/GoSublime/issues/new
|                > or alternatively, you may send an email to: gosublime@dby.me
|                > 
|                > 
|                > cmd: `['/usr/local/go/bin/go', 'build', '-tags', '', '-v', '-o', 'gosublime.margo_r16.07.09-1_go1.7.3.exe', 'disposa.blue/cmd/margo']`
|                > stdout: `
|                > 
|                > `
|                > stderr: `
|                > runtime
|                > # runtime
|                > /usr/local/go/src/runtime/lfstack_amd64.go:16: lfstackPack redeclared in this block
|                >  previous declaration at /usr/local/go/src/runtime/lfstack_64bit.go:37
|                > /usr/local/go/src/runtime/lfstack_amd64.go:20: lfstackUnpack redeclared in this block
|                >  previous declaration at /usr/local/go/src/runtime/lfstack_64bit.go:41
|                > /usr/local/go/src/runtime/os_linux.go:27: _FUTEX_WAIT redeclared in this block
|                >  previous declaration at /usr/local/go/src/runtime/os1_linux.go:22
|                > /usr/local/go/src/runtime/os_linux.go:28: _FUTEX_WAKE redeclared in this block
|                >  previous declaration at /usr/local/go/src/runtime/os1_linux.go:23
|                > /usr/local/go/src/runtime/os_linux.go:36: futexsleep redeclared in this block
|                >  previous declaration at /usr/local/go/src/runtime/os1_linux.go:31
|                > /usr/local/go/src/runtime/os_linux.go:67: futexwakeup redeclared in this block
|                >  previous declaration at /usr/local/go/src/runtime/os1_linux.go:62
|                > /usr/local/go/src/runtime/os_linux.go:83: getproccount redeclared in this block
|                >  previous declaration at /usr/local/go/src/runtime/os1_linux.go:78
|                > /usr/local/go/src/runtime/os_linux.go:109: _CLONE_VM redeclared in this block
|                >  previous declaration at /usr/local/go/src/runtime/os1_linux.go:104
|                > /usr/local/go/src/runtime/os_linux.go:110: _CLONE_FS redeclared in this block
|                >  previous declaration at /usr/local/go/src/runtime/os1_linux.go:105
|                > /usr/local/go/src/runtime/os_linux.go:111: _CLONE_FILES redeclared in this block
|                >  previous declaration at /usr/local/go/src/runtime/os1_linux.go:106
|                > /usr/local/go/src/runtime/os_linux.go:111: too many errors
|                > `
|                > exception: `None`
|   install state: busy
| sublime.version: 3126
| sublime.channel: stable
|       about.ann: a16.07.09-1
|   about.version: r16.07.09-1
|         version: r16.07.09-1
|        platform: linux-x64
|            ~bin: ~/.config/sublime-text-3/Packages/User/GoSublime/linux-x64/bin
|       margo.exe: ~bin/gosublime.margo_r16.07.09-1_go1.7.3.exe (missing)
|          go.exe: /usr/local/go/bin/go (ok)
|      go.version: go1.7.3
|          GOROOT: /usr/local/go
|          GOPATH: ~/projects/go
|           GOBIN: (not set) (should usually be `(not set)`)
|       set.shell: []
|       env.shell: /usr/bin/zsh
|       shell.cmd: ['/usr/bin/zsh', '-l', '-c', '${CMD}']

Same on my linux install:

Distributor ID: Ubuntu
Description:    Ubuntu 16.04.1 LTS
Release:    16.04
Codename:   xenial
lopezycj commented 7 years ago

Each directory listed in GOPATH must have a prescribed structure:

The src directory holds source code. The path below src determines the import path or executable name.

The pkg directory holds installed package objects. As in the Go tree, each target operating system and architecture pair has its own subdirectory of pkg (pkg/GOOS_GOARCH).