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

            Bug ID: 436753
           Summary: json format has issues on windows
           Product: kate
           Version: 20.08.1
          Platform: Microsoft Windows
                OS: Microsoft Windows
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: general
          Assignee: kwrite-bugs-n...@kde.org
          Reporter: evren...@hotmail.com
  Target Milestone: ---

SUMMARY
Using this function:
Tools -> External Tools -> Tools -> JSON Format Full File

First issue, jq.exe is not exist in application directory, so it is unusable,
menu item doesn't appear.

Second issue, i installed jq from internet, json format menu item is available,
but it give errors, so i searched internet for how to fix it, found out error
caused by arguments passed to jq, can be changed in Settings -> Configure Kate
-> External Tools -> JSON Format Full File -> Edit -> Arguments:
'.' %{Document:FileName}
i have fixed this issue manually by replacing it with:
"." "%{Document:FileName}"

Third issue is after installing jq on the system, when using json format, jq
uses cr lf as line endings, but kate replaces line endings with cr cr lf, and
broke it. If i choose Unix line endings before saving the resulting text, it
will be saved correctly, otherwise it will save a broken text file (with cr cr
lf endings).

Another minor issue is, jq command should be more accessible on the menu, could
be somewhere in the menu that more easily be seen and used.

SOFTWARE/OS VERSIONS
Windows: 10 x64 Build 20H2

ADDITIONAL INFORMATION
Kate line endings are configured as: DOS/Windows

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

Reply via email to