GoLand GOROOT Is Not Defined / Go SDK Not Found

Share
Workaround available Windows, macOS, Linux Updated November 14, 2026Based on 3 user reportsHow we research

Quick answer

Point GoLand at a Go installation under Settings | Go | GOROOT, or let it download one. Also check which go binary is on PATH.

Most likely fix: Set GOROOT

How to fix it

Try these in order — the most common fix is first.

  1. 1. Set GOROOT

    1. Open Settings | Go | GOROOT
    2. Pick the Go installation or choose Download to get one
    3. Click OK and wait for re-indexing
    Did this fix it?
  2. 2. Check the binary

    1. Run which go (or where go on Windows)
    2. Select that location as GOROOT
    3. Restart GoLand from a terminal so it inherits PATH if you use a version manager
    Did this fix it?

Symptoms

A banner says "GOROOT is not defined", or the project shows "no Go SDK" and nothing resolves.

Why it happens

  • No Go SDK selected for the project
  • Go uninstalled, upgraded or moved so the old path is invalid
  • PATH points to a different go binary than expected
  • Version managers (asdf, gvm) hide the install from the IDE

This guide also covers

  • goland goroot not defined
  • goland no go sdk
  • goland goroot not found
  • goland setup go

Still not working?

If GoLand keeps failing, you're not alone. See every GoLand problem users report or the alternatives people switch to.

Have an app idea? Our small team builds any software: web and mobile apps, games, desktop, AI tools. Price agreed together.

Talk to us
Fixed it? Share this guide

The same problem in other apps

All not loading, error messages & connection guides →

Other GoLand errors

All 10 GoLand errors and fixes →