| Summary: | Search for references in workspace/project for Javascript identifier returns 0 results | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [WebTools] JSDT | Reporter: | Missing name <st.kupr> | ||||
| Component: | General | Assignee: | Chris Jaun <cmjaun> | ||||
| Status: | RESOLVED FIXED | QA Contact: | Nitin Dahyabhai <thatnitind> | ||||
| Severity: | normal | ||||||
| Priority: | P3 | CC: | cmjaun | ||||
| Version: | unspecified | Flags: | thatnitind:
review+
|
||||
| Target Milestone: | 3.2.4 | ||||||
| Hardware: | PC | ||||||
| OS: | Windows XP | ||||||
| Whiteboard: | |||||||
| Attachments: |
|
||||||
Sorry, I was wrong, the specified scenario references search works fine. But for larger projects that I have the bug is actual. I'll try to find minimal reproduction scenario. Here goes the correct step 1:
Create the JavaScript project, which consists of two files:
test1.js:
function test1() {
}
test2.js:
function test2() {
test1();
}
function test3() {
test1();
}
Searching for test1 does not work.
Created attachment 188467 [details]
patch
Checked into 3.2.4 and HEAD. |
Build Identifier: 20101216-1529 When I try to search for references of an identifierin workspace or project (using either Ctrl-Shift-G, context menu, or main program menu), I always get 0 refences. Although Search -> "JavaScript Search" returns correct results. But it requires that I manually enter identifier name, which is not very handy. Reproducible: Always Steps to Reproduce: 1. Open JS file with some cross-calling functions, simpliest example: function test1() { } function test2() { test1(); } function test3() { test1(); } 2. Place cursor on 'test1' identifier. 3. Press Ctrl-Shift-G 4. Expected result: 2 or 3 references displayed Actual result: "0 references in workspace"