Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 311314 - Auto-complete of PHPDoc comments doesn't work
Summary: Auto-complete of PHPDoc comments doesn't work
Status: CLOSED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: PDT (show other bugs)
Version: unspecified   Edit
Hardware: Macintosh Mac OS X - Carbon (unsup.)
: P1 major (vote)
Target Milestone: ---   Edit
Assignee: PHP UI CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-05-02 12:32 EDT by Jacob Weber CLA
Modified: 2020-05-14 11:07 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jacob Weber CLA 2010-05-02 12:32:25 EDT
Build Identifier: 20100218-1602

Type /** [enter] before a PHP function, and it should auto-complete a PHPDoc comment. But it displays this instead:
/**
 * /**
 *
 */
 */


Reproducible: Always

Steps to Reproduce:
1. Create a new file test.php.
2. Enter the following text in it:
  <?php 
  class A {
    public $v;
    public function __construct() {
    }
    public function test() {
    }
  }
  ?>
3. Add a line before the $v or __construct() declarations, and type /** [enter]. You'll get a PHPDoc comment, as expected.
4. Add a line before the test() declaration, and type /** [enter]. You'll get the following, with the cursor where the | is:
  /**
   * |/**
   *
   */
   */
Comment 1 Jacob Weber CLA 2010-05-02 12:33:56 EDT
PDT version 2.2.0.v201004270700
Comment 2 Roy Ganor CLA 2010-05-02 13:04:51 EDT
if it's reproducible on latest code this behavior is really critical to fix
Comment 3 Zhongwei Zhao CLA 2010-05-02 22:45:30 EDT
I could not reproduce it,does it fixed?

Tested with

<?php 
class A {
public $v;
public function __construct() {
}

/**
* |
public function test() {
}
}
?>

and 


<?php 
class A {
public $v;
public function __construct() {
}
/**
* |
public function test() {
}
}
?>
Comment 4 Jacob Weber CLA 2010-05-02 23:08:46 EDT
I just realized that the project where I saw this behavior isn't a PHP project. The .project file has no buildSpec or natures. Is the PHP editor supposed to work in a non-PHP project?
Comment 5 Zhongwei Zhao CLA 2010-05-03 00:28:45 EDT
Hi,Jacob

Thanks for your information!

Fixed in head.
Comment 6 Gadi Goldbarg CLA 2010-05-17 05:41:59 EDT
Verified at PDT-2.2.0.v20100504

After using step to reproduced at PHP files see this:
<?php 
  class A {
/**
 * 
 * Enter description here ...
 * @var unknown_type
 */
  	public $v;
    public function __construct() {
    }
    public function test() {
    }
  }
  ?>
Try to use the same code at JavaScript and Java projects - again the same right behavior

Closing this issue...

Verified by
Teodor Kirkov
teodor.k@zend.com