Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [cdt-dev] CppStyle clangformat

Hi Jonah,

unfortunately, I cannot reproduce it. If I enable "project specific settings", then set formatter to builtin and then later disable "project specific settings" again then the formatter is automatically reset to workspace settings (clang-format) in the dialog. So I don't know how I managed to get my project into this weird state.

   Axel

Am Di., 14. Dez. 2021 um 13:30 Uhr schrieb Jonah Graham <jonah@xxxxxxxxxxxxxxxx>:
Hi Axel,

You are certainly describing a bug. Please can you provide step by step to get it back into the wrong state and file a bug report. 

Jonah 

On Tue., Dec. 14, 2021, 03:55 Axel Müller, <axel.carl.mueller@xxxxxxxxx> wrote:
I found the problem and got it working.
I have workspace settings for the formatter to use CppStyle (clang-format) and no project specific settings. However, in my project in the settings C/C++ General->Formatter the parameter "Code Formatter" was set to built-tin. When I temporarily enabled project specific settings and changed this parameter to CppStyle (clang-format) and then disabled project specific settings again, clang-format is now used.
That is a little bit weird. I expected when "Enable project specific settings" is not enabled then all parameters in this tab are ignored and taken from the workspace settings.

   Axel


Am Mo., 13. Dez. 2021 um 17:39 Uhr schrieb Axel Müller <axel.carl.mueller@xxxxxxxxx>:
The same here with the 2021-12 release. I will try to reproduce it with a new project.

Axel

Jonah Graham <jonah@xxxxxxxxxxxxxxxx> schrieb am Mo., 13. Dez. 2021, 16:26:
Hi Axel,

I am not sure what might have changed in 2021-06 that would cause this to stop working. Not much changed in CDT in that window, and I assume the same for CppStyle. Perhaps something in the Eclipse Platform changed that is causing a conflict/change or processing order/etc.

I gave it a quick try with 2021-12 (released last week) and clang-format is being run. 

Can you provide additional details / steps to reproduce in a bug report? https://bugs.eclipse.org/bugs/enter_bug.cgi?product=CDT

Thanks
Jonah





~~~
Jonah Graham
Kichwa Coders
www.kichwacoders.com


On Mon, 13 Dec 2021 at 05:38, Axel Müller <axel.carl.mueller@xxxxxxxxx> wrote:
Hi,

I am using for many years the CppStyle plugin to use clang-format as external formatter. It seems since Eclipse 2021/6 the external formatter is not called anymore but the internal formatter is used. Did anyone else experience the same problem?

Axel
_______________________________________________
cdt-dev mailing list
cdt-dev@xxxxxxxxxxx
To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/cdt-dev
_______________________________________________
cdt-dev mailing list
cdt-dev@xxxxxxxxxxx
To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/cdt-dev
_______________________________________________
cdt-dev mailing list
cdt-dev@xxxxxxxxxxx
To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/cdt-dev
_______________________________________________
cdt-dev mailing list
cdt-dev@xxxxxxxxxxx
To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/cdt-dev

Back to the top