I looked in the forum archive but didn't see much discussion of the json bundle.
I installed it, using the GetBundle bundle, and it does not appear to "do" anything (no menu items) .. even though there is a Language entry for json. In particular, I'd like to "tidy" the json file I'm editing.
What's the secret? :)
-- Owen
On Oct 20, 2008, at 10:44 PM, backspaces wrote:
I looked in the forum archive but didn't see much discussion of the json bundle.
I installed it, using the GetBundle bundle, and it does not appear to "do" anything (no menu items) .. even though there is a Language entry for json. In particular, I'd like to "tidy" the json file I'm editing.
What's the secret? :)
No secret. For now the JSON bundle only contains a language grammar.
If you want to build a tidy command though, I would be happy to check it into the bundle for all to use.
James Edward Gray II
On 21.10.2008, at 17:18, James Gray wrote:
On Oct 20, 2008, at 10:44 PM, backspaces wrote:
I looked in the forum archive but didn't see much discussion of the json bundle.
I installed it, using the GetBundle bundle, and it does not appear to "do" anything (no menu items) .. even though there is a Language entry for json. In particular, I'd like to "tidy" the json file I'm editing.
What's the secret? :)
No secret. For now the JSON bundle only contains a language grammar.
Maybe I missed something but there is a formatter inside of that bundle. I'm using it.
Reformat Document/Selection.tmCommand which works perfectly if the JSON file consists of one single line.
Check http://macromates.com/svn/Bundles/trunk/Bundles/JSON.tmbundle
Cheers,
--Hans
On Oct 21, 2008, at 10:26 AM, Hans-Jörg Bibiko wrote:
On 21.10.2008, at 17:18, James Gray wrote:
On Oct 20, 2008, at 10:44 PM, backspaces wrote:
I looked in the forum archive but didn't see much discussion of the json bundle.
I installed it, using the GetBundle bundle, and it does not appear to "do" anything (no menu items) .. even though there is a Language entry for json. In particular, I'd like to "tidy" the json file I'm editing.
What's the secret? :)
No secret. For now the JSON bundle only contains a language grammar.
Maybe I missed something but there is a formatter inside of that bundle. I'm using it.
Reformat Document/Selection.tmCommand which works perfectly if the JSON file consists of one single line.
Check http://macromates.com/svn/Bundles/trunk/Bundles/JSON.tmbundle
Oops, I stand corrected! Sorry, I didn't know that was there.
James Edward Gray II
James Gray-7 wrote:
Oops, I stand corrected! Sorry, I didn't know that was there.
James Edward Gray II
Hi James, good to meet you .. I've just started your book and am loving it.
Do you think the problem could be the revision difference I mentioned in my previous post (GetBundle shows a json revision considerably lower than the textmate trunk)?
I tried the reformat suggest by Hans but it didn't work, so my guess is that something is wrong with my install .. possibly a getbundle issue.
-- Owen
On Oct 21, 2008, at 11:12 AM, backspaces wrote:
James Gray-7 wrote:
Oops, I stand corrected! Sorry, I didn't know that was there.
James Edward Gray II
Hi James, good to meet you .. I've just started your book and am loving it.
Great, thanks for the support.
Do you think the problem could be the revision difference I mentioned in my previous post (GetBundle shows a json revision considerably lower than the textmate trunk)?
Yes, if you don't have the latest version of the code you may not have the command.
James Edward Gray II
Hans-Jörg Bibiko wrote:
Maybe I missed something but there is a formatter inside of that bundle. I'm using it.
Reformat Document/Selection.tmCommand which works perfectly if the JSON file consists of one single line.
Check http://macromates.com/svn/Bundles/trunk/Bundles/JSON.tmbundle
Cheers,
--Hans
Hmm..maybe the issue is the revision number. When I use the GetBundle bundle, it shows a revision number of 8304 for the json bundle. But when I follow your link above, it shows 10735 as the revision!
Possibly I should not be using GetBundle?
-- Owen
Hans-Jörg Bibiko wrote:
On 21.10.2008, at 18:01, backspaces wrote:
Possibly I should not be using GetBundle?
That's why we are working on a new GetBundles bundle in the Review trunk ;)
--Hans
Whew! That's good news, I was starting to think I was loosing it! - I found that I couldn't connect to the getbundles site, possibly the domain has expired. - Then I found a script for grabbing it from the textmate bundles svn - WTF?? Well I figured that getbundles was so useful that it was being incorporated into the standard textmate world - So then I find that my json bundle got by getbundles was not up to date - And so it goes, me getting more and more confused!
So it seems that it now all makes sense, and a new solution is on the way, great news!
So what should I do for now? I can just revert to the standard bundles, blowing away getbundles and its install dir and then simply use svn directly. That shouldn't be too difficult.
But possibly I should start using the new getbundles bundle in the revew branch?
What would you advise?
Thanks a bunch for all the help!
-- Owen
OK, just FYI: I reverted to the default bundles as described in the wiki: http://wiki.macromates.com/Troubleshooting/RevertToDefaultBundles .. and then just used svn to checkout the most recent JSON bundle.
This works fine, making reformatting easy.
I do think a bundles manager makes sense to build in the near future. But for now, svn is fine. Thanks to all for the help!
-- Owen