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

Improve error handling of format functions #9

Open
lucaswerkmeister opened this issue May 13, 2017 · 0 comments
Open

Improve error handling of format functions #9

lucaswerkmeister opened this issue May 13, 2017 · 0 comments
Milestone

Comments

@lucaswerkmeister
Copy link
Owner

The ceylon-format-* functions wipe the region/buffer empty if there is an error (e. g. because the selection was not a valid declaration), because shell-command-on-region replaces the region regardless of error and ceylon format --pipe doesn’t write anything to stdout in that case. It’s easy enough to undo (C-x u), but still not ideal.

Originally part of #8.

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

No branches or pull requests

1 participant