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

Summary: Tasks having the same name as namespace are not found
Product: ruby Reporter: Erno Mononen <emononen>
Component: RakeAssignee: Martin Krauskopf <mkrauskopf>
Status: RESOLVED FIXED    
Severity: blocker Keywords: REGRESSION
Priority: P2    
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:

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