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 32042 - Missing code completion in java sources
Summary: Missing code completion in java sources
Status: RESOLVED WORKSFORME
Alias: None
Product: editor
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 3.x
Hardware: PC All
: P3 blocker (vote)
Assignee: issues@editor
URL:
Keywords: RANDOM
Depends on:
Blocks:
 
Reported: 2003-03-17 13:22 UTC by _ pkuzel
Modified: 2007-11-05 13:44 UTC (History)
2 users (show)

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 _ pkuzel 2003-03-17 13:22:23 UTC
Ocassionaly completion is not working at all. It's
not well reproducible but it happens.
Comment 1 _ pkuzel 2003-03-17 13:26:57 UTC
It's worth to resolve till 3.5 if situation permits.
Comment 2 _ pkuzel 2003-03-20 11:58:59 UTC
Brute force tests are not still able to reproduce it.

There is also a workaround, to invoke Reload document action.
Comment 3 bht 2003-03-22 09:04:38 UTC
For me this 100% reproducible under the following fairly normal and
clean conditions:

Build 200303131400
Win98
JDK1.4.1

- Have 2 projects, P1 and P2.
- In the project tab, P1 and P2 each have their own file systems, not
overlapping (normal situation).
- In the file systems tab, P1 and P2 share some of the file systems
(normal situation, don't know if this is necessary for failure).
- P1 is the project we are interested in. Open P1 and re-build the
code completion databases for all file systems in and check that it
works (it does work in my case).
- Switch to P2 and back to P1
- Try "Go to class" [Alt+Shift+O]

Result: The code completion does not work at all although it was
re-built during the same session a few minutes earlier.

Quite annoying.
Comment 4 _ pkuzel 2003-03-24 09:18:55 UTC
Bernard you have uncovered it for Java sources. I'll fill new issue
for XML documents.
Comment 5 Tomas Hurka 2003-04-03 14:08:52 UTC
code completion is handled by editor module.
Comment 6 Martin Roskanin 2003-04-03 15:02:01 UTC
Bernard,

it could be the effect of the issue #31974
During project switching the parser DB was deleted. Thus, if you
returned to the project P1 again no parser DB files are available.
Although the parsing would start automaticaly, the databases will not
be available immediately after project P1 restore. Please, verify, if
I am right. Perform your reproduction steps and then look at your
<user dir> system/ParserDB folder, whether the parserdb files are
there. You can also use Tools/Code Completion Database Manager.
The fix of 31974 should fix this problem.
Comment 7 bht 2003-05-10 02:51:56 UTC
Martin,

I made the test as you suggested. It works now.

In fact I could not detect any code completion failure lately except a
reproducible case that is documented in issue 33515.
I made a testcase for that so hopefully fixing it is easy enough.
Comment 8 Martin Roskanin 2003-05-12 14:20:46 UTC
OK, resolving as worksforme. If you reproduce the issue again, please
reopen it.
Thanks.