claude-code icon indicating copy to clipboard operation
claude-code copied to clipboard

[BUG] IDE integration fails with "workspace directories do not match" error despite identical paths

Open ANogin opened this issue 4 months ago • 4 comments

Bug #4428 on MacOS is still a problem, please reopen that one.

ANogin avatar Aug 12 '25 06:08 ANogin

Found 3 possible duplicate issues:

  1. https://github.com/anthropics/claude-code/issues/4428
  2. https://github.com/anthropics/claude-code/issues/1411
  3. https://github.com/anthropics/claude-code/issues/5096

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

github-actions[bot] avatar Aug 12 '25 06:08 github-actions[bot]

still exists

videni avatar Aug 13 '25 01:08 videni

This issue has been inactive for 30 days. If the issue is still occurring, please comment to let us know. Otherwise, this issue will be automatically closed in 30 days for housekeeping purposes.

github-actions[bot] avatar Dec 03 '25 10:12 github-actions[bot]

Still an issue - the problem arises especially when I open the VSCode/Cursor folder with a .code-workspace file in a folder or monorepo that includes multiple repositories or submodules. In those cases, Claude code mistakes the repositories as the "active directory", while the folder I actually have open on the IDE is the monorepo that includes everything else.

Steps to reproduce:

  • Make a folder on Cursor and clone two or more repositories in there. Let's call that the monofolder.
  • Create a .code-workspace file that lists the paths and names of those repositories in the monofolder.
  • Open this monofolder in "workspace" mode using the file you just generated. The titlebar should say "monofolder-name (Workspace)". Keep this IDE open.
  • Open your terminal, and change your directory to the monofolder.
  • Open Claude Code via the claude command.
  • Use the /ide command to connect to the IDE you just opened. => Claude Code will complain that the paths are mismatching.

tmorshed avatar Dec 10 '25 22:12 tmorshed