-
Couldn't load subscription status.
- Fork 22
formatting failure msg #651
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
Conversation
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
|
saga4 seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account. You have signed the CLA already but the status is still pending? Let us recheck it. |
PR Code Suggestions ✨Explore these optional code suggestions:
|
PR Type
Enhancement
Description
Log warning when formatter command not found
Catch FileNotFoundError during diff formatting
Catch FileNotFoundError in main formatting call
Return original code if formatter missing
Diagram Walkthrough
flowchart LR A["apply_formatter_cmds"] -->|formatter missing| B["Log warning"] B --> C{"exit_on_failure?"} C -->|yes| D["Raise exception"] C -->|no| E["Continue without formatting"] F["format_code: diff stage"] -->|apply_formatter_cmds| G{"success?"} G -->|no| H["Log warning & return original"] G -->|yes| I["Generate & check diff"] J["format_code: main stage"] -->|apply_formatter_cmds| K{"success?"} K -->|no| H K -->|yes| L["Log debug & return formatted code"]File Walkthrough
formatter.py
Handle missing formatter with loggingcodeflash/code_utils/formatter.py