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 111335 - "go to declaration" does not understand Modules
Summary: "go to declaration" does not understand Modules
Status: RESOLVED FIXED
Alias: None
Product: ruby
Classification: Unclassified
Component: Code (show other bugs)
Version: 6.x
Hardware: PC Windows XP
: P3 blocker (vote)
Assignee: Torbjorn Norbye
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-07-30 10:23 UTC by michel_demazure
Modified: 2008-02-13 15:39 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 michel_demazure 2007-07-30 10:23:18 UTC
I have a method 'parse' in a file of my project.
Asking "go to declaration" in the same file sends once to ri, once to yaml...
Comment 1 Torbjorn Norbye 2007-10-15 18:39:32 UTC
The root problem here is that when it doesn't know exactly which method is being referenced (e.g. it's not sure about
the type on the left hand side of the expression) it often has many possible methods to jump to. It uses a number of
heuristics to decide one which fits best - it examines the require statements in the current file, it looks at whether a
method has documentation or not, etc. But at the end of the day it may still have many alternatives and it finally just
picks one. 

The proper fix here is to make Go To Declaration produce a dropdown list in these cases such that you can easily choose
one. I don't know if I'll be able to do this for 6.0.  There are some other issues tracking this same problem.
Comment 2 michel_demazure 2007-12-06 17:58:17 UTC
Solved
Comment 3 Martin Krauskopf 2008-02-13 15:39:03 UTC
Getting rid of 'ui' category. Will use right subcomponent and UI keyword. 'code'
when none subcomponent fits.