FeaturesPluginsDocs & SupportCommunityPartners

NetBeans Forums

 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
  

Switching from TextMate

 
Post new topic   Reply to topic    NetBeans Forums -> Ruby Users
View previous topic :: View next topic  
Author Message
spherop



Joined: 02 Oct 2008
Posts: 1

PostPosted: Thu Oct 02, 2008 3:52 pm    Post subject: Switching from TextMate Reply with quote

I have been working with TextMate and Terminal as my main Rails tools. Downloaded and installed NB 6.5.

What I am a little confused by is whether there's a simple way to have these share the same Rails (gems etc) setup and config.

It seems by default, that I'd have to separately install gems. And having trouble doing that getting permissions errors in NB console.

Any tips for a noob welcome.
Back to top
View user's profile Send private message
Erno Mononen
Posted via mailing list.





PostPosted: Fri Oct 03, 2008 7:48 am    Post subject: Switching from TextMate Reply with quote

Hi,

spherop wrote:
Quote:
I have been working with TextMate and Terminal as my main Rails tools. Downloaded and installed NB 6.5.



What I am a little confused by is whether there's a simple way to have these share the same Rails (gems etc) setup and config.


If you use the same Ruby platform (interpreter) both in NB and TextMate,
then you shouldn't need to do any additional setup. The default platform
in NB is the bundled JRuby, but you can register additional platforms in
Tools -> Ruby Platforms (the platform manager actually tries to
automatically detect all Ruby platforms that were found in the path on
your system, so there is a chance that the platform you use with
TextMate is already listed there). Then when creating a new project,
just select the correct platform, or with an existing project set it in
Project Properties.


Quote:


It seems by default, that I'd have to separately install gems. And having trouble doing that getting permissions errors in NB console.


Does the IDE ask you the administrative password when installing gems?
I'm not sure now how it works on the Mac, but on Ubuntu it is worth
pointing out that it in fact requires the root passwd (unlike sudo).
This is due to some issues in sudo, my colleague Martin might share more
details on this when he gets back from vacation.

Let us know whether this helped,

Erno
Back to top
Chris Kutler
Posted via mailing list.





PostPosted: Fri Oct 03, 2008 2:25 pm    Post subject: Switching from TextMate Reply with quote

For more information, see "Configuring the IDE to Use Your Own Ruby
Installation." in Installing and Configuring Ruby Support at
http://www.netbeans.org/kb/61/ruby/setting-up.html. This is for 6.1. I
list the differences (there are not very many) for 6.5 at
http://blogs.sun.com/divas/entry/getting_started_with_netbeans_ruby1.

The engineering doc about the gems manager is at
http://wiki.netbeans.org/RubyGems.

You can find tutorials at http://www.netbeans.org/kb/trails/ruby.html
and engineering docs at http://wiki.netbeans.org/Ruby.

Erno Mononen wrote:
Quote:
Hi,

spherop wrote:
Quote:
I have been working with TextMate and Terminal as my main Rails
tools. Downloaded and installed NB 6.5.


What I am a little confused by is whether there's a simple way to
have these share the same Rails (gems etc) setup and config.

If you use the same Ruby platform (interpreter) both in NB and
TextMate, then you shouldn't need to do any additional setup. The
default platform in NB is the bundled JRuby, but you can register
additional platforms in Tools -> Ruby Platforms (the platform manager
actually tries to automatically detect all Ruby platforms that were
found in the path on your system, so there is a chance that the
platform you use with TextMate is already listed there). Then when
creating a new project, just select the correct platform, or with an
existing project set it in Project Properties.


Quote:


It seems by default, that I'd have to separately install gems. And
having trouble doing that getting permissions errors in NB console.


Does the IDE ask you the administrative password when installing gems?
I'm not sure now how it works on the Mac, but on Ubuntu it is worth
pointing out that it in fact requires the root passwd (unlike sudo).
This is due to some issues in sudo, my colleague Martin might share
more details on this when he gets back from vacation.

Let us know whether this helped,

Erno






