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.
Summary: | jruby scaffold generator does not work | ||
---|---|---|---|
Product: | ruby | Reporter: | Tomas Danek <musilt2> |
Component: | Code | Assignee: | Torbjorn Norbye <tor> |
Status: | RESOLVED WONTFIX | ||
Severity: | blocker | ||
Priority: | P2 | ||
Version: | 6.x | ||
Hardware: | All | ||
OS: | All | ||
Issue Type: | DEFECT | Exception Reporter: |
Description
Tomas Danek
2007-05-21 16:35:03 UTC
What does your database registration look like in config/database.yml? Do you have a "socket" entry there? I seem to remember mkrauskopf having a similar problem; this has to do with some activerecord stuff JRuby doesn't understand. I'm not sure whether this is the same problem. But you could do the same from the command line to find out whether it JRuby or NB specific. NB just calls the "script/generate scaffold <params>" AFAIK. the only thing that is unusual in my db config is empty root password.. development: adapter: mysql database: pokus username: root password: socket: /var/run/mysqld/mysqld.sock as i mentioned, scaffold generator works when i switch to the native ruby (and also after running project, db can be accessed without any problem). this really seems like problem in jruby itself: tomas@pchytil-ws:~/NetBeansProjects/RailsApplication27$ jrubynb script/generate scaffold post hello exists app/controllers/ exists app/helpers/ create app/views/hello exists app/views/layouts/ exists test/functional/ dependency model exists app/models/ exists test/unit/ exists test/fixtures/ create app/models/post.rb create test/unit/post_test.rb create test/fixtures/posts.yml can't convert nil into String while using native ruby gives tomas@pchytil-ws:~/NetBeansProjects/RailsApplication27$ ruby script/generate scaffold post hello exists app/controllers/ exists app/helpers/ exists app/views/hello exists app/views/layouts/ exists test/functional/ dependency model exists app/models/ exists test/unit/ exists test/fixtures/ identical app/models/post.rb identical test/unit/post_test.rb identical test/fixtures/posts.yml create app/views/hello/_form.rhtml create app/views/hello/list.rhtml create app/views/hello/show.rhtml create app/views/hello/new.rhtml create app/views/hello/edit.rhtml create app/controllers/hello_controller.rb create test/functional/hello_controller_test.rb create app/helpers/hello_helper.rb create app/views/layouts/hello.rhtml create public/stylesheets/scaffold.css filed a bug against jruby 1.0.0 rc2 http://jira.codehaus.org/browse/JRUBY-973 "the only thing that is unusual in my db config is empty root password": No, that shouldn't be a problem, but in looking at your database.yml file, I see that the answer to my question yesterday ("What does your database registration look like in config/database.yml? Do you have a "socket" entry there?") is Yes. That's likely the problem. Martin had the same issue. JRuby has difficulty handling this: socket: /var/run/mysqld/mysqld.sock Closing as will not fix since this is a bug or limitation of JRuby, and I don't think we should have place holder bugs for JRuby issues here. Reassigning this issue to newly created 'ruby' component. Changing target milestone of all resolved Ruby issues from TBD to 6.0 Beta 1 build. |