buaazp / Godef

Plugin of sublime to use godef to go to definitions accurately.
BSD 3-Clause "New" or "Revised" License
82 stars 24 forks source link

Per-project Settings & Project-based GOPATH #17

Closed holys closed 6 years ago

holys commented 8 years ago

integrate with gosublime

https://github.com/DisposaBoy/GoSublime/blob/master/USAGE.md#per-project-settings--project-based-gopath

javasgl commented 6 years ago

per-project GOPATH config don`t work. my project settings like this:

{
    "settings": {
        "GoSublime": {
            "env": {
                "GOPATH": "/Users/songgl/codes/studygolang",
                "GOROOT": "/usr/local/go"
            }
        }
    }
}

but , Gdef load failed because of no GOPATH defined

===============[Godef]Load Begin==============
[Godef]ERROR: no GOPATH defined
===============[Godef] Load End===============
holys commented 6 years ago

@javasgl It's recommended to use vscode instead sublime text. Vscode has official go plugin which is powerful and you can have sublime keymap in vscode so you don't need learn new keymap.