llms.txt: machine-readable documentation index. Markdown version of this page is also available.

Go by GoLand Help

Troubleshooting

This section describes configuration options that can help you diagnose common issues and address performance problems.

Common problems

Duplicate completion items, diagnostics, or navigation results

Another Go language server, such as the one of the Go extension (golang.go), serves the same files.

  • Disable that extension in the workspace.

References to dependencies are not resolved

Go by GoLand does not download module sources.

  • Run go mod download in the module directory.

For more details, refer to Dependencies.

Built-in types or other valid code is highlighted as unresolved

If built-in types such as string or error remain unresolved after import and indexing finish, check the selected Go SDK and module import warnings.

Report unresolved Go errors

Code insight disappears for a moment

After a change to go.mod or go.work, Go by GoLand reimports the workspace. Diagnostics come back after the updated model is indexed.

A module is not imported

If a go.mod or go.work file cannot be resolved, for example, because of a syntax error, Go by GoLand skips it and reports a warning in the output channel.

  1. Open View | Output and select the Go by GoLand — Build output channel.

    If the whole import fails, you can also click the Build Error item in the Status Bar to open the same output channel.

  2. Fix the problem reported in the output channel and save the file.

  3. If the module is located under a go.work file, make sure it is listed in that file. For more details, refer to How modules are detected.

Go by GoLand reimports the workspace automatically.

Configure extension settings

Open extension settings

  1. Open the Command Palette (Ctrl+Shift+P) and run Preferences: Open Settings (UI).

  2. In the settings search field, enter @ext:JetBrains.goland-server.

Change region and data sharing settings

  1. Open the extension settings and search for intellij.region.

  2. On the User tab, select your region.

  3. Search for intellij.dataSharing and select which diagnostic data to share with JetBrains. For the available options, refer to data sharing settings.

  4. Restart the language server to apply the changes.

If you run a language server locally, you can connect the extension to it instead of using the bundled language server.

Connect to a local language server

  1. Open the extension settings and search for intellij.dev.serverPort.

  2. Enter the port of the locally running language server. To use the bundled language server instead, set the value to -1.

View logs

Go by GoLand writes diagnostic information to the intellij-server.log file.

Locate the log file

  1. From the main menu, select View | Output.

  2. Select Go by GoLand from the list of output channels.

    During startup, Go by GoLand prints the full path to the log file, for example:

    [Info] Log file: /Users/<USERNAME>/Library/Caches/JetBrains/IntelliJServer/instances/<WORKSPACE_ID>/system/log/intellij-server.log
  3. When reporting an issue, include relevant log entries together with a description of the problem and steps to reproduce it.

Configure protocol tracing

  1. Open the extension settings and search for intellij.trace.server.

  2. Select verbose to log all protocol messages between the editor and the language server. For the other tracing levels, refer to Protocol tracing.

Check index reuse for a new worktree

After you configure index reuse for a new worktree, you can check the server log to confirm that the index was copied.

Verify index reuse

  1. From the main menu, select View | Output. Select Go by GoLand from the list of output channels.

  2. Open the intellij-server.log file named in the Log file: startup message. For more details, refer to Locate the log file.

  3. Search the entries from the time you opened the new worktree for Forking the workspace database from.

    The path after this message points to the cached index of the main checkout. The message marks the start of copying. If the language server then initializes successfully, the copy is complete.

Restart the language server

If you experience issues with Go by GoLand, such as missing code analysis, unresolved symbols, or other unexpected behavior, restarting the language server or clearing its caches may help resolve the issue.

Restarting the bundled language server or clearing its caches also interrupts other editor sessions connected to the same server.

Restart the language server

  1. In the Status Bar (bottom-right corner of the VS Code window), click or hover over the Go by GoLand status bar item.

  2. Select one of the actions to restart the language server:

    • Restart Language Server

    • Clear Caches and Restart Language Server

    Status bar menu of the Go LSP extension with the Restart Language Server and Clear Caches and Restart Language Server actions

    You can also run these actions from the Command Palette (Ctrl+Shift+P).

    Command Palette listing the Go LSP: Restart Language Server and Go LSP: Clear Caches and Restart Language Server commands
  3. If you selected Clear Caches and Restart Language Server, click Clear and Restart in the confirmation dialog.

Clear the index of an external language server

  1. Stop the external language server.

  2. Delete its index directory manually.

Configure JVM memory

The bundled language server has a maximum heap size of 2 GB by default. For large projects, increasing the heap size may improve indexing and analysis performance.

  1. Navigate to Settings | Extensions | Go by GoLand (VS Code) or VS Code Settings | Extensions | Go by GoLand (Cursor).

  2. In the Intellij: Additional Jvm Args setting, click Edit in settings.json.

  3. Configure the maximum heap memory following the example:

    { "intellij.additionalJvmArgs": ["-Xmx4g"] }
  4. Save the file. In the notification that appears, click Restart Language Server to apply the changes.

Reduce disk usage during indexing

You can reduce peak disk usage during indexing by disabling the write-ahead log of the index database. This does not reduce the final size of the index.

Disable the index write-ahead log

  1. Open the extension settings and search for intellij.disableRocksDBWriteAheadLog.

  2. Select Intellij: Disable Rocks DB Write Ahead Log.

  3. Restart the language server to apply the change.

16 November 2026