| Summary: | Reformat Source does not work with configuration: KDevelop:kdev_format_source | ||
|---|---|---|---|
| Product: | [Applications] kdevelop | Reporter: | Hubiao Yang <h.yang> |
| Component: | All editors | Assignee: | kdevelop-bugs-null |
| Status: | RESOLVED NOT A BUG | ||
| Severity: | normal | CC: | anton, h.yang |
| Priority: | NOR | ||
| Version First Reported In: | 4.7.0 | ||
| Target Milestone: | --- | ||
| Platform: | Kubuntu | ||
| OS: | Linux | ||
| Latest Commit: | Version Fixed/Implemented In: | ||
| Sentry Crash Report: | |||
fix your settings:
=========format_source========
uncrustify -l CPP -f ${TMPFILE} -c uncrustify.cfg -o ${TMPFILE}
|
When I configure Kdevelop to use Source formatter – Custom Script Formatter - KDevelop:kdev_format_source, it has no effect when I click Edit – Reformat source. It seems may be the kdev_format_source is not called. I only have this problem under Kubuntu 14.04. For Kubuntu 12.04 and Kdevelop 4.6/4.7 and KDevPlatform 4.6/4.7, it is fine. For further information, can anyone tell me how I can get the standard output or warnings? I want to send you more bugs report, but I donot know where to see it. Reproducible: Always Steps to Reproduce: 1. Settings->Configure KDevelop->Source Formatter->Custom Script Formatter, choose KDevelop:kdev_format_source. Save the setting. 2. Prepare "format_source" and " uncrustify configuration" files. Example files are included in Additional infomation 3. Open one of the c code source file. Edit->Reformat Source Actual Results: The code is not reformatted. Expected Results: The code should be refomatted or changed. =========format_source======== # Use uncrustify.cfg as the configuration file uncrustify -f ${ORIGFILE} -c uncrustify.cfg -o ${ORIGFILE}.formatted ======uncrustify.cfg======= # # uncrustify config file for the linux kernel # indent_with_tabs = 2 # 1=indent to level only, 2=indent with tabs input_tab_size = 8 # original tab size # # inter-symbol newlines # nl_do_brace = force # "do {" vs "do \n {" nl_if_brace = force # "if () {" vs "if () \n {" nl_for_brace = force # "for () {" vs "for () \n {" nl_else_brace = force # "else {" vs "else \n {" nl_while_brace = force # "while () {" vs "while () \n {" nl_switch_brace = force # "switch () {" vs "switch () \n {" nl_brace_else = force # "} else" vs "} \n else" - cuddle else nl_fcall_brace = force # "list_for_each() {" vs "list_for_each()\n{" nl_fdef_brace = force # "int foo() {" vs "int foo()\n{" nl_after_return = true nl_after_brace_close = true align_pp_define_span = 1