rajtrivedi2001 / rest-client

Automatically exported from code.google.com/p/rest-client
Apache License 2.0
0 stars 0 forks source link

Auto-Indent doesn't work #111

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Enable auto-indent in the settings
2. Retrieve a JSON or XML file

What is the expected output? What do you see instead?
Indented JSON or XML, Unindented JSON or XML

What version of the product are you using? On what operating system?
rest-client-gui-2.3-with-dependencies

Original issue reported on code.google.com by challgren on 31 May 2010 at 10:12

GoogleCodeExporter commented 8 years ago
COnfirmed this is still happening in rest-client-gui-2.3.3-with-dependencies

Original comment by nathan.s...@gmail.com on 23 Mar 2011 at 7:54

GoogleCodeExporter commented 8 years ago
Can you tell me what is the Content-Type value in the response? The XML and 
JSON indenting works by parsing the Content-Type value in the response.

Original comment by subwiz on 26 Mar 2011 at 12:39

GoogleCodeExporter commented 8 years ago
I am experiencing the same issue using RESTClient. I am using the Mac packaged 
version (2.3). The Content-Type of the response in my case is 
"application/vnd.mail+xml".

Original comment by mic...@gmail.com on 16 May 2011 at 7:38

GoogleCodeExporter commented 8 years ago
Try it out with the new version (Mac packaged version is a old version)

Original comment by subwiz on 17 May 2011 at 2:46

GoogleCodeExporter commented 8 years ago
@subwiz: Thank you for your suggestion, I was not aware that the Mac packaged 
version was out-of-sync with the HEAD.
I just tried downloaded the latest version (including dependencies), but alas 
the bug/problem persists. For the sake of testing, I have attached the request 
/ response and attached them here.

Original comment by mic...@gmail.com on 19 May 2011 at 11:26

Attachments:

GoogleCodeExporter commented 8 years ago
Thanks for attaching the request & response. I will work on this coming weekend.

Original comment by subwiz on 19 May 2011 at 3:01

GoogleCodeExporter commented 8 years ago
This has been fixed in the trunk version. You may download the development 
version from here:

http://dl.dropbox.com/u/2505020/restclient-ui-2.4-SNAPSHOT-jar-with-dependencies
.jar

Please verify on your side.

Original comment by subwiz on 21 May 2011 at 3:58

GoogleCodeExporter commented 8 years ago
@subwiz: I just tried the snapshot you linked to, and I can confirm that, for 
my configuration anyway, the aforementioned request now is correctly auto 
indented.
Thanks for the quick response and fix, that is awesome.

Original comment by mic...@gmail.com on 21 May 2011 at 4:10

GoogleCodeExporter commented 8 years ago
Yes this seems to work but Auto syntax coloring is not working.

Original comment by challgren on 21 May 2011 at 4:51

GoogleCodeExporter commented 8 years ago

Original comment by subwiz on 23 May 2011 at 3:27

GoogleCodeExporter commented 8 years ago
The above SNAPSHOT release fails to auto-format for the following content-type: 
"application/vnd.com.muxlab.vitex.devices+json; version=1.0"

I am expecting it to auto-format the response as JSON.

Original comment by cow...@bbs.darktech.org on 9 Aug 2011 at 4:00

GoogleCodeExporter commented 8 years ago
r509 has the fix for content-type 
"application/vnd.com.muxlab.vitex.devices+json; version=1.0"

Original comment by subwiz on 15 Aug 2011 at 1:06

GoogleCodeExporter commented 8 years ago
r510 has the correct implementation.

Original comment by subwiz on 15 Aug 2011 at 1:35

GoogleCodeExporter commented 8 years ago
@subwiz: The +json fix works great. Thank you!

Original comment by cow...@bbs.darktech.org on 15 Aug 2011 at 9:01

GoogleCodeExporter commented 8 years ago

Original comment by subwiz on 10 Apr 2012 at 1:25