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: | "goto declaration" does not work when declaration is in another file | ||
---|---|---|---|
Product: | ruby | Reporter: | Tomas Danek <musilt2> |
Component: | Code | Assignee: | Torbjorn Norbye <tor> |
Status: | VERIFIED FIXED | ||
Severity: | blocker | ||
Priority: | P3 | ||
Version: | 6.x | ||
Hardware: | PC | ||
OS: | Linux | ||
Issue Type: | DEFECT | Exception Reporter: |
Description
Tomas Danek
2006-12-22 11:41:22 UTC
This mostly works now; you can go to declarations in all the library and gem classes. It also -sort- of works for classes in your own projects. There is however a bug left where you have to trigger any edits you've made to the file to get reflected in the index. Currently the easiest way to do that is to modify the file, then invoke code completion. Now the file should get indexed. If you go to your other file now and reference it it should show up both for go to declaration and code completion etc. I'm leaving this bug open to track this one issue. I didn't mean to close this issue; I still want to track the last remaining issue. I have fixed the bug now such that local source files are indexed (as you leave them), which means you can now switch to another file and get completion on require statements for local directories added (provided you added a Ruby file there), completion on classes you've added to other files, etc. #273 does not work for me; - created rubyapp - created new script "hello.rb" in the same dir, and generate class "Hello" with class method foo. - in main.rb, typed require '' and invoke CC inside - hello not found - (tracked in issue 93024) - typed H and invoke CC - Hello class not present:( - continued to Hello. and invoke CC - no methods offered (only keywords and $ stuff) - continued Hello.foo - invoked Goto declaration on Hello - does not work - run file (just to prove code is fine, contains no error) This has been fixed recently. works fine now, verified in 20070525 Reassigning this issue to newly created 'ruby' component. Changing target milestone of all resolved Ruby issues from TBD to 6.0 Beta 1 build. |