| Summary: | Auto-complete of PHPDoc comments doesn't work | ||
|---|---|---|---|
| Product: | z_Archived | Reporter: | Jacob Weber <jacob> |
| Component: | PDT | Assignee: | PHP UI <php.ui-inbox> |
| Status: | CLOSED FIXED | QA Contact: | |
| Severity: | major | ||
| Priority: | P1 | CC: | gadi, ganoro |
| Version: | unspecified | ||
| Target Milestone: | --- | ||
| Hardware: | Macintosh | ||
| OS: | Mac OS X - Carbon (unsup.) | ||
| Whiteboard: | |||
PDT version 2.2.0.v201004270700 if it's reproducible on latest code this behavior is really critical to fix 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() {
}
}
?>
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? Hi,Jacob Thanks for your information! Fixed in head. 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
|
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: /** * |/** * */ */