An error occurs when auto-formatting a python file. The file is not auto-formatted.main Alexey wrote: ↑04.03.2026 16:45 when plugin error occurs, usually it is a plugin crash, so see the Console panel for crash (red) lines there ...
When auto-formatting a C++ file, no errors occur at all. The file is not auto-formatted. However, the status bar displays [AStyle (C++)] Cannot format text.
The content of the cuda__astyle_format.cfg file
Code: Select all
--style=google --indent=spaces=4 --suffix=noneCode: Select all
Traceback (most recent call last):
File "/home/user/.config/cudatext/py/cuda_fmt/__init__.py", line 258, in on_save_pre
run_format(ed_self, func, '['+caption+'] ', True)
~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/user/.config/cudatext/py/cuda_fmt/fmtrun.py", line 210, in run_format
text = do_format(text1)
File "/home/user/.config/cudatext/py/cuda_fmt_python_reindent/__init__.py", line 8, in do_reindent
r.run()
~~~~~^^
File "/home/user/.config/cudatext/py/cuda_fmt_python_reindent/reindent.py", line 203, in run
for _token in tokens:
^^^^^^
File "/usr/lib/python3.14/tokenize.py", line 592, in _generate_tokens_from_c_tokenizer
raise e from None
File "/usr/lib/python3.14/tokenize.py", line 588, in _generate_tokens_from_c_tokenizer
for info in it:
^^
File "<string>", line 70
sys.exit(1)
^
IndentationError: unindent does not match any outer indentation level
ERROR: Exception in CudaText for on_save_pre: IndentationError: unindent does not match any outer indentation level (line 70, offset 16): 'sys.exit(1)'