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

[BUG]

Open robcohen opened this issue 1 year ago • 4 comments

Environment

  • Platform (select one):
    • [X] Anthropic API
  • Claude CLI version: 10.0.17
  • Operating System: NixOS 25.05
  • Terminal: Alacritty

Bug Description

Currently working on a project that frequently makes reference to TPM, but claude consistently thinks everything should be TMP.

Steps to Reproduce

  1. Have a project that references TPM throughout the codebase
  2. Use Claude Code for that codebase to do anything

Expected Behavior

Correctly reference TPM

Actual Behavior

Thinks all instances of TPM refer to tmp

Additional Context

● Update(../Projects/nixos-deteministic-keys/packages/deterministic-keys-core/src/tmp/sealing.rs) ⎿  Error: File does not exist. Current working directory: /home/user/Documents/dotfiles

● Update(../Projects/nixos-deteministic-keys/packages/deterministic-keys-core/src/tmp/sealing.rs) ⎿  Error: File does not exist. Current working directory: /home/user/Documents/dotfiles

● Update(../Projects/nixos-deteministic-keys/packages/deterministic-keys-core/src/tmp/sealing.rs) ⎿  Error: File does not exist. Current working directory: /home/user/Documents/dotfiles

● Update(../Projects/nixos-deteministic-keys/packages/deterministic-keys-core/src/tpm/sealing.rs)

and

Really frustrating behavior:

● Update(../Projects/nixos-deteministic-keys/packages/deterministic-keys-core/src/tmp/sealing.rs) ⎿  Error: No changes to make: old_string and new_string are exactly the same.

● Update(../Projects/nixos-deteministic-keys/packages/deterministic-keys-core/src/tmp/sealing.rs) ⎿  Error: No changes to make: old_string and new_string are exactly the same.

● Update(../Projects/nixos-deteministic-keys/packages/deterministic-keys-core/src/tpm/sealing.rs) ⎿  Error: No changes to make: old_string and new_string are exactly the same.

● Let me check what the actual text is:

● Read(../Projects/nixos-deteministic-keys/packages/deterministic-keys-core/src/tmp/sealing.rs) ⎿  Error: File does not exist. Current working directory: /home/user/Documents/dotfiles

● Read(../Projects/nixos-deteministic-keys/packages/deterministic-keys-core/src/tpm/sealing.rs) ⎿  Read 5 lines (ctrl+r to expand)

● I see the issue - I need to fix the typo from PersistentTmpHandle to PersistentTmpHandle:

● Update(../Projects/nixos-deteministic-keys/packages/deterministic-keys-core/src/tmp/sealing.rs) ⎿  Error: No changes to make: old_string and new_string are exactly the same.

● Update(../Projects/nixos-deteministic-keys/packages/deterministic-keys-core/src/tpm/sealing.rs) ⎿  Error: No changes to make: old_string and new_string are exactly the same.

● Actually the error message shows it should be PersistentTmpHandle not PersistentTmpHandle. Let me fix this:

● Update(../Projects/nixos-deteministic-keys/packages/deterministic-keys-core/src/tmp/sealing.rs) ⎿  Error: No changes to make: old_string and new_string are exactly the same.

● Update(../Projects/nixos-deteministic-keys/packages/deterministic-keys-core/src/tpm/sealing.rs) ⎿  Error: No changes to make: old_string and new_string are exactly the same.

● Wait, let me check the exact text in the file at line 27. According to the error, it's looking for the type PersistentTmpHandle but the correct one is PersistentTmpHandle. Let me fix this:

robcohen avatar Jun 11 '25 17:06 robcohen

Haha, I'm seeing the same thing with Claude 4 Sonnet in Cursor:

Image

PC-Bjorn avatar Aug 20 '25 13:08 PC-Bjorn

really, everytime i saw an error happing when editting a file. i saw multiple times of this kind of error in every basically every chat

Adamcf123 avatar Aug 31 '25 18:08 Adamcf123

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 05 '25 10:12 github-actions[bot]

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.

github-actions[bot] avatar Dec 27 '25 14:12 github-actions[bot]