./devel/gopls, LSP server for Go editor integration

[ CVSweb ] [ Homepage ] [ RSS ] [ Required by ] [ Add to tracker ]


Branch: CURRENT, Version: 0.5.1, Package name: gopls-0.5.1, Maintainer: bsiegert

The gopls command is an LSP server for Go. The Language Server Protocol
allows any text editor to be extended with IDE-like features; see
https://langserver.org/ for details.


Required to build:
[pkgtools/cwrappers] [lang/go114]

Master sites:

SHA1: 03fbc27350e3c545b33d9b2c85c3ec0816135814
RMD160: 66867c8683c33545dc9801d608c417832212a60d
Filesize: 2524.515 KB

Version history: (Expand)


CVS history: (Expand)


   2020-10-14 18:29:26 by Thomas Klausner | Files touched by this commit (1)
Log message:
gopls: Add RCS Id.
   2020-10-14 18:23:33 by Thomas Klausner | Files touched by this commit (2) | Package updated
Log message:
gopls: update to 0.5.1.

Features

Completion speed improvements

https://golang.org/cl/257240 eliminated some duplicate type-checking in \ 
completions (and some other features), halving latency in most cases.
Improvements to symbol rankings

From https://golang.org/cl/254037:

    Downrank symbols if they are:

        Unexported and outside of the workspace. Since one wouldn't jump to \ 
these symbols to e.g. view documentation, they are less relevant.
        Fields and interface methods. Usually one would jump to the type name, \ 
so having fields highly ranked can be noisy.

Warnings for excluded files

You will now see diagnostics if you open a file that is excluded from the \ 
current build, likely by build tags. This should aid in understanding cases when \ 
gopls fails to work on a certain file.
Better error reporting when code lenses fail

A pop-up with an error will appear if a code lens fails to run its command.
Experimental
Multi-module workspace support

The proposal described in golang/go#32394 is partially implemented, but off by \ 
default.
Enable multi-module workspace support by adding the following to your settings:

"gopls": {
    "experimentalWorkspaceModule": true,
}

With this setting, you will be able to open a directory that contains multiple \ 
modules. Most features will work across modules, but some, such as go mod tidy \ 
diagnostics, are not yet implemented.

Give this a try if you're interested in this new feature, but please note that \ 
it is still very experimental.
Fixes
Toggle GC Details on Windows

There was a bug in the new experimental GC details code lens on Windows machines \ 
(golang/go#41614). We added a work-around to fix the issue.

A list of all issues fixed can be found in the gopls/v0.5.1 milestone.
Documentation

The documentation for settings is now automatically generated so it will stay \ 
up-to-date. Documentation was also updated for working with Neovim and for \ 
working on the Go project itself.
Thank you to our contributors!

@heschik @findleyr @dandua98 @pjweinb @ainar-g
   2020-09-17 16:59:35 by Benny Siegert | Files touched by this commit (3) | Package updated
Log message:
gopls: update to 0.5.0.

Memory usage

- Rewrite of caching model, resulting in significant memory usage improvements
  (@heschik).

New features

- Extract to function: Support for extracting code blocks that contain return
  statements (@joshbaum).
- Workspace symbols: Support for fzf-style search syntax (@findleyr). The
  following syntax is supported:
        ' for exact matching
        ^ for prefix matching
        $ for suffix matching

Note: This feature does not yet work in VS Code. See golang/vscode-go#647 and
microsoft/vscode#106788.

- An experimental new code lens to view GC optimization details (@pjweinb).
  Once the code lens is enabled, you will see a Toggle gc details annotation at
  the top of your file. Clicking it will show optimization diagnostics produced
  by the Go compiler, and clicking it once again will hide these diagnostics.
  Enable the code lens by adding the following to your settings:

     "codelens": {
     	"gc_details": true
     }

- go mod tidy and go mod vendor code lenses for go.mod files (@dandua98).
- Support for filling in matching in-scope variables instead of just empty
  values in fillstruct and fillreturns (@joshbaum).
- Autocompletion within import statements (@dandua98).
- Autocompletion within package declarations (@dandua98).

Improvements

- Improvements to workspace symbols ranking and fuzzy matching (@findleyr,
  @myitcv).
- Better completion suggestions in type switch case clauses and for calls to
  append, function literals, and unnamed types (@muirdm).
   2020-09-03 09:29:54 by Benny Siegert | Files touched by this commit (194)
Log message:
Revbump all Go packages after default Go version was changed to 1.15.1
   2020-08-24 09:56:49 by Thomas Klausner | Files touched by this commit (3) | Package updated
Log message:
gopls: update to 0.4.4.

* Support for opening a single file. Previously, gopls required
  you to open an entire directory.
* Support features and diagnostics for the entire module, even when
  you open a subdirectory of the module.
* Extract a selected range to a variable or to a function. This
  feature is still relatively new, so please report issues if you
  encounter any. (@joshbaum)
* Fillstruct performance improvements. It is now enabled by default
  again. (@joshbaum)
* Improvements in go.mod diagnostic error presentation.
   2020-08-14 22:01:40 by Benny Siegert | Files touched by this commit (194) | Package updated
Log message:
Revbump all Go packages after go114 update
   2020-07-31 11:12:58 by Thomas Klausner | Files touched by this commit (2) | Package updated
Log message:
gopls: update to 0.4.3.

0.4.3

Disable the fillstruct analysis by default.
We recently uncovered some performance issues with the analysis, leading us to \ 
disable it by default.
Once those issues are resolved, we will enable it by default again.
You can still enable it by adding the following to your VS Code settings:

"gopls": {
	"analyses": {
		"fillstruct": true,
	}
}

gopls/v0.4.2

    Significant memory improvements (@heschik). Dependency test variants and \ 
vendored packages are no longer considered "workspace packages".
    Smart autocompletion for "append" (@muirdm).
    A "fill struct" code action to suggest populating a struct literal \ 
with default values (@luciolas, @joshbaum).
    Better cgo support with Go 1.15 (@heschik). Learn more: golang/go#35721 \ 
(comment).
    Code lens to run Go tests directly in the editor (@martskins). Currently opt-in:

"gopls": {
    "codelens": {
        "test": true,
    }
}

    Improved folding in composite literals (@joshbaum).
    Pop-up suggestion to run go mod vendor when inconsistent vendoring detected \ 
(@stamblerre).
    Respect GOPRIVATE for all document links and links on hover (@findleyr).
    A full list of issues resolved in this release can be found in the \ 
gopls/v0.4.2 milestone.

gopls/dev.go2go: You can use the new go2go prototype with gopls. See golang/go#39619.
   2020-07-17 20:04:33 by Benny Siegert | Files touched by this commit (196) | Package updated
Log message:
Revbump all Go packages after go114 update.