Back to top
Martin Krauskopf
Posted via mailing list.





PostPosted: Fri Oct 10, 2008 4:54 pm    Post subject: Switching from TextMate Reply with quote

spherop wrote:
Quote:
I have been working with TextMate and Terminal as my main Rails tools. Downloaded and installed NB 6.5.

What I am a little confused by is whether there's a simple way to have these share the same Rails (gems etc) setup and config.

It seems by default, that I'd have to separately install gems. And having trouble doing that getting permissions errors in NB console.

Was already answered by Erno and Chris. You might be also interested in:

http://wiki.netbeans.org/FaqRubyTerminalEmulator

m.
Back to top
mattetti



Joined: 01 Nov 2008
Posts: 1

PostPosted: Sat Nov 01, 2008 11:50 pm    Post subject: macros Reply with quote

I've been trying to use netbeans for a Merb project. I really like the refactoring tools. The code hinting is also really nice for newbies (which means I should probably work on finding out how to create a code hinting for a merb project).

However I miss the option to select a piece of code and call a shortcut to modify it. For instance I would select a line of code in a rhtml view and press ctrl + Z. It would wrap the line in a <%# %> block.

I found how to create macros but I don't seem to be able to access the selection or modify the selection, can anyone point to me to some good documentation?

Thanks,

-Matt

_________________
http://merbist.com
Back to top
View user's profile Send private message
Martin Krauskopf
Posted via mailing list.





PostPosted: Mon Nov 03, 2008 11:18 am    Post subject: Switching from TextMate Reply with quote

mattetti wrote:
Quote:
I've been trying to use netbeans for a Merb project. I really like the refactoring tools. The code hinting is also really nice for newbies (which means I should probably work on finding out how to create a code hinting for a merb project).

However I miss the option to select a piece of code and call a shortcut to modify it. For instance I would select a line of code in a rhtml view and press ctrl + Z. It would wrap the line in a <%# %> block.

I found how to create macros but I don't seem to be able to access the selection or modify the selection, can anyone point to me to some good documentation?

For this use-case follow these steps to create a macro:

1) make whatever selection, e.g. one word
2) Menu | Edit | Start Macro Recording
3) Ctrl-x (Cut)
4) Type "<%#", press Ctrl+v (paste), type "%>"
5) Menu | Edit | Stop Macro Recording
6) Set macro name and shortcut
(undo the changes if you want)

Now whenever you press the short cut when some text is selected it will
be wrapped in <%# selected-text %>.

m.
Back to top
Fjan
Posted via mailing list.





PostPosted: Wed Nov 05, 2008 1:15 pm    Post subject: Switching from TextMate Reply with quote

Alternatively just do ctrl-X, r, e, tab, ctrl+V
It 5 key presses, short enough for me


Martin Krauskopf wrote:
Quote:

mattetti wrote:
Quote:
I've been trying to use netbeans for a Merb project. I really like the
refactoring tools. The code hinting is also really nice for newbies
(which means I should probably work on finding out how to create a code
hinting for a merb project).

However I miss the option to select a piece of code and call a shortcut
to modify it. For instance I would select a line of code in a rhtml view
and press ctrl + Z. It would wrap the line in a <%# %> block.

I found how to create macros but I don't seem to be able to access the
selection or modify the selection, can anyone point to me to some good
documentation?

For this use-case follow these steps to create a macro:

1) make whatever selection, e.g. one word
2) Menu | Edit | Start Macro Recording
3) Ctrl-x (Cut)
4) Type "<%#", press Ctrl+v (paste), type "%>"
5) Menu | Edit | Stop Macro Recording
6) Set macro name and shortcut
(undo the changes if you want)

Now whenever you press the short cut when some text is selected it will
be wrapped in <%# selected-text %>.

m.








--
View this message in context: http://www.nabble.com/Switching-from-TextMate-tp20287558p20341466.html
Sent from the NetBeans Ruby Users mailing list archive at Nabble.com.
Back to top
Display posts from previous:   
Post new topic   Reply to topic    NetBeans Forums -> Ruby Users All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB