[Enhancement] /ide should provide helpful hints when detecting WSL/Windows path format mismatches
Description
When the /ide command detects an IDE with a workspace path that doesn't match the current working directory, it currently only reports the mismatch without providing context or suggestions. In cases where the paths are actually the same directory but in different formats (WSL vs Windows), this can be confusing for users.
Current Behavior
Found 1 other running IDE(s). However, their workspace/project directories do not match the current cwd.
• JetBrains Rider: /mnt/c/projects/myproject
Context:
- Current working directory:
C:\projects\myproject(Windows format) - Rider workspace:
/mnt/c/projects/myproject(WSL format) - These are the same directory, just in different path formats
Desired Behavior
When Claude Code detects a path mismatch that appears to be the same directory in different formats (WSL /mnt/c/ vs Windows C:\), it should recognize this pattern and provide actionable guidance:
Found 1 other running IDE(s) with path format mismatch:
• JetBrains Rider: /mnt/c/projects/myproject
ℹ️ This appears to be the same directory in WSL format.
To fix this mismatch, go to your IDE settings:
JetBrains IDEs:
Settings → Tools → Claude Code → Path format
Change to use Windows-style paths, then restart the IDE
See: https://github.com/anthropics/claude-code/issues/3932
Benefits
- Reduces confusion: Users immediately understand the issue isn't a real workspace mismatch
- Provides solution: Direct guidance on how to fix the configuration
- Reduces duplicate bug reports: Issues #3932, #20300, and #1232 show this is a recurring confusion point
- Better UX: Turns an error message into a helpful troubleshooting step
Related Issues
- #3932 - Original report with solution (closed)
- #20300 - Duplicate report (closed)
- #1232 - WSL detection issues (closed)
Implementation Notes
The hint detection could check if:
- One path starts with
/mnt/c/or similar WSL mount point - The other path starts with
C:\or similar Windows drive letter - The remaining path components match when normalized
This would apply to JetBrains IDEs (IntelliJ, Rider, PyCharm, etc.) and potentially other IDEs that might report WSL-formatted paths on Windows.
This issue has 4 comments on GitHub. Read the full discussion on GitHub ↗