vim-go v1.21 Release Notes

Release Date: 2019-09-11 // over 4 years ago
  • BACKWARDS INCOMPATABILITIES:

    • ๐Ÿ‘• g:go_metalinter_disabled has been removed. [GH-2375]

    ๐Ÿ‘Œ IMPROVEMENTS:

    • Add a new option, g:go_code_completion_enabled, to control whether omnifunc is set. [GH-2229]
    • ๐Ÿ‘• Use build tags with golangci-lint. [GH-2261]
    • ๐Ÿ‘ Allow debugging of packages outside of GOPATH without a go.mod file. [GH-2269]
    • โœ… Show which example failed when Example tests fail [GH-2277]
    • ๐Ÿ‘‰ Show function signature and return types in preview window when autocompleting functions and methods. [GH-2289]
    • ๐Ÿ‘Œ Improve the user experience when using null modules. [GH-2300]
    • ๐Ÿ”ง Modify :GoReportGitHubIssue to include vim-go configuration values [GH-2323]
    • Respect g:go_info_mode='gopls' in go#complete#GetInfo. [GH-2313]
    • ๐Ÿ‘ Allow :GoLint, :GoErrCheck, and :GoDebug to work in null modules. [GH-2335]
    • Change default value for g:go_info_mode and g:go_def_mode to 'gopls'. [GH-2329]
    • Add a new option, g:go_doc_popup_window to optionally use a popup window for godoc in Vim 8.1.1513 and later. [GH-2347]
    • โž• Add :GoAddWorkspace function to support multiple workspaces with gopls. [GH-2356]
    • ๐Ÿ“ฆ Install gopls from its stable package. [GH-2360]
    • Disambiguate progress message when initializing gopls. [GH-2369]
    • Calculate LSP position correctly when on a line that contains multi-byte characters before the position. [GH-2389]
    • Calculate Vim position correctly from LSP text position. [GH-2395]
    • ๐Ÿ‘‰ Use the statusline to display gopls initialization status messages and only echo the statuses when g:go_echo_command_info is set. [GH-2422]
    • ๐Ÿ— Send configuration to gopls so that build tags will be considered and hover content won't have documentation. [GH-2429]
    • Add a new option, g:go_term_close_on_exit, to control whether jobs run in a terminal window will close the terminal window when the job exits. [GH-2409]
    • Allow g:go_template_file and g:go_template_test_files to reside outside of vim-go's template directory. [GH-2434]
    • โž• Add a new command, :GoLSPDebugBrowser, to open a browser to gopls debugging view. [GH-2436]
    • โšก๏ธ Restart gopls automatically when it is updated via :GoUpdateBinaries. [GH-2453]
    • Reset 'more' while installing binaries to avoid unnecessary more prompts. [GH-2457]
    • Highlight %w as a format specifier (for Go 1.13). [GH-2433]
    • ๐Ÿ‘• Handle changes to Go 1.13's go vet output that gometalinter isn't expecting. [GH-2475]
    • ๐Ÿ‘• Make golangci-lint the default value for g:go_metalinter_command. [GH-2478]
    • ๐Ÿ“œ Parse compiler errors from Go 1.13 go vet correctly. [GH-2485]

    ๐Ÿ› BUG FIXES:

    • display info about function and function types whose parameters are interface{} without truncating the function signature. [GH-2244]
    • install tools that require GOPATH mode when in module mode. [GH-2253]
    • Detect GOPATH when starting gopls [GH-2255]
    • ๐Ÿ– Handle gopls responses in the same window from which the respective request originated. [GH-2266]
    • ๐Ÿ‘‰ Show completion matches from gocode. [GH-2267]
    • ๐Ÿ‘‰ Show the completion preview window. [GH-2268]
    • ๐Ÿ“š Set the anchor for method documentation correctly. [GH-2276]
    • Respect the LSP information for determining where candidate matches start. [GH-2291]
    • โช Restore environment variables with backslashes correctly. [GH-2292]
    • Modify handling of gopls output for :GoInfo to ensure the value will be displayed. [GH-2311]
    • ๐Ÿ‘• Run :GoLint successfully in null modules. [GH-2318]
    • Ensure actions on save work in new buffers that have not yet been persisted to disk. [GH-2319]
    • โช Restore population of information in :GoReportGitHubIssue. [GH-2312]
    • Do not jump back to the originating window when jumping to definitions with g:go_def_mode='gopls'. [GH-2327]
    • ๐Ÿ›  Fix getting information about a valid identifier for which gopls returns no information (e.g. calling :GoInfo on a package identifier). [GH-2339]
    • ๐Ÿ›  Fix tab completion of package names on the cmdline in null modules. [GH-2342]
    • Display identifier info correctly when the identifier has no godoc. [GH-2373]
    • ๐Ÿ‘• Fix false positives when saving a buffer and g:go_metalinter_command is golangci-lint. [GH-2367]
    • ๐Ÿ›  Fix :GoDebugRestart. [GH-2390]
    • โœ… Do not execute tests twice in terminal mode. [GH-2397]
    • Do not open a new buffer in Neovim when there are compilation errors and terminal mode is enabled. [GH-2401]
    • ๐Ÿ›  Fix error due to typo in implementation of :GoAddWorkspace. [GH-2415]
    • Do not format the file automatically when g:go_format_autosave is set and the file being written is not the current file. [GH-2442]
    • ๐Ÿ›  Fix go-debug-stepout mapping. [GH-2464]
    • ๐Ÿ‘ท Handle paths with spaces correctly when executing jobs. [GH-2472]
    • Remove a space in the default value for g:go_debug_log_output, so that Delve will start on Windows. [GH-2480]