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

filecreatortool called with wrong JSON #217

Open
raykoenz opened this issue Dec 19, 2024 · 1 comment · May be fixed by #227
Open

filecreatortool called with wrong JSON #217

raykoenz opened this issue Dec 19, 2024 · 1 comment · May be fixed by #227

Comments

@raykoenz
Copy link

raykoenz commented Dec 19, 2024

On every try I get a double nesting of files which causes the filecreatortool to not work.

Tool used: filecreatortool │ │
│ 📥 Input: { │
│ "files": { │
│ "files": [

In the end it fails with
📤 Result: {'created_files': 0, 'failed_files': 1, 'results': [{'path': None, 'success': False, 'error': "'path'"}]}

Maybe the nesting ist not the real cause but catched my eye first.

jasonkneen added a commit to jasonkneen/claude-engineer that referenced this issue Jan 14, 2025
Fixes Doriandarko#217

Update `filecreatortool` to handle JSON input correctly without double nesting.

* Add logic to check for and handle double nesting in the `files` key.
* Ensure the `files` key can accept both a single object and an array of objects.
* Adjust the return statement formatting for consistency.

---

For more details, open the [Copilot Workspace session](https://copilot-workspace.githubnext.com/Doriandarko/claude-engineer/issues/217?shareId=XXXX-XXXX-XXXX-XXXX).
@jasonkneen jasonkneen linked a pull request Jan 14, 2025 that will close this issue
@Partyschnitzel
Copy link

It's still not working. Every time filecreatortool tries to create a file on my Mac it fails with path error.

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

Successfully merging a pull request may close this issue.

2 participants