Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » PHP Development Tools (PDT) » No autocompletion - even with simple code
No autocompletion - even with simple code [message #93276] Wed, 11 February 2009 14:13 Go to next message
Ingo Renner is currently offline Ingo RennerFriend
Messages: 40
Registered: July 2009
Member
Hi all,

I have a problem here with autocompletion not working even with that
simple code...

class X extends Y implements Z {

public function __construct($host = 'localhost', $port = 8180, $path =
'/') {
parent::_construct($host, $port, $path);

$h <-- no autocompletion here (for $host), only $HTTP_* global variables
}

}

There's also no overwrite indicator for the constructor.

Any idea what could cause this? In other projects this works fine however.


Ingo
Re: No autocompletion - even with simple code [message #93836 is a reply to message #93276] Tue, 17 February 2009 11:53 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: michael.zend.com

Hi,

Can you report a bug?

Thanks!

"Ingo Renner" <ingo@typo3.org> wrote in message
news:gmumec$f0o$1@build.eclipse.org...
> Hi all,
>
> I have a problem here with autocompletion not working even with that
> simple code...
>
> class X extends Y implements Z {
>
> public function __construct($host = 'localhost', $port = 8180, $path =
> '/') {
> parent::_construct($host, $port, $path);
>
> $h <-- no autocompletion here (for $host), only $HTTP_* global variables
> }
>
> }
>
> There's also no overwrite indicator for the constructor.
>
> Any idea what could cause this? In other projects this works fine however.
>
>
> Ingo
Re: No autocompletion - even with simple code [message #93850 is a reply to message #93836] Tue, 17 February 2009 13:48 Go to previous messageGo to next message
Ingo Renner is currently offline Ingo RennerFriend
Messages: 40
Registered: July 2009
Member
Michael Spector wrote:

Hi Michael,

> Can you report a bug?

sure, will do. Is there anything I could attach that could help you find
out what's going on / that could be of help to reproduce the issue? Any
logs or so?


best
Ingo
Re: No autocompletion - even with simple code [message #94001 is a reply to message #93850] Thu, 19 February 2009 12:52 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: michael.zend.com

Hi Ingo,

This is a message not just for you but also for all who is willing to help
PDT project.
I'll appreciate if you attach a unit test for code assit bug to the bug
report. Here are the instructions:

1. The unit test file must end with ".pdtt" extension

2. Unit test format is the following:

--TEST--
Test description
--FILE--
<?php
File contents. Put '|' character where you suppose to call the code assist.
?>
--EXPECT--
Expected output

3. Expected output is a list of: type(A), method(A), field(A) or keyword(A)
entries, where A is an element name and 'type', 'method', 'field' or
'keyword' are element types:

a) 'type' refers to class, interface or namespace
b) 'method' refers to method or function
c) 'field' refers to variable or constant
d) 'keyword' refers to a PHP keyword or PHPDoc tag.

4. Example:

--TEST--
Test whether code assist of class instantiation works (bug #12345)
--FILE--
<?php
class MyClass1 {}
class MyClass2 {}
$a = new MyCl|
?>
--EXPECT--
type(MyClass1)
type(MyClass2)

More examples can be found here:
http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.pdt/tes ts/org.eclipse.php.test/workspace/codeassist/?root=Tools_Pro ject

Thanks for your help!

Best regards,
Michael


"Ingo Renner" <ingo@typo3.org> wrote in message
news:gnef7s$dsn$1@build.eclipse.org...
> Michael Spector wrote:
>
> Hi Michael,
>
>> Can you report a bug?
>
> sure, will do. Is there anything I could attach that could help you find
> out what's going on / that could be of help to reproduce the issue? Any
> logs or so?
>
>
> best
> Ingo
Re: No autocompletion - even with simple code [message #94060 is a reply to message #94001] Thu, 19 February 2009 18:30 Go to previous messageGo to next message
Roy Ganor is currently offline Roy GanorFriend
Messages: 149
Registered: July 2009
Senior Member
Great stuff! I am sure we will be able to direct people to this method
when they meet code assist issue.

The next wiki page summarizes the pdtt method, including how to create and
submit a pdtt test -
http://wiki.eclipse.org/PDTT_-_PHP_5.3_Code_Assist_Tests

BTW - can we change the "type" element to "namespace" when the type is
really a namespace? I think that most users will not understand it.

Thanks!
- Roy


Michael Spector wrote:


> Hi Ingo,

> This is a message not just for you but also for all who is willing to help
> PDT project.
> I'll appreciate if you attach a unit test for code assit bug to the bug
> report. Here are the instructions:

> 1. The unit test file must end with ".pdtt" extension

> 2. Unit test format is the following:

> --TEST--
> Test description
> --FILE--
> <?php
> File contents. Put '|' character where you suppose to call the code assist.
> ?>
> --EXPECT--
> Expected output

> 3. Expected output is a list of: type(A), method(A), field(A) or keyword(A)
> entries, where A is an element name and 'type', 'method', 'field' or
> 'keyword' are element types:

> a) 'type' refers to class, interface or namespace
> b) 'method' refers to method or function
> c) 'field' refers to variable or constant
> d) 'keyword' refers to a PHP keyword or PHPDoc tag.

