We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
main.go
package main import ( "go.uber.org/zap" ) func main() { logger, _ := zap.NewProduction() defer logger.Sync() logger.Info("haha") }
run dep ensure -add "go.uber.org/zap"
dep ensure -add "go.uber.org/zap"
use vim, open main.go, jump to line 11, under Info of logger.Info, and run :YcmCompleter GoTo, got RuntimeError: Can't find a definition.
Info
logger.Info
:YcmCompleter GoTo
RuntimeError: Can't find a definition.
ycmd says: RuntimeError: Command godef -i -f=main.go -json -o=126 failed with code 2 and error "godef: no declaration found for logger.Info".
RuntimeError: Command godef -i -f=main.go -json -o=126 failed with code 2 and error "godef: no declaration found for logger.Info".
run it in command:
$ godef -i -f=main.go -o=126 < main.go parseLocalPackage error: no more package files found godef: no declaration found for logger.Info
ref: ycm-core/YouCompleteMe#2985 (comment)
The text was updated successfully, but these errors were encountered:
No branches or pull requests
main.go
in gopathrun
dep ensure -add "go.uber.org/zap"
use vim, open
main.go
, jump to line 11, underInfo
oflogger.Info
, and run:YcmCompleter GoTo
,got
RuntimeError: Can't find a definition.
ycmd says:
RuntimeError: Command godef -i -f=main.go -json -o=126 failed with code 2 and error "godef: no declaration found for logger.Info".
run it in command:
ref: ycm-core/YouCompleteMe#2985 (comment)
The text was updated successfully, but these errors were encountered: