codelite icon indicating copy to clipboard operation
codelite copied to clipboard

[Bug]: Using Astyle as a styler works but screen flashes.

Open shadoww1028 opened this issue 1 year ago • 0 comments

What happened?

If you hate Clang-format (it is no longer allowed near my code) and use Astyle still with the 17.9 version of codelite on Linux mint 21.3 the screen flashes every time. More of an annoyance.

I have a bash file in my home directory: #!/bin/bash

/usr/bin/astyle --style=allman --indent-classes --indent-namespaces --indent-switches --indent-preproc-block --keep-one-line-blocks --fill-empty-lines < "$1" > /home/shadoww/astyletmp cat /home/shadoww/astyletmp

That formats the file, The formatter setup:

A tool to format C/C++/Java/JavaScript/JSON/Objective-C/Protobuf/C# code

Command to execute:

sh /home/shadoww/AStyle.sh "$(CurrentFileRelPath)"

This way I can still use Astyle. This bug is more of an annoyance then anything. So far loving 17.9 on mint (Don't use on arch!)

Version

Other

Operating system

Linux

Steps to reproduce

No response

Relevant log output

No response

shadoww1028 avatar Apr 24 '24 03:04 shadoww1028