Closed luckcolors closed 6 years ago
I fixed that particular panic, but it won't help you in your case. Because this:
2017/12/30 21:13:19 Import path "github.com/labstack/echo" was not resolved
Make sure GOPATH is correct and everything. Or maybe you haven't go get
the package yet.
You're right. My bad i forgot to go get it. I've also noticed the typo of e.new() not being e.New().
2017/12/30 22:33:04 -------------------------------------------------------
package main
import "github.com/labstack/echo"
func main() {
e := echo.New()
e.An#
e.Logger.Fatal(e.Start(":1323"))
}
2017/12/30 22:33:04 -------------------------------------------------------
2017/12/30 22:33:04 Found "github.com/labstack/echo" at "I:\\Gopath\\pkg\\windows_amd64\\github.com\\labstack\\echo.a"
2017/12/30 22:33:04 extracted expression tokens: e
2017/12/30 22:33:04 Offset: 2
2017/12/30 22:33:04 Number of candidates found: 1
2017/12/30 22:33:04 Candidates are:
2017/12/30 22:33:04 func Any(path string, handler !I:\Gopath\pkg\windows_amd64\github.com\labstack\echo.a!echo.HandlerFunc, middleware ...!I:\Gopath\pkg\windows_amd64\github
.com\labstack\echo.a!echo.MiddlewareFunc) []*!I:\Gopath\pkg\windows_amd64\github.com\labstack\echo.a!echo.Route
2017/12/30 22:33:04 =======================================================
I suppose this log now means it's working as intended (even if in atom go plus says otherwise). It prints this there:
[2, [{"class": "func", "name": "Any", "type": "func(path string, handler !I:\Gopath\pkg\windows_amd64\github.com\labstack\echo.a!echo.HandlerFunc, middleware ...!I:\Gopath\pkg\windows_amd64\github.com\labstack\echo.a!echo.MiddlewareFunc) []*!I:\Gopath\pkg\windows_amd64\github.com\labstack\echo.a!echo.Route", "package": "github.com/labstack/echo"}]]
Can you confirm that?
Yes, there will be some noise in the output if you run gocode in debug mode. E.g.
!I:\Gopath\pkg\windows_amd64\github.com\labstack\echo.a!echo.HandlerFunc
It includes full lib path here which is normally stripped away on output. But other than that it seems to be working.
Ok thanks! Gocode seems to work perfectly now. :)
Hello! I've just recently updated go to the latest version 1.9.2 and gocode doesn't work anymore. I've already tried re installing gocode and to clean the GOPATH/pkg directory but the problem still occurs.
Let me know if you need more info, the go code is just the tiny snippet present in the log already. :)