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 140531 - Code completion stoped working
Summary: Code completion stoped working
Status: RESOLVED FIXED
Alias: None
Product: xml
Classification: Unclassified
Component: Schema (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Samaresh Panda
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-07-17 14:27 UTC by Jaromir Uhrik
Modified: 2008-09-10 05:44 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
sample maven pom (652 bytes, text/plain)
2008-07-18 15:08 UTC, Milos Kleint
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jaromir Uhrik 2008-07-17 14:27:46 UTC
Product Version: NetBeans IDE Dev (Build 080715)
Java: 1.5.0_13; Java HotSpot(TM) Client VM 1.5.0_13-119
System: Mac OS X version 10.5.4 running on i386; MacRoman; en_US (nb)

-create new Maven project (Maven Quickstart Archetype)
-open .pom file of the project
-go to e.g. <modelVersion> tag and invoke code completion by ctrl+space (code completion appears correctly)
-delete ending tag </modelVersion>
-write ending tag </modelVersion> again
-go to <modelVersion> tag and invoke code completion by ctrl+space
-->> code completion doesn't appear ("no suggestion" appears instead)
Comment 1 Jaromir Uhrik 2008-07-17 14:30:25 UTC
Workaround is to push following: spacebar, backspace, Ctrl+S. Then it is possible to invoke code completion properly again.
Comment 2 Milos Kleint 2008-07-18 15:08:10 UTC
Created attachment 64971 [details]
sample maven pom
Comment 3 Milos Kleint 2008-07-18 15:10:57 UTC
attached is a sample pom.xml file. It seems that the triggering event for failing completion is the generation of
closing tag.
Anyway the element name part of the maven completion is done only by registering a xml schema that is picked up by the
schema completion support. Reassigning there for evaluation.
Comment 4 Samaresh Panda 2008-07-18 17:17:17 UTC
Per priority guidelines, this is a P3.
Comment 5 Samaresh Panda 2008-07-22 22:10:33 UTC
Sorry, how do I create a Maven project?
Comment 6 Milos Kleint 2008-07-23 05:05:22 UTC
1. Install Maven plguin via Tools/Plugins
2. either copy the attached pom.xml in an empty directory, or create a new maven project via File/New project.
Comment 7 Samaresh Panda 2008-08-05 07:17:35 UTC
I do agree with the problem but not with its priority.
Comment 8 Milos Kleint 2008-08-05 07:34:01 UTC
http://wiki.netbeans.org/BugPriorityGuidelines states for P4s
"Incorrect behavior that doesn't affect functionality"

that's clearly not the case here, the described steps to reproduce are just one case of completion getting lost BTW. I
keep on hitting Ctrl-Space repeatedly as the first time it says "no suggestion"
Comment 9 Samaresh Panda 2008-09-09 19:13:49 UTC
Fixed: http://hg.netbeans.org/main?cmd=changeset;node=3a22ee317341.
Comment 10 Quality Engineering 2008-09-10 05:44:25 UTC
Integrated into 'main-golden', will be available in build *200809100201* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/3a22ee317341
User: samaresh@netbeans.org
Log: #140531 Code completion stoped working