{"action":"opened","issue":{"url":"https://api.github.com/repos/fatih/vim-go/issues/1801","repository_url":"https://api.github.com/repos/fatih/vim-go","labels_url":"https://api.github.com/repos/fatih/vim-go/issues/1801/labels{/name}","comments_url":"https://api.github.com/repos/fatih/vim-go/issues/1801/comments","events_url":"https://api.github.com/repos/fatih/vim-go/issues/1801/events","html_url":"https://github.com/fatih/vim-go/issues/1801","id":315342924,"number":1801,"title":"Panic in vim-go when using GoFillStruct","user":{"login":"desdic","id":13243026,"avatar_url":"https://avatars3.githubusercontent.com/u/13243026?v=4","gravatar_id":"","url":"https://api.github.com/users/desdic","html_url":"https://github.com/desdic","followers_url":"https://api.github.com/users/desdic/followers","following_url":"https://api.github.com/users/desdic/following{/other_user}","gists_url":"https://api.github.com/users/desdic/gists{/gist_id}","starred_url":"https://api.github.com/users/desdic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/desdic/subscriptions","organizations_url":"https://api.github.com/users/desdic/orgs","repos_url":"https://api.github.com/users/desdic/repos","events_url":"https://api.github.com/users/desdic/events{/privacy}","received_events_url":"https://api.github.com/users/desdic/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-04-18T06:08:19Z","updated_at":"2018-04-18T06:08:19Z","closed_at":null,"author_association":"NONE","body":"### What did you do? (required. The issue will be **closed** when not provided.)\r\nRan GoFillStruct on []rolleInformation{}\r\n\r\n### What did you expect to happen?\r\nit would fill out the struct\r\n\r\n### What happened instead?\r\nvim-go: panic: interface conversion: ast.Expr is *ast.BasicLit, not *ast.KeyValueExpr                                                                                                                                                                          \r\nvim-go: \r\nvim-go: goroutine 1 [running]:\r\nvim-go: main.zeroValue(0xc4200976d0, 0xc4221e1620, 0xc427010fc0, 0x68c5e0, 0xc423c1e060, 0x0, 0x1, 0xc42ed5af88, 0x4d8d0a, 0x0)\r\nvim-go:         /home/kgn/go/src/github.com/davidrjenni/reftools/cmd/fillstruct/fill.go:42 +0x259\r\nvim-go: main.byLine.func1(0x68b9a0, 0xc427010fc0, 0xc5d41f2b5a46201)\r\nvim-go:         /home/kgn/go/src/github.com/davidrjenni/reftools/cmd/fillstruct/main.go:269 +0x3ee\r\nvim-go: go/ast.inspector.Visit(0xc4336620c0, 0x68b9a0, 0xc427010fc0, 0x4d8d0a, 0x0)\r\nvim-go:         /usr/lib/go/src/go/ast/walk.go:373 +0x3a\r\nvim-go: go/ast.Walk(0x68b040, 0xc4336620c0, 0x68b9a0, 0xc427010fc0)\r\nvim-go:         /usr/lib/go/src/go/ast/walk.go:52 +0x66\r\nvim-go: go/ast.walkExprList(0x68b040, 0xc4336620c0, 0xc425af4ee0, 0x1, 0x1)\r\nvim-go:         /usr/lib/go/src/go/ast/walk.go:26 +0x81\r\nvim-go: go/ast.Walk(0x68b040, 0xc4336620c0, 0x68b9a0, 0xc427011000)\r\nvim-go:         /usr/lib/go/src/go/ast/walk.go:104 +0x42b\r\nvim-go: go/ast.walkExprList(0x68b040, 0xc4336620c0, 0xc425af4f00, 0x1, 0x1)\r\nvim-go:         /usr/lib/go/src/go/ast/walk.go:26 +0x81\r\nvim-go: go/ast.Walk(0x68b040, 0xc4336620c0, 0x68b620, 0xc427011040)\r\nvim-go:         /usr/lib/go/src/go/ast/walk.go:207 +0x20fa\r\nvim-go: go/ast.walkStmtList(0x68b040, 0xc4336620c0, 0xc4270117c0, 0x3, 0x4)\r\nvim-go:         /usr/lib/go/src/go/ast/walk.go:32 +0x81\r\nvim-go: go/ast.Walk(0x68b040, 0xc4336620c0, 0x68b7a0, 0xc42de34570)\r\nvim-go:         /usr/lib/go/src/go/ast/walk.go:224 +0x1b61\r\nvim-go: go/ast.Walk(0x68b040, 0xc4336620c0, 0x68bc20, 0xc42de345d0)\r\nvim-go:         /usr/lib/go/src/go/ast/walk.go:344 +0xd6d\r\nvim-go: go/ast.walkDeclList(0x68b040, 0xc4336620c0, 0xc42bc00600, 0x11, 0x20)\r\nvim-go:         /usr/lib/go/src/go/ast/walk.go:38 +0x81\r\nvim-go: go/ast.Walk(0x68b040, 0xc4336620c0, 0x68bba0, 0xc42dceb780)\r\nvim-go:         /usr/lib/go/src/go/ast/walk.go:353 +0x2650\r\nvim-go: go/ast.Inspect(0x68bba0, 0xc42dceb780, 0xc4336620c0)\r\nvim-go:         /usr/lib/go/src/go/ast/walk.go:385 +0x4b\r\nvim-go: main.byLine(0xc4200a8480, 0xc4200c6180, 0x40, 0x105, 0x68ace0, 0xc4200824d0)\r\nvim-go:         /home/kgn/go/src/github.com/davidrjenni/reftools/cmd/fillstruct/main.go:246 +0x3c9\r\nvim-go: main.main()\r\nvim-go:         /home/kgn/go/src/github.com/davidrjenni/reftools/cmd/fillstruct/main.go:126 +0x339\r\n\r\n\r\n### Configuration (**MUST** fill this out):\r\n\r\n* vim-go version:\r\n1.17\r\n\r\n* `vimrc` you used to reproduce (use a *minimal* vimrc with other plugins disabled; do not link to a 2,000 line vimrc):\r\nset shell=bash\r\n\r\n\" NeoBundle --- {{{\r\nif has('vim_starting')\r\n  set runtimepath+=~/.config/nvim/bundle/neobundle.vim/\r\n  set runtimepath+=~/.config/nvim/\r\nendif\r\n\r\nlet neobundle_readme=expand('~/.config/nvim/bundle/neobundle.vim/README.md')\r\n\r\nif !filereadable(neobundle_readme)\r\n  echo \"Installing NeoBundle...\"\r\n  echo \"\"\r\n  silent !mkdir -p ~/.config/nvim/bundle\r\n  silent !git clone https://github.com/Shougo/neobundle.vim ~/.config/nvim/bundle/neobundle.vim/\r\n  let g:not_finsh_neobundle = \"yes\"\r\nendif\r\n\r\ncall neobundle#begin(expand('$HOME/.config/nvim/bundle'))\r\nNeoBundle 'fatih/vim-go.git'\r\ncall neobundle#end()\r\nNeoBundleCheck\r\n\r\nlet g:go_metalinter_enabled = ['vet', 'golint', 'errcheck']\r\nlet g:go_metalinter_autosave = 1\r\nlet g:go_fmt_fail_silently = 0\r\nlet g:go_fmt_command = \"goimports\"\r\nlet g:go_list_type = \"quickfix\"\r\nlet g:go_auto_type_info = 0\r\nlet g:go_def_mode = \"guru\"\r\nlet g:go_echo_command_info = 1\r\nlet g:go_gocode_autobuild = 0\r\nlet g:go_gocode_unimported_packages = 1\r\nlet g:go_autodetect_gopath = 1\r\nlet g:go_info_mode = \"guru\"\r\nlet g:go_highlight_functions = 1\r\nlet g:go_highlight_methods = 1\r\nlet g:go_highlight_fields = 1\r\nlet g:go_highlight_types = 0\r\nlet g:go_highlight_extra_types = 1\r\nlet g:go_highlight_operators = 1\r\nlet g:go_highlight_build_constraints = 1\r\nlet g:go_highlight_structs = 1\r\nlet g:go_highlight_space_tab_error = 1\r\nlet g:go_highlight_array_whitespace_error = 1\r\nlet g:go_highlight_trailing_whitespace_error = 1\r\nlet g:go_modifytags_transform = 'camelcase'\r\nlet g:go_addtags_transform = 'camelcase'\r\n\r\n\r\n* Vim version (first three lines from `:version`):\r\nNVIM v0.2.2\r\nBuild type: Release\r\nLuaJIT 2.0.5\r\n\r\n* Go version (`go version`):\r\ngo version go1.10.1 linux/amd6\r\n\r\n* Go environment (`go env`):\r\nGOARCH=\"amd64\"\r\nGOBIN=\"\"\r\nGOCACHE=\"/home/kgn/.cache/go-build\"\r\nGOEXE=\"\"\r\nGOHOSTARCH=\"amd64\"\r\nGOHOSTOS=\"linux\"\r\nGOOS=\"linux\"\r\nGOPATH=\"/home/kgn/go:/home/kgn/src/biq/tingbogen\"\r\nGORACE=\"\"\r\nGOROOT=\"/usr/lib/go\"\r\nGOTMPDIR=\"\"\r\nGOTOOLDIR=\"/usr/lib/go/pkg/tool/linux_amd64\"\r\nGCCGO=\"gccgo\"\r\nCC=\"gcc\"\r\nCXX=\"g++\"\r\nCGO_ENABLED=\"1\"\r\nCGO_CFLAGS=\"-g -O2\"\r\nCGO_CPPFLAGS=\"\"\r\nCGO_CXXFLAGS=\"-g -O2\"\r\nCGO_FFLAGS=\"-g -O2\"\r\nCGO_LDFLAGS=\"-g -O2\"\r\nPKG_CONFIG=\"pkg-config\"\r\nGOGCCFLAGS=\"-fPIC -m64 -pthread -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build414271976=/tmp/go-build -gno-record-gcc-switches\"\r\n"}}
{"actor":{"display_login":"desdic"}}