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 268183 - AssertionError: The same token (index: 639 - PHPDOC_COMMENT, format tokens: 1278) was precessed before. Please report this to help fix issue 188809. <?php /** * @author Jiri Kapoun <kapoun4@gmail.
Summary: AssertionError: The same token (index: 639 - PHPDOC_COMMENT, format tokens: 1...
Status: NEW
Alias: None
Product: php
Classification: Unclassified
Component: Editor (show other bugs)
Version: Dev
Hardware: All All
: P3 normal (vote)
Assignee: Tomas Mysik
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-09-24 07:28 UTC by kapoun
Modified: 2016-11-18 04:07 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 205240


Attachments
stacktrace (9.90 KB, text/plain)
2016-09-24 07:28 UTC, kapoun
Details

Note You need to log in before you can comment on or make changes to this bug.
Description kapoun 2016-09-24 07:28:21 UTC
Build: NetBeans IDE Dev (Build 201609060002)
VM: Java HotSpot(TM) 64-Bit Server VM, 25.101-b13, Java(TM) SE Runtime Environment, 1.8.0_101-b13
OS: Linux

User Comments:
GUEST: Autocomplete issue, when I type the name of function

kapoun: I was writing PhpDoc comment, written '@depre' and hit Enter after code completion menu appeared.




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

<?php

/**
 * @author Jiri Kapoun <kapoun4@gmail.com>
 */

namespace Kapoun\DBAL;

use Kapoun\DBAL\QueryBuilder;
use Kapoun\Traits\ArrayLike;

/**
 * Record
 */
class Record implements \ArrayAccess, \Iterator, \Countable
{
  use ArrayLike;

  //public function __construct(array $values, Table $table, SelectQuery $updateQuery, SelectQuery $insertQuery = null)
  public function __construct(array $values, Table $table, \PDO $pdo, bool $new = false)
  {
    $this->array = $values;
    $this->keys  = $table->getColumns();
    $this->count = \count($this->keys);
    $this->pos   = 0;
    $this->table = $table;
    $this->pdo   = $pdo;
    $this->new   = $new;
  }

  public function getPrimaryKey() : PrimaryKey
  {
      if (!$this->new)
        $this->createPrimaryKey($this->table->getPkColumns());
  }

  public function getTable() : Table
  {
    return $t
   at org.netbeans.modules.php.editor.indent.FormatVisitor.addFormatToken(FormatVisitor.java:1676)
   at org.netbeans.modules.php.editor.indent.FormatVisitor.visit(FormatVisitor.java:981)
   at org.netbeans.modules.php.editor.parser.astnodes.FieldsDeclaration.accept(FieldsDeclaration.java:113)
   at org.netbeans.modules.php.editor.parser.astnodes.visitors.DefaultVisitor.scan(DefaultVisitor.java:150)
   at org.netbeans.modules.php.editor.indent.FormatVisitor.scan(FormatVisitor.java:230)
   at org.netbeans.modules.php.editor.parser.astnodes.visitors.DefaultVisitor.scan(DefaultVisitor.java:157)
Comment 1 kapoun 2016-09-24 07:28:25 UTC
Created attachment 162195 [details]
stacktrace
Comment 2 junichi11 2016-11-18 04:07:15 UTC
This may be related to the issue 268920.
So could you try using the new development version?

Thanks.