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

Incorrect Project Context When Multiple Projects Are Open in PyCharm

Open GratefulDave opened this issue 8 months ago • 0 comments

Bug Description I have multiple projects open in Pycharm. If I am working in Project A and have claude running a task in the terminal, if I open project B while I am waiting for the task to complete - Claude is creating new files in Project B and not updating Project A correctly. It appears that Claude Code is assuming all open windows belong to the same project.

Environment Info

  • Platform: macos
  • Terminal: pycharm
  • Version: 1.0.3
  • Feedback ID: 3e32d9a9-22a9-4bb7-b27e-6a12fbca09ee

Errors

[{"error":"Error: Command failed: security find-generic-password -a $USER -w -s \"Claude Code\"\nsecurity: SecKeychainSearchCopyNext: The specified item could not be found in the keychain.\n\n    at genericNodeError (node:internal/errors:983:15)\n    at wrappedFn (node:internal/errors:537:14)\n    at checkExecSyncError (node:child_process:882:11)\n    at execSync (node:child_process:954:15)\n    at cG (file:///Users/username/.nvm/versions/node/v23.10.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:644:3513)\n    at file:///Users/username/.nvm/versions/node/v23.10.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:574:15313\n    at Q (file:///Users/username/.nvm/versions/node/v23.10.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:532:13335)\n    at sR1 (file:///Users/username/.nvm/versions/node/v23.10.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:574:14562)\n    at aI (file:///Users/username/.nvm/versions/node/v23.10.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:574:14179)\n    at FU2 (file:///Users/username/.nvm/versions/node/v23.10.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:1965:20997)","timestamp":"2025-05-28T06:21:12.896Z"},{"error":"Error: File content (46867 tokens) exceeds maximum allowed tokens (25000). Please use offset and limit parameters to read specific portions of the file, or use the GrepTool to search for specific content.\n    at ww6 (file:///Users/username/.nvm/versions/node/v23.10.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:1351:13772)\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async Object.call (file:///Users/username/.nvm/versions/node/v23.10.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:1351:12571)\n    at async XA5 (file:///Users/username/.nvm/versions/node/v23.10.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:1812:9988)\n    at async cX1 (file:///Users/username/.nvm/versions/node/v23.10.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:1812:7818)\n    at async uF1 (file:///Users/username/.nvm/versions/node/v23.10.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:1423:1342)\n    at async CA5 (file:///Users/username/.nvm/versions/node/v23.10.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:1812:7193)\n    at async FA5 (file:///Users/username/.nvm/versions/node/v23.10.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:1812:7050)\n    at async ht (file:///Users/username/.nvm/versions/node/v23.10.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:1812:6097)\n    at async OZ (file:///Users/username/.nvm/versions/node/v23.10.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:2439:1933)","timestamp":"2025-05-28T06:36:11.984Z"},{"error":"Error: File content (46867 tokens) exceeds maximum allowed tokens (25000). Please use offset and limit parameters to read specific portions of the file, or use the GrepTool to search for specific content.\n    at ww6 (file:///Users/username/.nvm/versions/node/v23.10.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:1351:13772)\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async Object.call (file:///Users/username/.nvm/versions/node/v23.10.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:1351:12571)\n    at async XA5 (file:///Users/username/.nvm/versions/node/v23.10.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:1812:9988)\n    at async cX1 (file:///Users/username/.nvm/versions/node/v23.10.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:1812:7818)\n    at async uF1 (file:///Users/username/.nvm/versions/node/v23.10.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:1423:1342)\n    at async CA5 (file:///Users/username/.nvm/versions/node/v23.10.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:1812:7193)\n    at async FA5 (file:///Users/username/.nvm/versions/node/v23.10.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:1812:7050)\n    at async ht (file:///Users/username/.nvm/versions/node/v23.10.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:1812:6097)\n    at async ht (file:///Users/username/.nvm/versions/node/v23.10.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:1812:6667)","timestamp":"2025-05-28T06:37:50.372Z"},{"error":"Error: File content (46867 tokens) exceeds maximum allowed tokens (25000). Please use offset and limit parameters to read specific portions of the file, or use the GrepTool to search for specific content.\n    at ww6 (file:///Users/username/.nvm/versions/

Note: Error logs were truncated.

GratefulDave avatar May 28 '25 06:05 GratefulDave