https://bugs.kde.org/show_bug.cgi?id=418458

            Bug ID: 418458
           Summary: Formatting an Unsaved File results in xmllint usage
                    being printed
           Product: kate
           Version: 19.12.2
          Platform: Ubuntu Packages
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: syntax
          Assignee: [email protected]
          Reporter: [email protected]
  Target Milestone: ---

SUMMARY

It looks like the filename is passed as paramater to xmllint. If there is no
filename passed, xmllint prints the usage


STEPS TO REPRODUCE
1. Open Kate, edit some text (Don't save)
2. Tools -> External Tools -> Tools -> Format XML File


OBSERVED RESULT

3. See your text being replaced by "Usage : /usr/bin/xmllint [options] XMLfiles
...


EXPECTED RESULT

At least an Error message. I think it is possible to pipe content to xmllint,
this would solve the problem

Another solution wold be to save the content to a tmp-file


SOFTWARE/OS VERSIONS

KDE Plasma Version: 5.18.2
KDE Frameworks Version: 5.67.0
Qt Version: 5.12.4

ADDITIONAL INFORMATION

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to