plugin CudaFormatter + its formatters

Plugins for SynWrite and CudaText...
main Alexey
Posts: 3004
Joined: 25.08.2021 18:15

Re: plugin CudaFormatter + its formatters

Post by main Alexey »

I handled the exception in CudaFormatter, pls update it from 'plugin / addons manager / update' dialog to 2026.03.07. now it must show OK msg-box, for that wrong indented line 5.
dima8101
Posts: 30
Joined: 28.01.2026 19:30

Re: plugin CudaFormatter + its formatters

Post by dima8101 »

I have updated the plugins. No error appears in the log window. But the error is still there, and it doesn't format. An error window appears:

Formatter gave exception:
unindent does not match any outer indentation level (<tokenize>, line 5)
main Alexey
Posts: 3004
Joined: 25.08.2021 18:15

Re: plugin CudaFormatter + its formatters

Post by main Alexey »

Black-formatter cannot format, when it finds that indents are wrong, so it's valid behavior of Black formatter.
User must fix all indents first.

===

About C++ formatter. New formatter appeared and it is not yet in the Addon-Manager.

https://github.com/CudaText-addons/cuda ... /issues/23

Create a github account (if not yet) and help with the initial testing, pls.
I will test too.
dima8101
Posts: 30
Joined: 28.01.2026 19:30

Re: plugin CudaFormatter + its formatters

Post by dima8101 »

Thank you. Yes, I have an account, and I will join the testing.
dima8101
Posts: 30
Joined: 28.01.2026 19:30

Re: plugin CudaFormatter + its formatters

Post by dima8101 »

Unfortunately, the plugin is not available in the install section. The system has installed clang-format-static-bin
main Alexey
Posts: 3004
Joined: 25.08.2021 18:15

Re: plugin CudaFormatter + its formatters

Post by main Alexey »

clang-formatter is now added to the Addons-Manager 'Install' list, try again.
dima8101
Posts: 30
Joined: 28.01.2026 19:30

Re: plugin CudaFormatter + its formatters

Post by dima8101 »

It work perfectly!
Post Reply