FeaturesPluginsDocs & SupportCommunityPartners

NetBeans Forums

 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
  

Weird problem with generating scaffold

 
Post new topic   Reply to topic    NetBeans Forums -> Ruby Users
View previous topic :: View next topic  
Author Message
Kinsfire



Joined: 10 Feb 2009
Posts: 4

PostPosted: Tue Feb 10, 2009 8:27 pm    Post subject: Weird problem with generating scaffold Reply with quote

I'm running ruby 1.8, Netbeans 6.5 (fresh install), and have gems and rails installed. It's on an XP machine with SP3.

Everything works fine when I try to follow the tutorial here at the netbeans.org site on the 10 minute blog. Except...

I can create the project. WHen I highlight the project name and right-click it, I get the menu that's topped with generate. When I click it, nothing happens. Nada. Zip. Zilch. No extra box asking me what I want to create/generate. I can't do the tutorial if part of it simply doesn't happen at all.

Did I miss an important part of installing Netbeans?
Back to top
View user's profile Send private message
Erno Mononen
Posted via mailing list.





PostPosted: Tue Feb 10, 2009 8:43 pm    Post subject: Weird problem with generating scaffold Reply with quote

Hi,

Definitely sounds like a bug -- can you please turn on detailed logging
(http://wiki.netbeans.org/FaqRubyNBLogging), reproduce the issue and
send the log to me? Or better yet, create a ticket for this in our bug
tracker at http://www.netbeans.org/community/issues.html (the right
component would be ruby, subcomponent rails).

Does it work if you use the bundled JRuby 1.1.4 platform for creating
the project?

Erno



Kinsfire wrote:
Quote:
I'm running ruby 1.8, Netbeans 6.5 (fresh install), and have gems and rails installed. It's on an XP machine with SP3.



Everything works fine when I try to follow the tutorial here at the netbeans.org site on the 10 minute blog. Except...



I can create the project. WHen I highlight the project name and right-click it, I get the menu that's topped with generate. When I click it, nothing happens. Nada. Zip. Zilch. No extra box asking me what I want to create/generate. I can't do the tutorial if part of it simply doesn't happen at all.



Did I miss an important part of installing Netbeans?











Back to top
Kinsfire



Joined: 10 Feb 2009
Posts: 4

PostPosted: Tue Feb 10, 2009 11:25 pm    Post subject: Reply with quote

I do not get a response from clicking "Generate..." whether I use the built-in JRuby or the Ruby install I have.

I'm creating the ticket as soon as Netbeans re-opens for me. (cue Jeopardy theme...)
Back to top
View user's profile Send private message
PCke



Joined: 11 Feb 2009
Posts: 2

PostPosted: Wed Feb 11, 2009 12:52 pm    Post subject: Reply with quote

This bug is related to:
http://forums.netbeans.org/post-24094.html
You can see the error console on the right bottom on the screen if you click on the generate button.

I am also still waiting for a solution or a workaround
Back to top
View user's profile Send private message
Erno Mononen
Posted via mailing list.





PostPosted: Wed Feb 11, 2009 1:16 pm    Post subject: Weird problem with generating scaffold Reply with quote

Hi,

PCke wrote:
Quote:
This bug is related to:

http://forums.netbeans.org/post-24094.html

You can see the error console on the right bottom on the screen if you click on the generate button.



I am also still waiting for a solution or a workaround


Could you please try a dev build
(http://bits.netbeans.org/dev/nightly/latest/) and see if you have the
same problem there? I recently fixed something in this area which might
have solved the issue.

Thanks,
Erno
Back to top
Kinsfire



Joined: 10 Feb 2009
Posts: 4

PostPosted: Wed Feb 11, 2009 3:29 pm    Post subject: Reply with quote

I noticed that it states that there is a Java.null exception error when I try it.

Also, following the instructions to put the thing in debug mode leads to an interesting error where it seems to think that nothing is installed, based on the error message.
Back to top
View user's profile Send private message
MarkDavoren



Joined: 12 Feb 2009
Posts: 3

PostPosted: Thu Feb 12, 2009 11:57 pm    Post subject: Reply with quote

I had this problem. I believe it is due to netbean's interaction with JDK 6u12. Downgrading to JDK 1.6.0_07 "fixed" the problem.

I couldn't find the option to tell netbeans to switch jdk, so I uninstalled it and reinstalled it and selected jdk 1.6.0_07. I can now get the generate window.

A bit more info is at:
http://www.netbeans.org/issues/show_bug.cgi?id=157326

Mark.
Back to top
View user's profile Send private message
Chris Kutler
Posted via mailing list.





PostPosted: Fri Feb 13, 2009 1:14 am    Post subject: Weird problem with generating scaffold Reply with quote

No need to uninstall and reinstall the IDE. See this blog for an easier
way to tell the IDE which JDK to use:

http://blogs.sun.com/divas/entry/telling_netbeans_ide_which_jdk

MarkDavoren wrote:
Quote:
I had this problem. I believe it is due to netbean's interaction with JDK 6u12. Downgrading to JDK 1.6.0_07 "fixed" the problem.



I couldn't find the option to tell netbeans to switch jdk, so I uninstalled it and reinstalled it and selected jdk 1.6.0_07. I can now get the generate window.



A bit more info is at:

http://www.netbeans.org/issues/show_bug.cgi?id=157326



Mark.












--
Chris Kutler
------------
E ho mai ka ike mai luna mai e
Back to top
Kinsfire



Joined: 10 Feb 2009
Posts: 4

PostPosted: Fri Feb 13, 2009 4:05 am    Post subject: Reply with quote

It was definitely the version of JDK - when I installed 1.6u7, set the IDE to start with 7, I now get the response that I should from the program.

Thank you all.
Back to top
View user's profile Send private message
Erno Mononen
Posted via mailing list.





PostPosted: Fri Feb 13, 2009 7:53 am    Post subject: Weird problem with generating scaffold Reply with quote

Hi Mark,

Thanks for finding the culprit, indeed the generator panel
(accidentally) overrides the isValid method, causing problems with u12.
Incidentally, I was told about it already yesterday (when someone
searched the whole NB source tree for classes overridig isValid()), but
I didn't connect the dots with this particular issue. The fix should
make it to the next nightly build. This is a problem only with u12, so
you can safely use u11.

Thanks,
Erno

MarkDavoren wrote:
Quote:
I had this problem. I believe it is due to netbean's interaction with JDK 6u12. Downgrading to JDK 1.6.0_07 "fixed" the problem.



I couldn't find the option to tell netbeans to switch jdk, so I uninstalled it and reinstalled it and selected jdk 1.6.0_07. I can now get the generate window.



A bit more info is at:

http://www.netbeans.org/issues/show_bug.cgi?id=157326



Mark.











Back to top
Display posts from previous:   
Post new topic   Reply to topic    NetBeans Forums -> Ruby Users All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB