Netbeans and .story files

Hi

Is anyone here using NetBeans and story runner? NB doesn’t recognise
.story
files so I can’t even do simple things like block commenting lines (and
the
regex replace is temperamental). I tried adding .story to the list of
Ruby
file extensions, but then it just hides everything in the story folders
(even the .rb files!).

Any tips on how to get the two working together would be much
appreciated.
I’ve lost count of the times I’ve said “I could do this in TextMate”…

Ta
Ashley

On Mar 31, 2008, at 7:03 AM, Ashley M. wrote:

this in TextMate"…
I have a stories folder with files named blah_story.rb - and NetBeans
doesn’t seem any stranger with those than it usually is.

SR

On 31/03/2008, Steve R. [email protected] wrote:

I have a stories folder with files named blah_story.rb - and NetBeans
doesn’t seem any stranger with those than it usually is.

Steve,

Sorry, I wasn’t clear. It’s not the my_story.rb file that’s the
problem,
it’s the my_story.story file (the plain text part).

Ashley

On 31 Mar 2008, at 19:27, Tim H. wrote:

I don’t think Netbeans has support for plain text stories yet - but
I’m not certain (I was using it with frustration last night too).
Probably better to ask in the netbeans forum?

Hi Tim

I noticed it didn’t have any out of the box support, just wondered if
anyone had hacked around that. I had a feeling it might be a bit OT
for this list, but I figured there’s a higher percentage of NetBeans
users here than the percentage of story runner users in the NB forums…

I’ve got a way round its stupid regex bug (/^/ doesn’t match the start
of a line!) so I can comment out stories semi-automatically at least.

Cheers
Ashley

Hi Ashley,

I don’t think Netbeans has support for plain text stories yet - but I’m
not
certain (I was using it with frustration last night too). Probably
better
to ask in the netbeans forum?

Cheers,

tim.

On 01/04/2008, Martin K. [email protected] wrote:

Hi,

yes, the .story extension is not supported out-of-the box. Unfortunately
it is not possible to extend Ruby file-type now:

116563 – Adding extension to Ruby source causes havoc

But easy to fix inside of NetBeans. I’ve just fixed it on my local
machine. I’ll commit in few hours.

Hi Martin

Sounds good. As it happens I will be working from home for a while so I
get
to use my MacBook instead of Ubuntu, yay :smiley: But I’m sure I will have to
use
NetBeans again soon so I’ll appreciate your patch.

BTW is the .story extension kind of “official” one? I saw in some

tutorials using .rb extension.

Actually I’ve never been clear on this. I’d love a page on rspec.info
that
says This Is How You Should Name Your Files.

Ashley

On Mon, Apr 7, 2008 at 11:01 AM, Ashley M.
[email protected] wrote:

machine. I’ll commit in few hours.
BTW is the .story extension kind of “official” one? I saw in some
tutorials using .rb extension.

Actually I’ve never been clear on this. I’d love a page on rspec.info that
says This Is How You Should Name Your Files.

There’s a reason such a page does not exist. We are letting convention
emerge rather than dictating it.

That said, the convention that I see emerging is .rb for stories
expressed in ruby and either no extension or .story for those
expressed in plain text.

HTH,
David

On 7 Apr 2008, at 20:18, David C. wrote:

That said, the convention that I see emerging is .rb for stories
expressed in ruby and either no extension or .story for those
expressed in plain text.

That’s what I do - .story for the plain text file and .rb for the
corresponding runner (not tried Kyle’s runner yet)

Ashley


http://www.patchspace.co.uk/

I sent the netbeans guys a list of features for story support in
netbeans. With luck they’ll make it into the next version after 6.1.
Feel free to go check it out and add to the list. :slight_smile:

Cheers,

Tim.

On 8/04/2008, at 4:55, Ashley M. [email protected]

Here’s the url - 131684 – Support for RSpec Story

On 10 Apr 2008, at 02:32, Tim H. wrote:

Here’s the url - 131684 – Support for RSpec Story

Looks good! I like this bit:
priority 1b - In the project pane, allow stories to sit as the first
“folder” in the list, and “rspec” as the second -
both above controllers. The theory is you should write stories first,
then your specs, then the app code…

Oh, and did you give “stories” a capital “S” at last? :smiley:

Ashley

Tim H. wrote:

Hi Ashley,

I don’t think Netbeans has support for plain text stories yet - but I’m
not certain (I was using it with frustration last night too). Probably
better to ask in the netbeans forum?

Hi,

yes, the .story extension is not supported out-of-the box. Unfortunately
it is not possible to extend Ruby file-type now:

http://www.netbeans.org/issues/show_bug.cgi?id=116563

But easy to fix inside of NetBeans. I’ve just fixed it on my local
machine. I’ll commit in few hours.

I’ve filed:

Will not go into 6.1 (code-frozen), but you might grab it through the
continuous builds when the issue above is marked fixed

http://wiki.netbeans.org/RubyInstallation#section-RubyInstallation-HowDoIGetTheContinuousBuilds

BTW is the .story extension kind of “official” one? I saw in some
tutorials using .rb extension.

Regards,
m.