Nothing Special   »   [go: up one dir, main page]

Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Git error in plandex-server: Fatal: unable to write new_index file #202

Open
notatestuser opened this issue Oct 15, 2024 · 4 comments
Open

Comments

@notatestuser
Copy link

Plandex errors out at the end of "tell" when git has not been init'ed in the current working dir. This seems a bit strange as, although git is the most popular scm on the block, a tool like plandex should not require that we use it.

@danenania
Copy link
Contributor

It's not intended that git be required so this sounds like a bug. Could you paste in the error message?

@notatestuser
Copy link
Author

I've been trying to reproduce it for about an hour without luck. I'll let you know if it appears again, but for context, it was on a repo where I had just deleted .git before running plandex.

@notatestuser notatestuser changed the title Git is expected Git is expected? Oct 16, 2024
@notatestuser
Copy link
Author
notatestuser commented Oct 16, 2024

Caught it. It happened in the final stages of a tell.

 🏗  Build incomplete
📄 app/components/BalanceDisplay.tsx ⠹ | 📄 app/lib/web-service.ts ✅ | 📄 package.json ✅

🚨 Server error
  → Stream error
    → Failed to commit
      → Error committing files to git repository for dir
        → /plandex-server/orgs/40173f9d-21a1-xxxx-xxxx-eab753989xxx/plans/3cbd4902-e2b2-xxxx-xxxx-a94fe621axxx, err
          → Exit status 128, output
            → Fatal: unable to write new_index file

And now I can see that it's trying to use git within plandex-server, so my original suspicion that it was making git necessary within the project dir seems to have been wrong.

If it matters, I'm using plandex 1.1.1 on macOS 15.0.1 with Apple Git-154.

@notatestuser notatestuser changed the title Git is expected? Git error in plandex-server: Fatal: unable to write new_index file Oct 16, 2024
@danenania
Copy link
Contributor

Thanks @notatestuser, this is a known race condition issue on the server and a fix is slotted for the next release. You can usually work around it by using plandex rewind and plandex continue to retry.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants