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 109892 - 'Migrate Database' menu does not work anymore
Summary: 'Migrate Database' menu does not work anymore
Status: RESOLVED FIXED
Alias: None
Product: ruby
Classification: Unclassified
Component: Rails (show other bugs)
Version: 6.x
Hardware: PC Linux
: P1 blocker (vote)
Assignee: Torbjorn Norbye
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-07-16 18:51 UTC by mcorino
Modified: 2007-07-17 17:42 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 mcorino 2007-07-16 18:51:43 UTC
After the following change:

#2982 (Jul 13, 2007 10:25:10 PM)

   1. Ruby: 109672: Use Migration Names in Migrate Database Menu
      Also build up nested menus as necessary when the number of migrations is large (20 items or more). — tor / detail

My 'Migrate Database' menu doesn't show my migrations anymore. It only shows 'To current version' and nothing else.
My project has 30 migrations at the moment.
I run NRUBYIDE.
Comment 1 Torbjorn Norbye 2007-07-16 20:48:54 UTC
Sorry about that -- I did test this for several different project profiles.

Can you show me what your directory structure related to your migrations looks like? e.g.

$ cd {yourproject}
$ find app/db -type f -print
Comment 2 Torbjorn Norbye 2007-07-16 23:58:44 UTC
Thanks for the file list.

I've added a unit test which replicates your directory structure and it produces a correct menu layout for me.

So, I'll try to add some logging which you can run with and hopefully that will reproduce the problem. More info soon.
Comment 3 Torbjorn Norbye 2007-07-17 00:30:40 UTC
I've sprinkled some logging over the relevant class which should hopefully give me some insight into why it's not working in your environment.

Would you mind grabbing build #2993 or later (when the build finishes) from 
  http://deadlock.netbeans.org/hudson/job/ruby/
and then invoking it with this startup flag:
   -J-Dorg.netbeans.modules.ruby.railsprojects.MigrateAction.level=300

(e.g. bin/nbrubyide --J-Dorg...)

That should print a bunch of console information (if it doesn't, it's in the log file in your userdir under var/log/) where each line starts with:

FINE [org.netbeans.modules.ruby.railsprojects.MigrateAction]: 

If you can send me that output I will hopefully be able to see what the problem might be.
Comment 4 Torbjorn Norbye 2007-07-17 17:42:14 UTC
Great, the diagnostics pinpointed the problem - a resource file had been missing from the checkin. It's fixed in build #3010 (and later).

http://deadlock.netbeans.org/hudson/job/ruby/3010/

Checking in Bundle.properties;
/cvs/ruby/railsprojects/src/org/netbeans/modules/ruby/railsprojects/Bundle.properties,v  <--  Bundle.properties
new revision: 1.3; previous revision: 1.2
done