Matt Aimonetti | 25 Nov 18:20
Gravatar

Re: Merb support

Sorry, I thought I replied to this thread, but apparently I did not.
Erno, I believe you summed up the principal features needed.

Let us know if you have any questions and if there is anything else we can help you with.

-Matt


On Fri, Nov 21, 2008 at 8:21 AM, Erno Mononen <Erno.Mononen-xsfywfwIY+M@public.gmane.org> wrote:
Thanks everyone for the feedback. From what I can gather, we should start with the following:

- project type for Merb
- running/debugging specs
- running/debugging bundled apps

Once we have these in place we can dive into other aspects. It's probably best if I set up the basic infrastructure in the netbeans repository. I think I'll start working on the project type for Merb, likely will have a bunch of questions as I go. When the basic stuff is set up, it should be easier for others to join.

How does that sound? I'm hoping that I will have time to work on this next week.


Erno


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe-n3CzLFQkLgrXWKka9uoeGti2O/JbrIOy@public.gmane.org
For additional commands, e-mail: dev-help-n3CzLFQkLgrXWKka9uoeGti2O/JbrIOy@public.gmane.org


Erno Mononen | 21 Nov 14:06
Favicon

Re: Merb Support (Deux)

Yehuda Katz wrote:
> You said:
>
>     (I'm crossposting to users@...
>     <mailto:users@...> and dev@...
>     <mailto:dev@...>, please reply to dev <at> ruby only)
>
>
>     Hi folks,
>
>
>     Matt Aimonetti from the Merb core team expressed interest in
>     helping to integrate Merb in NetBeans, so hopefully by working
>     together we can provide support already in the next release. I'm
>     copying here part of Matt's email about the things that the
>     support should cover:
>
>
>     "Running the specs from within the IDE (the most requested feature
>     atm)
>
>     - run the dev application in a bundled state if needed. (ALL
>     required gems are packaged in a local gems folder and you start
>     merb by using the binaries in the local bin folder) TM doesn't
>     support that and it's a key feature.
>
>
> Basically general support for bundled merb apps (which run entirely 
> encapsulated without any use of system gems) would be a big win. Like 
> I said, Textmate's rspec support hardcodes in use of the system, which 
> makes it not work well (at all?) with Merb.

How exactly do you run a bundled Merb app, i.e. what are the steps that 
the IDE should do? (Excuse me for my ignorance, I'm pretty new to the 
Merb world)

>  
>
>     - browse documentation/code hinting specific to Merb. (we'd have
>     to help you there)
>
>
> See my previous post.
>  
>
>     - access/reproduce some of the thor/rake methods like
>     bundling/generate resources..
>
>
> Yeah this would be fantastic. Because thor is just a class, regular 
> class introspection could help here, or we could write some better 
> introspection capabilities into thor so you wouldn't have to grab the 
> information out of thor -T.

