Skip to content

Conversation

@jeroenvandijk
Copy link
Contributor

(Rebased version of #546)

Fixes #523

Most of the code was generated by Claude Sonnet 3.7 and clojure-mcp*

I've reviewed the code, improved it slightly, removed unnecessary whitespace changes, and manually tested it on the https://github.com/jeroenvandijk/clojure-polylith-realworld-example-app/ project, see screenshots below.

Corrupt file

Screenshot 2025-05-28 at 17 38 52

Empty file

Screenshot 2025-05-28 at 17 39 29

I believe the code is somewhat in the style of the rest of the Polylith code. Please note that I have considered creating a PR before without the help of AI, but because of my relative unfamiliarity with the project I didn't find a fix that time. So Claude helped me find a solution here, but I don't know if this is the best way to go about it. Since most of the code was generated with AI, it is also ok if you decide to fully ignore this PR.

(*) See Claude chat here. I used Claude Sonnet 3.7. With Sonnet 4.0 I received rate limit errors, even with a Pro account. The attached project_summary.md was generated in a different chat.

- Add additional assertion for empty file
- Add test for corrupt file
- Rename test namespace
@tengstrand
Copy link
Collaborator

Replaced by PR #548

@tengstrand tengstrand closed this Jun 2, 2025
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 this pull request may close these issues.

reporting not helpful for obscure errors

2 participants