This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 106908 - Ability to pass parameters to a Rails server
Summary: Ability to pass parameters to a Rails server
Status: RESOLVED FIXED
Alias: None
Product: ruby
Classification: Unclassified
Component: Rails (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Erno Mononen
URL:
Keywords: UI
: 110655 (view as bug list)
Depends on:
Blocks:
 
Reported: 2007-06-16 06:44 UTC by digitalbias
Modified: 2008-02-12 17:10 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Run properties for a project (23.49 KB, image/png)
2007-06-18 16:37 UTC, digitalbias
Details

Note You need to log in before you can comment on or make changes to this bug.
Description digitalbias 2007-06-16 06:44:10 UTC
It would be helpful to be able to send parameters (like '-e test') to a run configuration
Comment 1 Tomas Danek 2007-06-18 13:49:17 UTC
if you want to pass some arguments to interpreter, go to ruby project properties, to "Run" panel, and there you can set
interpreter params, and save them as run configuration. is that what you are looking for?
Comment 2 digitalbias 2007-06-18 16:35:54 UTC
on the command line I can say something like this:

'scripts/server -e test'

but I don't see a way to do this using the project 'run' dialog. I'm running version 070615 of the rubyide. The only
things I see in the run dialog are "Server port number" and "Encoding". It could be I'm looking in the wrong location. I
can get to the 'Run' options in a couple ways.

1. Selecting the menu 'Build', 'Set Main Project COnfiguration', 'Customize...'
2. Right clicking on the project in the 'Projects' pane, then selecting 'Properties'
3. Selecting the drop down in the menu bar and selecting 'Customize...'

I'm going to attach a screen shot as well, just for clarity.
Comment 3 digitalbias 2007-06-18 16:37:27 UTC
Created attachment 43901 [details]
Run properties for a project
Comment 4 Tomas Danek 2007-06-19 10:59:59 UTC
ah, then it's definitely valid, you're looking to correct location. I was talking about ruby project (and there you can
pass params the way i described), but you are talking about ruby on rails project type.
Comment 5 Jiri Kovalsky 2007-07-03 14:03:14 UTC
Reassigning this issue to newly created 'ruby' component.
Comment 6 Torbjorn Norbye 2007-08-10 00:45:45 UTC
Agreed. I wonder if we want to support arbitrary arguments, or make a simple combo box to make it easy to choose between
development, test and production modes.
Comment 7 digitalbias 2007-08-11 16:11:09 UTC
I would make it more generic with the ability for arbitrary arguments to the program as well as the ruby interpreter.
Comment 8 Martin Krauskopf 2007-09-20 10:32:20 UTC
Or we can do combination of both. But we can't do this into 6.0, we are after feature(and UI) freeze. This is kind of both.
Comment 9 Martin Krauskopf 2008-01-07 06:20:34 UTC
Erno this is similar to few other bugs you have. Trying to reassign ;) Should not be hard to fix.
Comment 10 Martin Krauskopf 2008-01-07 06:21:31 UTC
*** Issue 110655 has been marked as a duplicate of this issue. ***
Comment 11 Erno Mononen 2008-02-07 21:02:36 UTC
So you think that we should have an editable combo box with predefined 'test', 'development' and 'production' values?
Comment 12 digitalbias 2008-02-07 21:27:46 UTC
I think that would be a good approach since people can define their own environments
Comment 13 Erno Mononen 2008-02-08 15:16:25 UTC
Fixed, please give it a try. You can get a continuous build from http://deadlock.netbeans.org/hudson/job/trunk/ , the 
fix should be included in a few hours. 

Changesets:
0ada2e520c50
9de40b3abb42
Comment 14 digitalbias 2008-02-10 05:22:26 UTC
I tried to test it, however the build I downloaded, netbeans-hudson-trunk-325-ruby, crashed the three times I tried to
open an existing ruby project. I'll have to try again later.

Comment 15 digitalbias 2008-02-12 17:10:47 UTC
I've seen it now. Works for me.