Skip to content

Conversation

dbarnett
Copy link
Contributor

Prints user-friendly errors if a formatter fails an IsAvailable call (also allowing other formatters to still be checked), and fixes a particular "type mismatch" error encountered on vim versions older than
7.4.1546.

Fixes #155.

Prints user-friendly errors if a formatter fails an IsAvailable call
(also allowing other formatters to still be checked), and fixes a
particular "type mismatch" error encountered on vim versions older than
7.4.1546.

Fixes #155.
@dbarnett dbarnett force-pushed the isavailable_error branch from ec60f46 to b363080 Compare July 29, 2020 04:06
@agriffis
Copy link
Contributor

LGTM

@dbarnett dbarnett merged commit 0ab5420 into master Jul 29, 2020
@artasparks
Copy link
Contributor

Postfacto LGTM =)

\ !empty(get(b:, 'codefmt_formatter'))
if !empty(get(b:, 'codefmt_formatter'))
return 1
endfor
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wut. I somehow used :endfor instead of :endif here without seeing any test failures. Gotta fix that and check what's up with test coverage…

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh, because the tests usually disable it with #SetWhetherToPerformIsAvailableChecksForTesting(). 🤦

Stay tuned for fix.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed in 9346c38.

dbarnett added a commit that referenced this pull request Sep 9, 2020
@dbarnett dbarnett deleted the isavailable_error branch March 27, 2021 20:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

when I use formatcode clang-format it shows such errors
3 participants