Description
Describe the bug
I'm playing with v1.4.2, there seems still some unexpected behaviors, take src/backend/utils/mmgr/mcxt.c as an example, after format with the extension, there are some format issues, e.g. function return void *
changed to void *
, it seems that in runPgindentInternal
, you are downloading typedefs.list from internet because pg_bsd_indent directory doesn't contains it.
I see you comment that to use pg_bsd_indent directly instead of pgindent for some reason, but in my case(out of tree build) the issue happened. The following command works in my case, hope this can give you some hints.
src/tools/pgindent/pgindent --indent /home/postgres/build/src/tools/pg_bsd_indent/pg_bsd_indent /home/postgres/postgres/src/backend/utils/mmgr/mcxt.c
I'd suggest keeping the PgindentPath setting, when user set it, call pgindent instead of pg_bsd_indent directly, what do you think? @ashenBlade