Troubleshooting
This section describes configuration options that can help you diagnose common issues and address performance problems.
If you encounter a problem while working with the extension, contact the Go by GoLand support team.
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 downloadin 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
If the problem persists, contact support. Include the extension version, Go version, language server logs, and a project that reproduces the problem.
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.
Open 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.
Fix the problem reported in the output channel and save the file.
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
Open the Command Palette (Ctrl+Shift+P) and run Preferences: Open Settings (UI).
In the settings search field, enter
@ext:JetBrains.goland-server.
Change region and data sharing settings
Open the extension settings and search for
intellij.region.On the User tab, select your region.
Search for
intellij.dataSharingand select which diagnostic data to share with JetBrains. For the available options, refer to data sharing settings.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
Open the extension settings and search for
intellij.dev.serverPort.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
From the main menu, select .
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.logWhen reporting an issue, include relevant log entries together with a description of the problem and steps to reproduce it.
Configure protocol tracing
Open the extension settings and search for
intellij.trace.server.Select
verboseto 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
From the main menu, select . Select Go by GoLand from the list of output channels.
Open the intellij-server.log file named in the
Log file:startup message. For more details, refer to Locate the log file.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
In the Status Bar (bottom-right corner of the VS Code window), click or hover over the Go by GoLand status bar item.
Select one of the actions to restart the language server:
Restart Language Server
Clear Caches and Restart Language Server

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

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
Stop the external language server.
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.
Navigate to (VS Code) or (Cursor).
In the Intellij: Additional Jvm Args setting, click Edit in settings.json.
Configure the maximum heap memory following the example:
{ "intellij.additionalJvmArgs": ["-Xmx4g"] }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
Open the extension settings and search for
intellij.disableRocksDBWriteAheadLog.Select Intellij: Disable Rocks DB Write Ahead Log.
Restart the language server to apply the change.