claude-code - 💡(How to fix) Fix [BUG] JetBrains plugin treats claude.exe path as directory for IDE lock file on Windows [1 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
anthropics/claude-code#54561Fetched 2026-04-30 06:42:16
View on GitHub
Comments
0
Participants
1
Timeline
4
Reactions
0
Author
Participants
Timeline (top)
labeled ×4

When starting/opening the Claude Code Beta plugin in IntelliJ on Windows, the IDE reports an internal plugin error. The plugin appears to construct an IDE lock-file path underneath the claude.exe executable path, effectively treating the executable file as a directory.

Error Message

com.intellij.diagnostic.PluginException:
C:\Users\patri\.local\bin\claude.exe\ide\61219.lock
(Das System kann den angegebenen Pfad nicht finden)

Caused by: java.io.FileNotFoundException:
C:\Users\patri\.local\bin\claude.exe\ide\61219.lock
(Das System kann den angegebenen Pfad nicht finden)

Root Cause

Caused by: java.io.FileNotFoundException: C:\Users\patri.local\bin\claude.exe\ide\61219.lock (Das System kann den angegebenen Pfad nicht finden)

Code Example

com.intellij.diagnostic.PluginException:
C:\Users\patri\.local\bin\claude.exe\ide\61219.lock
(Das System kann den angegebenen Pfad nicht finden)

Caused by: java.io.FileNotFoundException:
C:\Users\patri\.local\bin\claude.exe\ide\61219.lock
(Das System kann den angegebenen Pfad nicht finden)

### What Should Happen?

The JetBrains plugin should correctly launch Claude Code and store IDE state or lock files in a valid application data directory, rather than attempting to create subdirectories beneath claude.exe.

### Error Messages/Logs
RAW_BUFFERClick to expand / collapse

Preflight Checklist

  • I have searched existing issues and this hasn't been reported yet
  • This is a single bug report (please file separate reports for different bugs)
  • I am using the latest version of Claude Code

What's Wrong?

Description

When starting/opening the Claude Code Beta plugin in IntelliJ on Windows, the IDE reports an internal plugin error. The plugin appears to construct an IDE lock-file path underneath the claude.exe executable path, effectively treating the executable file as a directory.

Error

com.intellij.diagnostic.PluginException:
C:\Users\patri\.local\bin\claude.exe\ide\61219.lock
(Das System kann den angegebenen Pfad nicht finden)

Caused by: java.io.FileNotFoundException:
C:\Users\patri\.local\bin\claude.exe\ide\61219.lock
(Das System kann den angegebenen Pfad nicht finden)

### What Should Happen?

The JetBrains plugin should correctly launch Claude Code and store IDE state or lock files in a valid application data directory, rather than attempting to create subdirectories beneath claude.exe.

### Error Messages/Logs

```shell
com.intellij.diagnostic.PluginException:
C:\Users\patri\.local\bin\claude.exe\ide\61219.lock

Caused by:
java.io.FileNotFoundException:
C:\Users\patri\.local\bin\claude.exe\ide\61219.lock

Steps to Reproduce

Install Claude Code Beta plugin (0.1.14-beta) in IntelliJ / JetBrains IDE on Windows Install Claude Code CLI (claude.exe) locally Configure plugin to use: C:\Users\patri.local\bin\claude.exe Start IntelliJ or open Claude plugin Observe immediate IDE internal error

Claude Model

Sonnet (default)

Is this a regression?

Yes, this worked in a previous version

Last Working Version

No response

Claude Code Version

2.1.123 (Claude Code)

Platform

Anthropic API

Operating System

Windows

Terminal/Shell

IntelliJ IDEA terminal

Additional Information

Plugin version: 0.1.14-beta IDE: IntelliJ / JetBrains Path issue appears Windows-specific Likely root cause: Plugin treats executable path (claude.exe) as directory path for lock/state files

extent analysis

TL;DR

The issue can be fixed by modifying the plugin to correctly handle the executable path and store lock files in a valid application data directory instead of attempting to create subdirectories beneath the claude.exe file.

Guidance

  • Verify that the claude.exe path is correctly configured in the plugin settings to ensure it's not being treated as a directory.
  • Check the plugin code for any hardcoded path assumptions and update them to use the correct directory separator for Windows (\).
  • Consider using a dedicated directory for storing lock files and IDE state, such as the user's AppData folder, to avoid conflicts with the executable file.
  • Review the plugin's error handling to provide more informative error messages when encountering path-related issues.

Example

No code snippet is provided as the issue is more related to the plugin's configuration and path handling.

Notes

The issue appears to be Windows-specific, and the root cause is likely due to the plugin treating the executable path as a directory path. The fix should involve updating the plugin to correctly handle the executable path and store lock files in a valid directory.

Recommendation

Apply a workaround by configuring the plugin to use a dedicated directory for storing lock files and IDE state, such as the user's AppData folder, until a fixed version of the plugin is available. This should help mitigate the issue and prevent conflicts with the executable file.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

claude-code - 💡(How to fix) Fix [BUG] JetBrains plugin treats claude.exe path as directory for IDE lock file on Windows [1 participants]