[BUG] Claude Code unable to connect to PyCharm by using the dedicated Plugin or via PyCharm's terminals
Status Closed — not planned
Maintainer reply None cached
Workaround ✓ Mentioned in thread ↓
Activity 15 comments · opened Dec 7, 2025 · closed Apr 10, 2026
Preflight Checklist
- [x] I have searched existing issues and this hasn't been reported yet
- [x] This is a single bug report (please file separate reports for different bugs)
- [x] I am using the latest version of Claude Code
What's Wrong?
The graphical diff viewer (side-by-side comparison window with "Reject"/"Apply" buttons) randomly fails to appear when Claude Code proposes file changes. Instead, the diff is displayed as plain text in the terminal with red/green lines. This issue is intermittent and unpredictable.
Randomly, the diff is displayed as plain text directly in the Claude Code terminal:
- Red lines for deletions (with -), green lines for additions (with +)
- Text prompt: "Do you want to make this edit to filename?"
- No graphical diff viewer opens
No specific trigger identified - happens across different:
- Projects
- Sessions
- Computers
- Plugin versions
- IDE versions
What Should Happen?
Claude Code should consistently open a dedicated diff tab (e.g., [Claude Code] filename.ext) with:
- Side-by-side or unified diff viewer
- Native IDE diff controls ("Highlight words", "Unified viewer", etc.)
- "Reject" and "Apply" buttons at the bottom
As shown in the official plugin page screenshot #1.
Error Messages/Logs
Steps to Reproduce
- Use Claude Code in JetBrains IDE to request file modifications
- The issue occurs randomly - sometimes the graphical diff viewer appears, sometimes it doesn't
Claude Model
Sonnet (default)
Is this a regression?
Yes, this worked in a previous version
Last Working Version
_No response_
Claude Code Version
2.0.60
Platform
Anthropic API
Operating System
Windows
Terminal/Shell
PyCharm terminal
Additional Information
_No response_
15 Comments
Found 3 possible duplicate issues:
This issue will be automatically closed as a duplicate in 3 days.
🤖 Generated with Claude Code
The three cases mentioned represent different contexts.
I can confirm this issue on IntelliJ IDEA.
I noticed that diff view only opens for single-line edits, similar pattern to #11311 (though that's VSCode Extension specific). Multi-line edits bypass the diff preview entirely.
❕ New element
Invalidating the IDE cache may temporarily resolve the issue. But as the issue still reappears randomly.
❕ New element
After prolonged use of the plug-in, I can confirm that the problem occurs relatively more frequently when Claude Code is first launched.
Closing Claude Code from the PyCharm terminal and restarting it often allows Claude Code and the IDE to be connected properly. A red “IDE disconnected” message appears temporarily before disappearing. The
/statuscommand can then be used to confirm that the two platforms are properly associated.But in my opinion, it's a problem that should still be fixed.
This starting happening to me a couple of days ago. I am pretty sure after I "re-installed" Claude using their native installer. I don't know if it is related, but hadn't happened before!
This is giving me headache! LOL. Now, I´ve managed to work around this (although I don´t like it). I stopped using the terminal within the PyCharm environment, which is better of course to use it, and started using the terminal (PowerShell) from the Windows Terminal App. I use the same powershell in the integrated pycharm terminal. So I ran
/ideand it said something related to the mount path of the project not being the same. So i went and disabled project folder mapping to/mnt/....on the Claude Code Plugin, and now was able to see Pycharm when running/idebut only on the external terminal. Not within pycharm. So for now I'll work like this, although I prefer to work within the PyCharm environment. if anyone knows how to solve this in PyCharm, we are all ears!Re-contextualization of the problem (since I'm having it again):
As @armando-herastang mentioned, it seems that there is a problem with integration in terminals and automatic mapping (which systematically favors a WSL format).
Armando's workaround is not convenient, but still works:
I'm keeping the issue open and will send an email to try to get an appropriate response to this problem.
Today, on Claude Code v.2.1.63, I was able to connect Claude Code within the PyCharm terminal to the IDE. It started working all of a sudden. I didn’t see anything related in the latest Claude Code release notes (since I’ve been using Windows Terminal for a while, I can’t pinpoint which version it started working again). Also, nothing changed in the Claude Code plugin for PyCharm or in PyCharm itself (at least nothing that I could notice).
Funnily enough, I can’t connect from Windows Terminal now! 🙃
EDIT: I does work sometimes on Windows Terminal, don´t know about the conditions
While the issue seems to be fixed, I do not know if I should close the issue right now without confirmation from Anthropic Staff.
if you go into your terminal settings in pycharm then go to environment variables and add in the claude path it will work
I struggled with this issue after native installing of claude
Adding this to bashrc on fedora fixed the issue for me
Thank you, this actually fixed it.
If you set up proxy in ~/.claude/settings.json, than add it there.
Closing for now — inactive for too long. Please open a new issue if this is still relevant.
This issue has been automatically locked since it was closed and has not had any activity for 7 days. If you're experiencing a similar issue, please file a new issue and reference this one if it's relevant.