Community
Participate
Working Groups
STEPS TO REPRO 1. create a JavaScript project with two source folders, src1 and src2 2. in src1 create test1.js and type in the following: function test(arg) { } tes| <= invoke code assist here 3. in src2 create test2.js and type in the following: tes| <= invoke code assist here EXPECTED BEHAVIOUR In both cases (2. and 3.) the code assist should propose to call the "test" function defined in sr1/test1.js with an argument: test(arg) OBSERVED BEHAVIOUR In case 2. things work well. In case 3. (that is, when I try to call the "test" function from another file) the code assist proposes to call that correct function, but without any arguments! test() I consider this a major loss of functionality.
I don't know if this is related in some way to Bug #324690.
Changing the severity back to normal, as it does not meet the definition of critical (crashes, loss of data, severe memory leak.) This is probably a duplicate of an existing bug. We'll take a look.
Increasing to major, at least... code assist not working is a major issue for me, especially in such common scenarios...
For step 3, was test1.js also open in an editor?
(In reply to comment #4) > For step 3, was test1.js also open in an editor? It doesn't matter if test1.js is open or not in an editor, the result is the same.
I removed the needinfo keyword, let me know if I shouldn't do.
This is working correctly now in WTP 3.5. The args show up in both cases.
I don't think the current behaviour is right. What I see now is the following. If I invoke code assist from test1.js, these are the suggestions I get: - test(arg) void - /MyProject/src1/test.js - test(arg) void - /MyProject/src1/test.js (that is, two identical proposals... why?) If I invoke code assist from test2.js, these are the suggestions I get: - test(String string) Boolean - RegExp - test(String string) Boolean - RegExp - test(String string) Boolean - RegExp (that is, three identical proposals; the first two have a green circle, as for public methods in Java editor, the last one has a blue triangle, as for package-friendly methods in Java editor; the last proposal only appears if I leave a last line in test1.js with an incomplete "tes" invocation) Apart from the multiplication of proposals, I don't think the proposals I get in test2.js are related to what I have defined in test1.js!