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 196708 - AssertionError: The same token (index: 9497 - PHP_CLOSETAG) was precessed before. Please report this to help fix issue 188809. <?php /* ==============================================================
Summary: AssertionError: The same token (index: 9497 - PHP_CLOSETAG) was precessed be...
Status: RESOLVED FIXED
Alias: None
Product: php
Classification: Unclassified
Component: Editor (show other bugs)
Version: 6.x
Hardware: All All
: P3 normal (vote)
Assignee: Petr Pisl
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-03-15 07:06 UTC by paolosca
Modified: 2011-06-16 19:58 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 173093


Attachments
stacktrace (9.55 KB, text/plain)
2011-03-15 07:06 UTC, paolosca
Details

Note You need to log in before you can comment on or make changes to this bug.
Description paolosca 2011-03-15 07:06:14 UTC
Build: NetBeans IDE Dev (Build nbms-and-javadoc-6677-on-110218)
VM: Java HotSpot(TM) Client VM, 19.1-b02, Java(TM) SE Runtime Environment, 1.6.0_24-b07
OS: Linux

User Comments:
paolosca: typed pg_esc, auto complete dialog opens, I click on pg_escape_string() error pops up.




Stacktrace: 
java.lang.AssertionError: The same token (index: 9497 - PHP_CLOSETAG)  was precessed before.
Please report this to help fix issue 188809.

<?php
/* ===================================================================
 * cncassis.php
 * Copyright (c) 2000-2005 Mediasoft snc
 *
 * Header:          Settore
 * Menu:            Assistenze
 * Archives:        cncmasco
 * Description:     Browse archive.
 * ===================================================================
 * Version History
 * 1.0.0.0 del 15.03.2011 Attivato programma
 */

// ======================================== IMPOSTAZIONI GENERICHE ===
// ===================================================================
error_reporting (E_ALL);
include("uticon.php");
//include($dirinc . "/allegati.inc.php");

$archivio = "cnpiacon";
$bint = "";
$saveerr = false;
if ($azione == "") {$azione = "B";}

// Opzioni targhette - setto le opzioni orfane
if (!isset($cgopt["ANA"])) $cgopt["ANA"] = false;
if (!isset($cgopt["TEM"])) $cgopt["TEM"] = false;
if (!isset($c
   at org.netbeans.modules.php.editor.indent.FormatVisitor.showAssertionFor188809(FormatVisitor.java:1049)
   at org.netbeans.modules.php.editor.indent.FormatVisitor.addFormatToken(FormatVisitor.java:1060)
   at org.netbeans.modules.php.editor.indent.FormatVisitor.visit(FormatVisitor.java:490)
   at org.netbeans.modules.php.editor.parser.astnodes.ConditionalExpression.accept(ConditionalExpression.java:97)
   at org.netbeans.modules.php.editor.parser.astnodes.visitors.DefaultVisitor.scan(DefaultVisitor.java:54)
   at org.netbeans.modules.php.editor.indent.FormatVisitor.scan(FormatVisitor.java:188)
Comment 1 paolosca 2011-03-15 07:06:17 UTC
Created attachment 107004 [details]
stacktrace
Comment 2 paolosca 2011-04-04 18:10:04 UTC
Seems fixed in latest dev builds, I can't replicate the problem.
If you have no objections I would close this bug.
Comment 3 Petr Pisl 2011-06-15 18:16:54 UTC
All cases fixed from the exception reports. I committed the fix into web-main and releases/release701
Comment 4 Quality Engineering 2011-06-16 19:58:23 UTC
Integrated into 'main-golden'
Changeset: http://hg.netbeans.org/main-golden/rev/2b61d9a1e604
User: Petr Pisl <ppisl@netbeans.org>
Log: #196708 - AssertionError: The same token (index: 9497 - PHP_CLOSETAG) was precessed before.