doc/editor_extensions/jetbrains_ide/jetbrains_troubleshooting.md
If the steps on this page don't solve your problem, check the list of open issues in the JetBrains plugin's project. If an issue matches your problem, update the issue. If no issues match your problem, create a new issue and provide the required information for Support.
To troubleshoot GitLab Duo errors in your IDE:
For support with Code Suggestions, see troubleshooting Code Suggestions.
If you are seeing HTTP/1.1 responses from GitLab Duo rather than /-/cable
WebSocket endpoints in your logs, your WebSocket connections may be blocked.
Your GitLab instance must allow inbound WebSocket connections from IDE clients. Ask your network administrator to allow WebSocket traffic to your GitLab instance if you suspect this is the issue.
When using GitLab Duo Agentic Chat or the Software Development Flow in your IDE, GitLab Duo can get stuck in a loop or have difficulty running commands.
This issue can occur when you are using shell themes or integrations, like Oh My ZSH! or powerlevel10k.
When a GitLab Duo agent spawns a terminal, a theme or integration can prevent commands from running properly.
As a workaround, use a simpler theme for commands sent by agents. Issue 2070 in the VS Code extension project tracks improvements to this behavior so this workaround is no longer needed.
.zshrc fileIn VS Code and JetBrains IDEs, configure Oh My ZSH! or powerlevel10k to use a simpler
theme when it runs commands sent by an agent. You can use the environment variables exposed
by the IDEs to set these values.
Edit your ~/.zshrc file to include this code:
# ~/.zshrc
# Path to your oh-my-zsh installation
export ZSH="$HOME/.oh-my-zsh"
# ...
# Decide whether to load a full terminal environment,
# or keep it minimal for agentic AI in IDEs
if [[ "$TERM_PROGRAM" == "vscode" || "$TERMINAL_EMULATOR" == "JetBrains-JediTerm" ]]; then
echo "IDE agentic environment detected, not loading full shell integrations"
else
# Oh My ZSH
source $ZSH/oh-my-zsh.sh
# Theme: Powerlevel10k
[[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh
# Other integrations like syntax highlighting
fi
# Other setup, like PATH variables
To enable debug logs in JetBrains:
com.gitlab.pluginIf you experience certificate errors or other connection errors, and use an HTTP proxy to connect to your GitLab instance, you must configure the Language Server to use a proxy for the GitLab Language Server.
You can also enable proxy authentication.
To enable GitLab Language Server debug logs:
debug.The debug logs are available in the idea.log log file. To view this file, either:
/Users/<user>/Library/Logs/JetBrains/IntelliJIdea<build_version>, replacing
<user> and <build_version> with the appropriate values.If your machine connects to your GitLab instance through a proxy, you might encounter SSL certificate errors in JetBrains. GitLab Duo attempts to detect certificates in your system store; however, Language Server cannot do this. If you see errors from the Language Server about certificates, try enabling the option to pass a Certificate Authority (CA) certificate:
To do this:
.pem file with CA certificates.If GitLab Duo still fails to connect, you might need to ignore certificate errors. You might see errors in the GitLab Language Server logs after enabling debug mode:
2024-10-31T10:32:54:165 [error]: fetch: request to https://gitlab.com/api/v4/personal_access_tokens/self failed with:
request to https://gitlab.com/api/v4/personal_access_tokens/self failed, reason: unable to get local issuer certificate
FetchError: request to https://gitlab.com/api/v4/personal_access_tokens/self failed, reason: unable to get local issuer certificate
By design, this setting represents a security risk: these errors alert you to potential security breaches. You should enable this setting only if you are absolutely certain the proxy causes the problem.
Prerequisites:
To do this:
If you encounter problems during the Verify setup phase of GitLab authentication, confirm you are running a supported version of PyCharm:
PyCharm Community or PyCharm Professional.If you experience issues with GitLab Duo Chat related to JCEF (Java Chromium Embedded Framework), you can try these steps:
Registry.ide.browser.jcef.sandbox.enable.Choose Boot Java Runtime for the IDE.Before contacting Support, make sure the latest GitLab Duo plugin is installed. All releases are available in the JetBrains Marketplace, on the Versions tab.
Gather this information from affected users, and provide it in your bug report:
GitLab: Export Diagnostics Bundle quick action. Available with GitLab Duo plugin 3.27.0 or later.GitLab: Diagnostics from the quick actions menu and copy the Markdown output