Would something like the current Rake runner 
(http://wiki.netbeans.org/RubyRake) do, or did you have something else 
in your mind?

>  
>
>     - access to merb console (merb -i)
>
>
> Absolutely. Again, keep in mind that this needs to work bundled 
> (bin/merb -i) and ideally would support different modes (development, 
> etc.). Additionally, the main merb server supports a mode where 
> sending an INT (C-c) to the server drops into console mode. It would 
> be cool to be able to support that.

This might work already with the upcoming terminal emulator, but will 
need to double-check that.

>  
>
>     - support for different app layouts (I don't think NB should
>     overwrite whatever the user generated like it's the case with a
>     Rails app at the moment)
>
>
> Yeah. An important thing about Merb is support for just about any app 
> layout. It's possible to ask Merb for details via Merb.dir_for(...). 
> For instance, Merb.dir_for(:model) will tell you where to expect Merb 
> models. 
>
>     - debugger support including from within the spec runner"
>
>
> Abso-fraggin-lutely. This would be a killer feature that could 
> potentially get me to use NB.

Martin said he'll look into this. In the dev builds of the IDE debugging 
a Merb app already works to some extent using remote debugging (I say to 
some extent because it doesn't seem to work for everyone / every Merb 
project).

>  
>
>     Does anyone have any particular things to add to that? I think the
>     terminal emulator, which we should have in 7.0, already covers at
>     least the merb console use case (we plan to migrate also the Rails
>     and IRB consoles to use the terminal emulator when it's ready).
>     Likewise, the new Rake runner in 6.5 should help in running
>     /debugging specs, though it could probably use some enhancements
>     to make it even more convenient.
>
>
> Not sure if you already have this, but Haml and Sass support would be 
> great.

We have a plugin for Haml 
(http://mediacast.sun.com/users/~tor/media/org-netbeans-modules-haml.nbm/details), 
contributed by Dylan Bruzenak, but I'm not sure whether it is being 
actively developed now. Does anyone here know whether the sources for it 
are hosted on a public site somewhere?

>  
>
>     One thing to consider is whether Merb should have its own project
>     type in the IDE, or whether it should be something that can be
>     added to a Ruby or RoR project (I hear some people are using Merb
>     in Rails applications). Ideally I guess having both options would
>     be ideal, so the question is rather what should come first. Any
>     thoughts on that?
>
>
> It makes more sense for Merb to have its own project type, especially 
> in light of different directory structures, but also because Merb has 
> been conceptually diverging from Rails and will probably continue to 
> do so over time. For instance, it would be nice (in the future) to 
> have a mode that makes it easy to develop a merb slice.

The slice concept seems interesting, definitely something to keep in 
mind when implementing the project type for Merb. I think the IDE 
doesn't deal too well with a project that uses slices currently (for 
example multiple rakefiles is a bit of problem).

Thanks,
Erno
Peter Williams | 21 Nov 03:32
Favicon

Re: Does anyone know what this comment means, has an answer


Chris Kutler wrote:
> I got this comment in my blog today. I do not understand the question, 
> so I cannot answer it.
>
>> not sure if this is for netbeans team -- however sharing with you.
>> =================================================
>>   does glassfish/warble allow for exploded WAR deployment which so 
>> makes rails developers so productive ? t s
I'll assume the current answer is no (for GF V2) but since GF V3 allows 
native deployment of Rails apps, just use V3 Prelude and native 
deployment.  This should be a better solution for them anyway.  If for 
some reason it's not, please reply with specific reasons why not (or 
rather, ask them to).

I'll also go out on a limb and suggest that since GF V2 fully supports 
directory deployment of web apps in general, there isn't any reason why 
the answer to the original question can't be yes.  But someone has to 
construct something that builds the equivalent of an exploded WAR with 
whatever tools are required and then use the GF V2 directory deployment 
API's to deploy it.

-Peter
>>
>>   I'm seeing that the jboss rails group are working towards an 
>> exploded WAR development option.
>>
>>   It will be nice if glassfish developers have something similar.
>>
>> thank you,
>>   
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@...
> For additional commands, e-mail: dev-help@...
>
Erno Mononen | 19 Nov 09:36
Favicon

Merb support

(I'm crossposting to users@... and
dev@..., 
please reply to dev <at> ruby only)

Hi folks,

Matt Aimonetti from the Merb core team expressed interest in helping to 
integrate Merb in NetBeans, so hopefully by working together we can 
provide support already in the next release. I'm copying here part of 
Matt's email about the things that the support should cover:

"Running the specs from within the IDE (the most requested feature atm)
- run the dev application in a bundled state if needed. (ALL required 
gems are packaged in a local gems folder and you start merb by using the 
binaries in the local bin folder) TM doesn't support that and it's a key 
feature.

- browse documentation/code hinting specific to Merb. (we'd have to help 
you there)
- access/reproduce some of the thor/rake methods like bundling/generate 
resources..

- access to merb console (merb -i)
- support for different app layouts (I don't think NB should overwrite 
whatever the user generated like it's the case with a Rails app at the 
moment)
- debugger support including from within the spec runner"

Does anyone have any particular things to add to that? I think the 
terminal emulator, which we should have in 7.0, already covers at least 
the merb console use case (we plan to migrate also the Rails and IRB 
consoles to use the terminal emulator when it's ready). Likewise, the 
new Rake runner in 6.5 should help in running /debugging specs, though 
it could probably use some enhancements to make it even more convenient.

One thing to consider is whether Merb should have its own project type 
in the IDE, or whether it should be something that can be added to a 
Ruby or RoR project (I hear some people are using Merb in Rails 
applications). Ideally I guess having both options would be ideal, so 
the question is rather what should come first. Any thoughts on that?

Any feedback is welcomed,

Erno
Benjamin Mushabe | 6 Nov 08:21

Ruby

Hello
 
Can someone help me with how to code search in ruby on rails
I am completely stack
 
Regards Benjamin
Chris Kutler | 30 Oct 16:47
Favicon

Gems fetching failed

Hi,

I am having a problem with the RC releases. When I open the Ruby Gems manager I get an Error dialog box that says:

Gems fetching failed

See troubleshooting section in http://wiki.netbeans.org/RubyGems for help.

Follows output of the gem tool:

*** REMOTE GEMS ***

Error: While executing gem ... (EOFError)
End of file reached

The following works from the command line withou error

jruby -S gem list -r

Should I file a bug? Is there something I can do to stop this from happening
Chris Kutler | 24 Oct 20:16
Favicon

Will rubygems 1.3.0 break Ruby Gems Manager?

I saw these in the JRuby user group. How will rubygems 1.3.0 work with 
our gems manager?

> I used this procedure to update my trunk jruby install to rubygems 1.3.0:
>
> jruby -S gem install rubygems-update
> jruby -S update_rubygems
>
> After finishing with the install bin/jgem was installed (which appears 
> to be identical to bin/gem.
>
> It all appears to work but it's confusing to have both gem and jgem.

also

> Update to RubyGems 1.3.0.
> -------------------------
>
>                  Key: JRUBY-3074
>                  URL: http://jira.codehaus.org/browse/JRUBY-3074
>              Project: JRuby
>           Issue Type: Improvement
>             Reporter: Charles Oliver Nutter
>             Assignee: Charles Oliver Nutter
>              Fix For: JRuby 1.1.5
Ivan Soleimanipour | 20 Oct 21:46

Term has it's own mailing list now

Term has it's own mailing list now, so we can leave dev <at> ruby alone :-)

Sign up all who are interested:

http://www.netbeans.org/servlets/SummarizeList?listName=terminalemulator
Chris Kutler | 17 Oct 23:13
Favicon

Is this Rails Environment for GlassFish statement ok?

I have added the following wording to the 6.5 setting-up.html tutorial. Is it ok?

The IDE does not pass the Rails Environment setting in the Project Properties dialog box to the GlassFish v3 server. If you need to run the application in a different mode on the GlassFish v3 server, such as production mode, uncomment and modify the following statement in the environment.rb file. In order for the change to occur, you must either undeploy the application or restart the server. You can do both of these actions from the Servers node in the Services window

# ENV['RAILS_ENV'] ||= 'production'

Note: Your test suites might not work correctly if you run them while RAILS_ENV is set to production mode.


Chris Kutler | 14 Oct 23:37
Favicon

Delimiter matching: # inside string not surrounding with #{}

Hello,

Tor wrote to me awhile back that I should document that ....

And if you press “#” inside a string or regular expression, it will surround the text with #{}.

I thought that he meant that if I clicked inside a string (such as "string") and pressed # I would get something like #{"string"}. Instead I get "str#{}ing".

Can someone better explain how to surround text with #{}

Chris Kutler | 14 Oct 02:17
Favicon

Is Rails Environment in Project Props applicable to GlassFish

Hi,

I just filed a bug that setting the Rails Environment setting in Project 
Properties for Rails apps does not seem to affect running the app in GF. 
But I am wondering, should it? Perhaps this setting is for WEBrick and 
Mongrel only?

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

Let me know,

Chris

Gmane