eranif / codelite

A multi purpose IDE specialized in C/C++/Rust/Python/PHP and Node.js. Written in C++
https://codelite.org
GNU General Public License v2.0
2.13k stars 455 forks source link

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

Open shadoww1028 opened 5 months ago

shadoww1028 commented 5 months ago

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