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 193031 - AssertionError: The same token (index: 701 - WHITESPACE) was precessed before. Please report this to help fix issue 188809. <?php class Model_Zendcalendar extends Zend_Db_Table { protected $_n
Summary: AssertionError: The same token (index: 701 - WHITESPACE) was precessed befor...
Status: RESOLVED FIXED
Alias: None
Product: php
Classification: Unclassified
Component: Editor (show other bugs)
Version: 7.0
Hardware: All All
: P3 normal (vote)
Assignee: Petr Pisl
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-12-08 08:44 UTC by nikpet
Modified: 2011-06-17 04:51 UTC (History)
17 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 174785


Attachments
stacktrace (8.21 KB, text/plain)
2010-12-08 08:44 UTC, nikpet
Details

Note You need to log in before you can comment on or make changes to this bug.
Description nikpet 2010-12-08 08:44:33 UTC
This bug was originally marked as duplicate of bug 191184, that is already resolved. This bug is still valid, so this seems to be another bug, but it might be related.

Build: NetBeans IDE Dev (Build 201012080001)
VM: Java HotSpot(TM) Client VM, 16.3-b01, Java(TM) SE Runtime Environment, 1.6.0_20-b02
OS: Windows XP

User Comments:
GUEST: OMG I lost an entire class, awesome!

nikpet: Alt+Shift+F - to format when lasts action closing bracket '}' was missing.

dmakovec: Hit cmd-shift-F to re-align the code in the file

GUEST: Use Shift + Alt + F for my code layout.

ppisl: Just format the text from #133465

nikpet: When using code Format ot a method without a closing bracket "}"

nikpet: tried Autocomplete without the closing bracket "}"

GUEST: Ctrl, Shift, F to format code shortly after using a find to replace comment delimeters with blank.

fzamboj: alt+shift+f

nikpet: Wrote if(......) { without the closing bracket a presed Alt+Shift+F (code formating)




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

<?php

class Model_Zendcalendar extends Zend_Db_Table {

    protected $_name = 'zend_calendar';

    public function addTournament($data) {
        return $this->insert($data);
    }

    public function getAllVytrshenByYear($year) {
        $select = $this->select();
        $select->from(array('c' => 'zend_calendar'), array('id', 'cat', 'start_date', 'end_date', 'organizer', 'place', 'description', 'more_info',))
                ->where('cat = ?', 1)
                ->where('YEAR(start_date) = ?', $year)
                ->order('start_date')
                ->joinLeft(array('f' => 'zend_calendar_files'), 'c.id = f.id', array('info', 'results', 'games'))
                ->setIntegrityCheck(false);
        return $this->fetchAll($select);
    }

    public function getAllOtkritiByYear($year) {
        $select = $this->select();
        $select->from(array('c' => 'zend_calend
   at org.netbeans.modules.php.editor.indent.FormatVisitor.showAssertionFor188809(FormatVisitor.java:1048)
   at org.netbeans.modules.php.editor.indent.FormatVisitor.addFormatToken(FormatVisitor.java:1059)
   at org.netbeans.modules.php.editor.indent.FormatVisitor.scan(FormatVisitor.java:194)
   at org.netbeans.modules.php.editor.parser.astnodes.visitors.DefaultVisitor.visit(DefaultVisitor.java:119)
   at org.netbeans.modules.php.editor.indent.FormatVisitor.visit(FormatVisitor.java:442)
   at org.netbeans.modules.php.editor.parser.astnodes.ClassDeclaration.accept(ClassDeclaration.java:90)
Comment 1 nikpet 2010-12-08 08:44:36 UTC
Created attachment 103719 [details]
stacktrace
Comment 2 larsomat 2011-04-27 07:53:21 UTC
Still happening in latest nightly of Netbeans 7.0
Comment 3 Petr Pisl 2011-06-15 22:45:49 UTC
Fixed in web-main and releases/release701.
Comment 4 Quality Engineering 2011-06-16 19:59:33 UTC
Integrated into 'main-golden'
Changeset: http://hg.netbeans.org/main-golden/rev/14bf26c911ee
User: Petr Pisl <ppisl@netbeans.org>
Log: #193031 - AssertionError: The same token (index: 701 - WHITESPACE) was precessed before.
Comment 5 Quality Engineering 2011-06-17 04:51:20 UTC
Integrated into 'releases'
Changeset: http://hg.netbeans.org/releases/rev/4972a357780d
User: Petr Pisl <ppisl@netbeans.org>
Log: #193031 - AssertionError: The same token (index: 701 - WHITESPACE) was precessed before.
(transplanted from 14bf26c911ee865290a9d521810d9a35ae9e2aa3)