[BUG] IntelliJ plugin crashes on glob patterns with asterisk (*) in markdown files (Windows)

Status Fixed / completed
Maintainer reply ✓ Yes — timgu0
Activity 4 comments · opened Dec 8, 2025 · closed Dec 11, 2025
💡 Likely answer: A maintainer (timgu0, contributor) responded on this thread — see the highlighted reply below.

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?

ClaudeFilePathFilter in IntelliJ plugin attempts to parse glob patterns
like *.yml or application-*.yml from markdown text as actual file paths.

On Windows, asterisk (*) is an illegal path character, causing crash:

java.nio.file.InvalidPathException: Illegal char <> at index 19: config/application-.yml

What Should Happen?

Plugin should ignore glob patterns in markdown text and not attempt to parse them as file paths.
Alternatively, it should handle asterisks gracefully on Windows.

Error Messages/Logs

### Steps to Reproduce
  1. Open project with CLAUDE.md or README.md containing glob patterns like `*.yml`
  2. Plugin crashes when parsing file

Steps to Reproduce

  1. Open project with CLAUDE.md or README.md containing glob patterns like *.yml
  2. Plugin crashes when parsing file

Claude Model

Opus

Is this a regression?

I don't know

Last Working Version

_No response_

Claude Code Version

v2.0.61

Platform

Other

Operating System

Windows

Terminal/Shell

IntelliJ IDEA terminal

Additional Information

Workaround: Replace * with {placeholder} syntax in markdown files.
Example: application-{env}.yml instead of application-*.yml

View original on GitHub ↗

4 Comments

github-actions[bot] · 10 months ago

Found 3 possible duplicate issues:

  1. https://github.com/anthropics/claude-code/issues/13041
  2. https://github.com/anthropics/claude-code/issues/13016
  3. https://github.com/anthropics/claude-code/issues/13299

This issue will be automatically closed as a duplicate in 3 days.

  • If your issue is a duplicate, please close it and 👍 the existing issue instead
  • To prevent auto-closure, add a comment or 👎 this comment

🤖 Generated with Claude Code

AdzerKI · 10 months ago

The plugin's ClaudeFilePathFilter throws InvalidPathException on Windows
when terminal output contains path-like strings followed by a colon.

Examples that crash:

  • "checking helper/:" → tries to resolve "helper/:"
  • "looking at fallback/:" → tries to resolve "fallback/:"

Cause: Regex captures the colon as part of the path, but ":" is illegal
in Windows paths (except for drive letters like "C:").

Fix: Strip trailing punctuation (: , . ; !) before path resolution,
or wrap Path.resolve() in try-catch for InvalidPathException.

timgu0 contributor · 10 months ago

Hi! Sorry about the bug. This should be fixed on 0.1.14-beta.

github-actions[bot] · 10 months ago

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.