[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#784406: kdevelop does not call selected source formatter



Package: kdevelop
Version: 4:4.7.0-1
Severity: normal

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.

-- System Information:
Debian Release: 8.0
  APT prefers testing-updates
  APT policy: (500, 'testing-updates'), (500, 'testing'), (50, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 4.0.0-trunk-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages kdevelop depends on:
ii  kde-runtime                        4:4.14.2-2
ii  kdevelop-data                      4:4.7.0-1
ii  kdevplatform8-libs                 1.7.0-2
ii  libc6                              2.19-18
ii  libgcc1                            1:4.9.2-10
ii  libkasten2controllers2             4:4.14.2-1
ii  libkasten2core2                    4:4.14.2-1
ii  libkasten2okteta1controllers1abi1  4:4.14.2-1
ii  libkasten2okteta1core1             4:4.14.2-1
ii  libkasten2okteta1gui1              4:4.14.2-1
ii  libkcmutils4                       4:4.14.2-5
ii  libkdeclarative5                   4:4.14.2-5
ii  libkdecore5                        4:4.14.2-5
ii  libkdeui5                          4:4.14.2-5
ii  libkio5                            4:4.14.2-5
ii  libknewstuff3-4                    4:4.14.2-5
ii  libkparts4                         4:4.14.2-5
ii  libktexteditor4                    4:4.14.2-5
ii  libplasma3                         4:4.14.2-5
ii  libprocessui4a                     4:4.11.13-2
ii  libqjson0                          0.8.1-3
ii  libqt4-dbus                        4:4.8.6+git64-g5dc8b2b+dfsg-3
ii  libqt4-declarative                 4:4.8.6+git64-g5dc8b2b+dfsg-3
ii  libqt4-help                        4:4.8.6+git64-g5dc8b2b+dfsg-3
ii  libqt4-network                     4:4.8.6+git64-g5dc8b2b+dfsg-3
ii  libqt4-script                      4:4.8.6+git64-g5dc8b2b+dfsg-3
ii  libqtcore4                         4:4.8.6+git64-g5dc8b2b+dfsg-3
ii  libqtgui4                          4:4.8.6+git64-g5dc8b2b+dfsg-3
ii  libqtwebkit4                       2.3.4.dfsg-3
ii  libstdc++6                         4.9.2-10
ii  libsublime8                        1.7.0-2
ii  libthreadweaver4                   4:4.14.2-5

Versions of packages kdevelop recommends:
ii  g++   4:4.9.2-2
ii  gcc   4:4.9.2-2
ii  gdb   7.7.1+dfsg-5
ii  make  4.0-8.1

Versions of packages kdevelop suggests:
ii  cmake          3.0.2-1
pn  kapptemplate   <none>
pn  kdevelop-l10n  <none>
pn  ninja-build    <none>

-- no debconf information


Reply to: