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 137983 - Tasks having the same name as namespace are not found
Summary: Tasks having the same name as namespace are not found
Status: RESOLVED FIXED
Alias: None
Product: ruby
Classification: Unclassified
Component: Rake (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: Martin Krauskopf
URL:
Keywords: REGRESSION
Depends on:
Blocks:
 
Reported: 2008-06-23 15:37 UTC by Erno Mononen
Modified: 2008-06-24 04:26 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Erno Mononen 2008-06-23 15:37:07 UTC
Steps:

1. Create a Rails application, Rails 2.1.0 / MRI
2. Invoke the Rake runner => the db:migrate task is not found.

Refreshing doesn't help. This breaks also the db:migrate actions in the project menu.
Comment 1 Erno Mononen 2008-06-23 15:38:53 UTC
Should've mentioned rake -T from the command line lists the task and running it works.
Comment 2 Martin Krauskopf 2008-06-23 15:44:22 UTC
Thanks for the catch, will fix soon. My regression after migration to Rake API.
Comment 3 Martin Krauskopf 2008-06-23 21:24:28 UTC
Fixed: #b24b3b3f83f6

Commit message:
- do not consider Rake task and namespace as the same in
  RakeTask#compare. The comparision do not make too much sense anyway.
  Will get rid of it when the class is divided into e.g. RakeTask and
  Namespace classes.
Comment 4 Quality Engineering 2008-06-24 04:26:29 UTC
Integrated into 'main-golden', available in NB_Trunk_Production #278 build
Changeset: http://hg.netbeans.org/main/rev/b24b3b3f83f6
User: Martin Krauskopf <mkrauskopf@netbeans.org>
Log: - do not consider Rake task and namespace as the same in
  RakeTask#compare. The comparision do not make too much sense anyway.
  Will get rid of it when the class is divided into e.g. RakeTask and
  Namespace classes.
- fixes issue #137983: Tasks having the same name as namespace are not
  found