Skip to content

Failed to install gopls #2015

@A7Lavinraj

Description

@A7Lavinraj

I've searched open issues for similar requests

  • Yes

I've recently downloaded the latest plugin version of mason.nvim

  • Yes

Problem description

I was installing gopls with mason and error pops up gopls failed to install.

Expected behavior

Should install gopls

Affected packages

gopls

Mason output

Installing go package golang.org/x/tools/[email protected]…
        go: golang.org/x/tools/[email protected]: loading deprecation for golang.org/x/tools/gopls: module golang.org/x/tools/gopls: Get "https://proxy.golang.org/golang.org/x/tools/gopls/@v/list": dial tcp: lookup proxy.golang.org on [::1]:53: read udp [::1]:59190->[::1]:53: read: connection refused
        spawn: go failed with exit code 1 and signal 0. go: golang.org/x/tools/[email protected]: loading deprecation for golang.org/x/tools/gopls: module golang.org/x/tools/gopls: Get "https://proxy.golang.org/golang.org/x/tools/gopls/@v/list": dial tcp: lookup proxy.golang.org on [::1]:53: read udp [::1]:59190->[::1]:53: read: connection refused

Installation log

[INFO  Sun 24 Aug 2025 08:38:51 AM IST] ...zy/mason.nvim/lua/mason-core/installer/InstallRunner.lua:40: Executing installer for Package(name=gopls) {
  debug = false,
  force = false,
  strict = false
}
[ERROR Sun 24 Aug 2025 08:38:51 AM IST] ...zy/mason.nvim/lua/mason-core/installer/InstallRunner.lua:93: Installation failed for Package(name=gopls) error=spawn: go failed with exit code 1 and signal 0. go: golang.org/x/tools/[email protected]: loading deprecation for golang.org/x/tools/gopls: module golang.org/x/tools/gopls: Get "https://proxy.golang.org/golang.org/x/tools/gopls/@v/list": dial tcp: lookup proxy.golang.org on [::1]:53: read udp [::1]:56681->[::1]:53: read: connection refused

Neovim version (>= 0.10.0)

NVIM v0.12.0-dev-988+ge3fd906b61
Build type: RelWithDebInfo
LuaJIT 2.1.1753364724

Operating system/version

Linux archlinux 6.12.43-1-lts #1 SMP PREEMPT_DYNAMIC Wed, 20 Aug 2025 17:50:11 +0000 x86_64 GNU/Linux

Healthcheck

==============================================================================
mason:                                                                    6 ⚠️

mason.nvim ~
- ✅ OK mason.nvim version v2.0.1
- ✅ OK PATH: prepend
- ✅ OK Providers: 
    mason.providers.registry-api
    mason.providers.client
- ✅ OK neovim version >= 0.10.0

mason.nvim [Registries] ~
- ✅ OK Registry `github.com/mason-org/mason-registry version: 2025-08-23-brash-watch` is installed.

mason.nvim [Core utils] ~
- ✅ OK unzip: `UnZip 6.00 of 20 April 2009, by Info-ZIP.  Maintained by C. Spieler.  Send`
- ✅ OK wget: `GNU Wget 1.25.0, a non-interactive network retriever.`
- ✅ OK curl: `curl 8.15.0 (x86_64-pc-linux-gnu) libcurl/8.15.0 OpenSSL/3.5.2 zlib/1.3.1 brotli/1.1.0 zstd/1.5.7 libidn2/2.3.7 libpsl/0.21.5 libssh2/1.11.1 nghttp2/1.66.0 nghttp3/1.11.0`
- ✅ OK gzip: `gzip 1.14-modified`
- ✅ OK tar: `tar (GNU tar) 1.35`
- ✅ OK bash: `GNU bash, version 5.3.3(1)-release (x86_64-pc-linux-gnu)`
- ✅ OK sh: `Ok`

mason.nvim [Languages] ~
- ⚠️ WARNING Ruby: not available
  - ADVICE:
    - spawn: ruby failed with exit code - and signal -. Could not find executable "ruby" in PATH.

- ⚠️ WARNING RubyGem: not available
  - ADVICE:
    - spawn: gem failed with exit code - and signal -. Could not find executable "gem" in PATH.

- ⚠️ WARNING Composer: not available
  - ADVICE:
    - spawn: composer failed with exit code - and signal -. Could not find executable "composer" in PATH.

- ⚠️ WARNING PHP: not available
  - ADVICE:
    - spawn: php failed with exit code - and signal -. Could not find executable "php" in PATH.

- ✅ OK Go: `go version go1.24.6 linux/amd64`
- ⚠️ WARNING javac: not available
  - ADVICE:
    - spawn: javac failed with exit code - and signal -. Could not find executable "javac" in PATH.

- ✅ OK node: `v22.16.0`
- ⚠️ WARNING julia: not available
  - ADVICE:
    - spawn: julia failed with exit code - and signal -. Could not find executable "julia" in PATH.

- ✅ OK python: `Python 3.13.7`
- ✅ OK luarocks: `/usr/bin/luarocks 3.12.2`
- ✅ OK cargo: `cargo 1.88.0 (873a06493 2025-05-10)`
- ✅ OK java: `openjdk version "24.0.2" 2025-07-15`
- ✅ OK npm: `10.9.2`
- ✅ OK pip: `pip 25.2 from /usr/lib/python3.13/site-packages/pip (python 3.13)`
- ✅ OK python venv: `Ok`

Screenshots

Image

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions