Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Ruby

James Nelson
James Nelson
23,956 Points

Unable to create rb files

I have been working through the Ruby foundations course and have found that I am unable to create ruby files by typing in commands:

mate helloworld.rb

However I am able to create them using nano and then open these up using editors such as text mate and coda 2 via terminal. Is this a permissions issue? If so has anyone been able to resolve this issue?

Stone Preston
Stone Preston
42,016 Points

can you create other file types using the mate command? or is it just .rb files? do you get an error message?

John Romby Andersson
John Romby Andersson
8,453 Points

Hi again James,

Although the solution was simple, in this case, it's still common courtesy to leave a reply or at least choose a Best Answer. So would you be so kind mate?

Cheers John

5 Answers

John Romby Andersson
John Romby Andersson
8,453 Points

Hi James,

You simply need to install / activate the Terminal Shell support in TextMate.

Go into Preferences > Terminal and then click on Install under Shell support. Restart your Terminal and it should work. :)

TextMate Preferences

Best regards John Romby

James Nelson
James Nelson
23,956 Points

Hello John,

I am home now and able to test the tip you have provided. I am not seeing this as a tab in Textmate. Or did you mean terminal?

Thanks

James Nelson
James Nelson
23,956 Points

Just to add John, when I try to create a file e.g 'mate hello.rb' I would get an error such as

The file /~filepath/username/hello.rb does not exist.

Odd as I can create this file and open it with text mate and coda2

James Nelson
James Nelson
23,956 Points

No need to be rude John. I'm on mobile for the next few days, will add a best answer once I confirmed it works.

Thanks

John Romby Andersson
John Romby Andersson
8,453 Points

Now now, it seems I'm not the one being rude here. It was a fair request and I did give you at least 24 hours to respond Sir.

/John

James Nelson
James Nelson
23,956 Points

Right now you're being childish! As I said I'll test when I'm home, if it works I'll mark you up.

Cheers!

John Romby Andersson
John Romby Andersson
8,453 Points

You seem to be from a different planet Sir. I wish you luck.

/John