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 80493 - Code completion doesn't work
Summary: Code completion doesn't work
Status: VERIFIED FIXED
Alias: None
Product: soa
Classification: Unclassified
Component: BPEL Project (show other bugs)
Version: 5.x
Hardware: All Windows XP
: P1 blocker (vote)
Assignee: Denis Anisimov
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-07-18 16:05 UTC by kozlov
Modified: 2006-07-27 15:50 UTC (History)
6 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 kozlov 2006-07-18 16:05:18 UTC
Reproduced in build 060718.

To reproduce the bug:

- create a new schema;
- switch to Source view;
- place cursor under '<<xsd:schema ..... />';
- press 'Ctrl + Space'.

'No Suggestions'
Comment 1 Chris Webster 2006-07-18 16:46:31 UTC
If I put the cursor under <xsd:schema .../> isn't this outside the root element? 
Comment 2 Petr Blaha 2006-07-20 15:27:27 UTC
Please, add justification why did you change the priority from P3 to P1. Why did
you reported this issue as P3 originaly?
Comment 3 kozlov 2006-07-21 12:37:32 UTC
Testing of code completion is blocked by this bug.
Comment 4 kozlov 2006-07-21 12:40:11 UTC
Testing of code completion is blocked by this bug.
Comment 5 Marek Fukala 2006-07-21 14:17:39 UTC
The scenario works fine in netbeans 5.5 without EP (of course excluding the
'switch to source view' step). It might be caused by the EP... Can you please
verify your steps in pure 5.5 and change the subcategory if necessary then? BTW,
you have to type at least < to make the CC working. Just pressing Ctrl+space on
empty line won't work...
Comment 6 Petr Jiricka 2006-07-24 15:12:48 UTC
Ok, assigning to 'schema tools' for evaluation.
Comment 7 Samaresh Panda 2006-07-24 17:28:06 UTC
Interestingly, when I disable and enable schema based CC modules, everything
works fine. Need to investigate further, will keep you posted.
Comment 8 Samaresh Panda 2006-07-26 02:41:04 UTC
Sorry, my initial findings were incomplete.

Anyway, after hours of debugging, I found that BpelGrammarQuery is being
pickedup during code completion query invokation in an XSD file.

You can set a breakpoint in method queryElements() of XMLCompletionQuery.java
and see that the 'performer' which is a GrammarQuery, is a BpelGrammarQuery. And
hence no CC result is being displayed.

Assigning it to the enterprise folks.
Comment 9 Samaresh Panda 2006-07-26 02:47:45 UTC
Disable modules related to BPEL and restart the IDE. Everything starts working.
Comment 10 Denis Anisimov 2006-07-26 09:53:59 UTC
Yes, that's my fault.
I need to correct grammar manager in the way that it should accept ONLY Bpel
process, not any XML.

Will fix this shortly.
Comment 11 Denis Anisimov 2006-07-26 10:04:58 UTC
Now bpel grammar is used only for bpel.
Comment 12 kozlov 2006-07-27 15:50:44 UTC
Verified in build060726.