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 116570 - Watir gem methods do not show up in autocomplete
Summary: Watir gem methods do not show up in autocomplete
Status: RESOLVED WONTFIX
Alias: None
Product: ruby
Classification: Unclassified
Component: Code Completion (show other bugs)
Version: 6.x
Hardware: All All
: P4 blocker (vote)
Assignee: Erno Mononen
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-09-24 20:06 UTC by jim_matt
Modified: 2009-12-21 06:20 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 jim_matt 2007-09-24 20:06:42 UTC
I use Ruby to write test scripts using the Watir gem.  The gem manager shows that Watir is installed, but when I try 
to use autocomplete on a Watir method, none of the Watir methods show up.  When your project "requires" a Ruby gem, 
the gem methods etc. should be included in the autocomplete list.
Comment 1 Torbjorn Norbye 2007-09-24 21:07:02 UTC
Hi Jim,
Did you restart the IDE after installing the Watir gem? There's a known problem with just-installed gems not showing up
in code completion until you restart the IDE. 

Assuming code completion still doesn't work after restart, can you show exactly what you were trying to complete? (That
class, the method, and what the immediate code around completion looked like).
Comment 2 jim_matt 2007-09-24 21:49:32 UTC
Yes, I did restart the IDE.  I have the Watir v 1.5.1.1230 gem installed.

The following code sample should display the problem:

require 'watir'

  $br = Watir::IE.new_process
  $br.goto("http://www.google.com/")
  

Both the new_process or the goto should show up under completion.
Comment 3 marekj 2008-01-25 18:51:30 UTC
I use Netbeans to write watir tests as well, I have the same issues on all machines I use (3 machines, winxp sp2)
I noticed that if I create a new file inside the installed watir gem:
example
C:\ruby\lib\ruby\gems\1.8\gems\watir-1.5.3\new_file.rb
the autocompletion works when invoked from that file.
I get a list of methods when I write Watir::IE.

I would really appreciate it being fixed since Netbeans is my main tool for Watir. 
Thanks

Comment 4 Martin Krauskopf 2008-02-13 15:56:50 UTC
code completion -> reassigning to editor
Comment 5 Quality Engineering 2009-12-21 06:20:05 UTC
This bug was reported against NetBeans IDE 6.0 or an older release, or against a non-maintained module. NetBeans team does not have enough resources to get to this issue, therefore we are closing the issue as a WONTFIX. If you are interested in providing a patch for this bug, please see our NetFIX guidelines for how to proceed. 

We apologize for any inconvenience.


Thank you.
The NetBeans Team