Bug 455078

Summary: Can't format unsaved JSON file
Product: [Applications] kate Reporter: Nicolas Fella <nicolas.fella>
Component: applicationAssignee: KWrite Developers <kwrite-bugs-null>
Status: RESOLVED FIXED    
Severity: normal    
Priority: NOR    
Version First Reported In: Git   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Nicolas Fella 2022-06-09 12:45:43 UTC
STEPS TO REPRODUCE
1. Create a new file 
2. Paste some JSON
3. Invoke Tools > JSON format full file

OBSERVED RESULT
An error box with "Malformed URL ."

EXPECTED RESULT
The file content is formatted

SOFTWARE/OS VERSIONS
KDE Frameworks Version: master
Qt Version: 5.15.4-kde
Comment 1 Waqar Ahmed 2022-08-11 14:53:16 UTC
Git commit 0f03e8c5c2bd2aff273ad07661e665c302c8ab94 by Waqar Ahmed.
Committed on 11/08/2022 at 14:52.
Pushed by waqar into branch 'master'.

ExternalTools: JsonFormat read input from stdin

This allows us to use it with untitled files as well

M  +3    -1    addons/externaltools/externaltools-config/json_format_full_file

https://invent.kde.org/utilities/kate/commit/0f03e8c5c2bd2aff273ad07661e665c302c8ab94
Comment 2 Waqar Ahmed 2022-08-12 12:09:45 UTC
Git commit 414d7002f9aeda7c57e6c3279f184e21916a9afe by Waqar Ahmed.
Committed on 12/08/2022 at 12:09.
Pushed by waqar into branch 'release/22.08'.

ExternalTools: JsonFormat read input from stdin

This allows us to use it with untitled files as well
(cherry picked from commit 0f03e8c5c2bd2aff273ad07661e665c302c8ab94)

M  +3    -1    addons/externaltools/externaltools-config/json_format_full_file

https://invent.kde.org/utilities/kate/commit/414d7002f9aeda7c57e6c3279f184e21916a9afe