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 240973 - AssertionError: The same token (index: 83 - PHP_COMMENT, format tokens: 158) was precessed before. Please report this to help fix issue 188809.
Summary: AssertionError: The same token (index: 83 - PHP_COMMENT, format tokens: 158) ...
Status: RESOLVED FIXED
Alias: None
Product: php
Classification: Unclassified
Component: Editor (show other bugs)
Version: 8.0
Hardware: All All
: P3 normal (vote)
Assignee: Ondrej Brejla
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-01-26 13:43 UTC by alesak
Modified: 2014-01-28 03:05 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 206972


Attachments
stacktrace (8.64 KB, text/plain)
2014-01-26 13:43 UTC, alesak
Details

Note You need to log in before you can comment on or make changes to this bug.
Description alesak 2014-01-26 13:43:22 UTC
Build: NetBeans IDE 8.0 Beta (Build 201401141042)
VM: Java HotSpot(TM) 64-Bit Server VM, 24.45-b08, Java(TM) SE Runtime Environment, 1.7.0_45-b18
OS: Linux

User Comments:
alesak: context action in PHP file




Stacktrace: 
java.lang.AssertionError: The same token (index: 83 - PHP_COMMENT, format tokens: 158)  was precessed before.
Please report this to help fix issue 188809.

<?php

/* 
 * The MIT License
 *
 * Copyright 2014 alesak.NET Ales Seifert <seifert at alesak dot net>.
 *
 * Permission is hereby granted, free of charge, to any person obtaining a copy
 * of this software and associated documentation files (the "Software"), to deal
 * in the Software without restriction, including without limitation the rights
 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
 * copies of the Software, and to permit persons to whom the Software is
 * furnished to do so, subject to the following conditions:
 *
 * The above copyright notice and this permission notice shall be included in
 * all copies or substantial portions of the Software.
 *
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 * FITNESS FOR A 
   at org.netbeans.modules.php.editor.indent.FormatVisitor.addFormatToken(FormatVisitor.java:1430)
   at org.netbeans.modules.php.editor.indent.FormatVisitor.visit(FormatVisitor.java:1098)
   at org.netbeans.modules.php.editor.parser.astnodes.IfStatement.accept(IfStatement.java:108)
   at org.netbeans.modules.php.editor.parser.astnodes.visitors.DefaultVisitor.scan(DefaultVisitor.java:147)
   at org.netbeans.modules.php.editor.indent.FormatVisitor.scan(FormatVisitor.java:224)
   at org.netbeans.modules.php.editor.parser.astnodes.visitors.DefaultVisitor.scan(DefaultVisitor.java:154)
Comment 1 alesak 2014-01-26 13:43:24 UTC
Created attachment 144378 [details]
stacktrace
Comment 2 Ondrej Brejla 2014-01-27 09:36:37 UTC
Can you describe what you exactly did? You had to type something in editor. You probably tired to write something around this line... 

/* @var $item Indicium_ShoppingCart_Content

But I need to know what and where exactly :/ It would be great if you can evaluate it more. Thanks.
Comment 3 alesak 2014-01-27 12:47:39 UTC
You right, I tried to put Indicium_ShoppingCart_Content from context help as I did not remember it and when I found this class in context menu and pressed Enter it happen.
Comment 4 Ondrej Brejla 2014-01-27 12:49:02 UTC
By "context help" you mean "code completion window", ctrl+space, right?
Comment 5 Ondrej Brejla 2014-01-27 12:52:47 UTC
Great, reproducible.
Comment 6 Ondrej Brejla 2014-01-27 13:06:03 UTC
Fixed in web-main #ca0edb96e95c
Comment 7 Quality Engineering 2014-01-28 03:05:12 UTC
Integrated into 'main-silver', will be available in build *201401280001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/ca0edb96e95c
User: Ondrej Brejla <obrejla@netbeans.org>
Log: #240973 - AssertionError: The same token (index: 83 - PHP_COMMENT, format tokens: 158) was precessed before. Please report this to help fix issue 188809.