#784406 kdevelop does not call selected source formatter

Package:
kdevelop
Source:
kdevelop
Description:
integrated development environment for C/C++ and other languages
Submitter:
Sten Heinze
Date:
2015-05-06 05:18:14 UTC
Severity:
normal
#784406#5
Date:
2015-05-06 05:17:03 UTC
From:
To:
Dear Maintainer,

I try to use KDevelop with a custom source formatter. So in the "Configure KDevelop..." dialog
in the section "Source Formatter" I created a new style "clang-formatter" with the following
command line:

clang-format-3.5 -style=file

I have a .clang-format file in the base folder of the project (to test -style=LLVM should work).

Using this command on the command line works:

clang-format-3.5 -style=file < input.c > output.c

If I run KDevelop from the terminal I can see the following output when calling "Reformat Source":

/bin/sh: 1: indent: not found
kdevelop(6849) CustomScriptPlugin::formatSourceWithStyle: indent returned empty text for style "GNU_indent_GNU" "indent"

indent is another custom formatter (that comes with KDevelop) that still seems to be called even
though I selected my formatter and saving this.

It would be great if KDevelop would actually call the formatter that I selected.