Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 330879 - Code assist not working on a class variable when invoking a function inside the definition of a user function
Summary: Code assist not working on a class variable when invoking a function inside t...
Status: CLOSED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: PDT (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows Vista
: P3 major (vote)
Target Milestone: ---   Edit
Assignee: PHP Core CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-11-23 01:13 EST by Mauro Molinari CLA
Modified: 2020-05-14 11:18 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Mauro Molinari CLA 2010-11-23 01:13:06 EST
Build Identifier: M20100909-0800

In the situation described in the steps to repro, code assist does not work.

Reproducible: Always

Steps to Reproduce:
1. create a PHP project
2. create MyClass.php and type this into it:

<?php
class MyClass
{
  public function doSomething()
  {

  }
}

3. create test.php and type this into it:

<?php
function test()
{
  $c = new MyClass();
  $c->|
  print_r($c->|)
}

4. go to line 5 ($c->|) and try to invoke code completion at "|": code completion does work!

5. go to line 6 (print_r($c->|)) and try to invoke code completion at "|": code completion does not work (no suggestions given)
Comment 1 xu jiaxi CLA 2010-11-23 01:29:50 EST
Testing the latest HEAD code,  CA works fine with your code.
So I guess this has been fixed.
You can download the nightly builds from https://hudson.eclipse.org/hudson/job/cbi-pdt-3.0-indigo/, and have a try.
Comment 2 Mauro Molinari CLA 2010-11-23 03:21:52 EST
I will see if I can test the nightly build, thank you. Anyway, can you reproduce with PDT 2.2.1?
Comment 3 Zhongwei Zhao CLA 2011-04-14 03:06:42 EDT
Xu is right,it has been fixed in head
Comment 4 Mauro Molinari CLA 2011-07-01 13:14:50 EDT
Verified in PDT 3.0.0. Thanks.
Comment 5 Sylvia Tancheva CLA 2015-06-22 09:40:07 EDT
Closing