> 4. Example:

> --TEST--
> Test whether code assist of class instantiation works (bug #12345)
> --FILE--
> <?php
> class MyClass1 {}
> class MyClass2 {}
> $a = new MyCl|
> ?>
> --EXPECT--
> type(MyClass1)
> type(MyClass2)

> More examples can be found here:
>
http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.pdt/tes ts/org.eclipse.php.test/workspace/codeassist/?root=Tools_Pro ject

> Thanks for your help!

> Best regards,
> Michael


> "Ingo Renner" <ingo@typo3.org> wrote in message
> news:gnef7s$dsn$1@build.eclipse.org...
>> Michael Spector wrote:
>>
>> Hi Michael,
>>
>>> Can you report a bug?
>>
>> sure, will do. Is there anything I could attach that could help you find
>> out what's going on / that could be of help to reproduce the issue? Any
>> logs or so?
>>
>>
>> best
>> Ingo
Re: No autocompletion - even with simple code [message #94465 is a reply to message #94060] Mon, 23 February 2009 07:55 Go to previous messageGo to next message
Jorrit Schippers is currently offline Jorrit SchippersFriend
Messages: 26
Registered: July 2009
Junior Member
Roy Ganor wrote:
> Great stuff! I am sure we will be able to direct people to this method
> when they meet code assist issue.
>
> The next wiki page summarizes the pdtt method, including how to create
> and submit a pdtt test -
> http://wiki.eclipse.org/PDTT_-_PHP_5.3_Code_Assist_Tests
>
> BTW - can we change the "type" element to "namespace" when the type is
> really a namespace? I think that most users will not understand it.
>
> Thanks!
> - Roy

I must say that this is a very good development. I only wonder why there
is a reference to PHP 5.3 in the wiki name, what does this have to do
with PHP 5.3? From the looks of it, it should work with PHP 5.2.

--
Jorrit
Re: No autocompletion - even with simple code [message #94493 is a reply to message #94465] Mon, 23 February 2009 12:23 Go to previous message
Roy Ganor is currently offline Roy GanorFriend
Messages: 149
Registered: July 2009
Senior Member
Absolutely right, it seems that we should change the page's name.

Regards,
- Roy

Jorrit Schippers wrote:

> Roy Ganor wrote:
>> Great stuff! I am sure we will be able to direct people to this method
>> when they meet code assist issue.
>>
>> The next wiki page summarizes the pdtt method, including how to create
>> and submit a pdtt test -
>> http://wiki.eclipse.org/PDTT_-_PHP_5.3_Code_Assist_Tests
>>
>> BTW - can we change the "type" element to "namespace" when the type is
>> really a namespace? I think that most users will not understand it.
>>
>> Thanks!
>> - Roy

> I must say that this is a very good development. I only wonder why there
> is a reference to PHP 5.3 in the wiki name, what does this have to do
> with PHP 5.3? From the looks of it, it should work with PHP 5.2.
Previous Topic:Possible to search variables array key/value?
Next Topic:Text file: how to enable word wrap
Goto Forum:
  


Current Time: Tue Apr 23 07:40:32 GMT 2024

Powered by FUDForum. Page generated in 0.03894 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top