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 144809 - AssertionError at org.netbeans.modules.php.editor.PHPCodeCompletion.findLHSExpressionType
Summary: AssertionError at org.netbeans.modules.php.editor.PHPCodeCompletion.findLHSEx...
Status: RESOLVED DUPLICATE of bug 147736
Alias: None
Product: php
Classification: Unclassified
Component: Editor (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: Tomasz Slota
URL: http://statistics.netbeans.org/except...
Keywords: RANDOM
Depends on:
Blocks:
 
Reported: 2008-08-22 07:04 UTC by rmatous
Modified: 2008-09-19 15:42 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 96410


Attachments
reproducible case (at least for me) (331 bytes, text/plain)
2008-08-22 10:47 UTC, rmatous
Details

Note You need to log in before you can comment on or make changes to this bug.
Description rmatous 2008-08-22 07:04:49 UTC
Build: NetBeans IDE Dev (Build 080820)
VM: Java HotSpot(TM) Client VM, 1.5.0_13-b05, Java(TM) 2 Runtime Environment, Standard Edition, 1.5.0_13-b05
OS: Linux, 2.6.22-14-generic, i386
User comments: 
STACKTRACE: (first 10 lines)
java.lang.AssertionError
        at org.netbeans.modules.php.editor.PHPCodeCompletion.findLHSExpressionType(PHPCodeCompletion.java:689)
        at org.netbeans.modules.php.editor.PHPCodeCompletion.autoCompleteClassMembers(PHPCodeCompletion.java:858)
        at org.netbeans.modules.php.editor.PHPCodeCompletion.complete(PHPCodeCompletion.java:504)
        at
org.netbeans.modules.gsfret.editor.completion.GsfCompletionProvider$JavaCompletionQuery.addCodeCompletionItems(GsfCompletionProvider.java:565)
        at
org.netbeans.modules.gsfret.editor.completion.GsfCompletionProvider$JavaCompletionQuery.resolveCompletion(GsfCompletionProvider.java:551)
        at
org.netbeans.modules.gsfret.editor.completion.GsfCompletionProvider$JavaCompletionQuery.run(GsfCompletionProvider.java:387)
        at
org.netbeans.modules.gsfret.editor.completion.GsfCompletionProvider$JavaCompletionQuery.run(GsfCompletionProvider.java:219)
        at org.netbeans.napi.gsfret.source.Source.runUserActionTask(Source.java:481)
        at
org.netbeans.modules.gsfret.editor.completion.GsfCompletionProvider$JavaCompletionQuery.query(GsfCompletionProvider.java:292)
        at org.netbeans.spi.editor.completion.support.AsyncCompletionTask.run(AsyncCompletionTask.java:218)
Comment 1 Tomasz Slota 2008-08-22 07:20:50 UTC
Radku, do you know how to reproduce it?
Comment 2 rmatous 2008-08-22 10:47:59 UTC
Created attachment 68096 [details]
reproducible case (at least for me)
Comment 3 Tomasz Slota 2008-08-22 16:21:09 UTC
This has been already fixed by http://hg.netbeans.org/main?cmd=changeset;node=7892e0e584bb
Comment 4 rmatous 2008-08-22 17:32:51 UTC
thanks
Comment 5 rmatous 2008-08-27 05:20:09 UTC
great, thanks
Comment 6 Tomas Mysik 2008-09-04 11:21:17 UTC
This issue is back.

Product Version: NetBeans IDE Dev (Build 080904)
Java: 1.5.0_16; Java HotSpot(TM) Client VM 1.5.0_16-b02
System: Linux version 2.6.26-gentoo-r1 running on i386; UTF-8; cs_CZ (nb)
Comment 7 Tomasz Slota 2008-09-04 13:03:39 UTC
There are many possible ways to break this assertion, can you please provide a reproducible case?
Comment 8 Exceptions Reporter 2008-09-08 07:19:23 UTC
This issue has already 5 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=96410
Comment 9 Tomas Mysik 2008-09-18 20:13:48 UTC
Look at http://statistics.netbeans.org/analytics/detail.do?id=96410 for user comments.
Comment 10 Tomasz Slota 2008-09-18 20:37:34 UTC
Reproducible case would be instrumental. I don't see anything useful in the user comments, most duplicates come from old builds.
Comment 11 Tomas Mysik 2008-09-19 10:05:16 UTC
Reproduced *again*, randomly, very annoying. My case was:

inside method, I have a line:
$this->finished = $this->getLinkVar(self::FINISHED);
I changed "self" to class name "WizardForm" and tried to invoke CC after "::" -> AssertionError

Product Version: NetBeans IDE Dev (Build 080919)
Java: 1.5.0_16; Java HotSpot(TM) Client VM 1.5.0_16-b02
System: Linux version 2.6.26-gentoo-r1 running on i386; UTF-8; cs_CZ (nb)
Comment 12 Tomasz Slota 2008-09-19 10:22:35 UTC
Can you at least quote the line preceding "$this->finished = $this->getLinkVar(self::FINISHED)"? It is very important
Comment 13 rmatous 2008-09-19 11:42:00 UTC
Happened to me again a few times in an hour. This issue is very annoying !! 
Comment 14 Tomasz Slota 2008-09-19 13:12:06 UTC
I've improved the diagnostics:

http://hg.netbeans.org/main/rev/a907f9797b26

The assertion was changed to IllegalStateException
Comment 15 Tomasz Slota 2008-09-19 15:42:34 UTC
Marking as a duplicate of a more version of this bug

*** This issue has been marked as a duplicate of 147736 ***