Documentation
¶
Overview ¶
Package toolchain locates external developer tools jade shells out to.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Gopls ¶
Gopls returns the path to the gopls binary and whether it was found.
PATH alone is not enough: gopls is installed with `go install golang.org/x/tools/gopls@latest`, which writes to GOBIN or $GOPATH/bin, and neither is on PATH by default on a stock macOS or Linux setup. Treating "not on PATH" as "not installed" makes jade report gopls as unavailable on machines where the user has installed it exactly as the Go documentation instructs — which is precisely what happened on this repo's own development machine.
The result is cached: the answer cannot change within a process, and the lookup would otherwise run on every diagnostic, reference and rename.
Types ¶
This section is empty.