NuSphere Forums Forum Index
NuSphere Forums
Reply to topic
[resolved] Code Completition issue


Joined: 21 Oct 2004
Posts: 81
Location: UK
Reply with quote
I'm using PhpED 5.2 b5235. I have a project with 2 files:

widget.php:
...
class Widget
{
public function foo()
...


index.php:
...
require_once('widget.php');
$widget = new Widget();
$widget->
...

Code completion should now be available, suggesting foo(), right? This works if I have "Limit to includes" on, but if I do not, then code completion doesn't suggest anything. Surely as widget.php is part of the project, it should offer completion. It's fine if the Widget class is defined in index.php. Putting "@var Widget" before $widget = new Widget() didn't help.
View user's profileFind all posts by QuboidSend private message
Site Admin

Joined: 13 Jul 2003
Posts: 8342
Reply with quote
your sample works fine for me:


please check that both files are in the project, the project itself is ACTIVE (bolded in the workspace), and finally check that files have no syntax error and widget class is shown in the Code Explorer.


Last edited by dmitri on Wed Apr 30, 2008 9:43 pm; edited 1 time in total

_________________
The PHP IDE team
View user's profileFind all posts by dmitriSend private messageVisit poster's website


Joined: 21 Oct 2004
Posts: 81
Location: UK
Reply with quote
Works fine for me too. I'll keep an eye out for this but unless something comes up, I think it's safe to assume the error was between keyboard and seat.
View user's profileFind all posts by QuboidSend private message
Site Admin

Joined: 13 Jul 2003
Posts: 8342
Reply with quote
Quote:
I think it's safe to assume the error was between keyboard and seat

not necessarily.
it may be IDE was parsing a big project for you and did not reach widget.php for a while.

_________________
The PHP IDE team
View user's profileFind all posts by dmitriSend private messageVisit poster's website


Joined: 21 Oct 2004
Posts: 81
Location: UK
Reply with quote
Nope, it was little more than the skeleton you'd use for testing. Embarassed
View user's profileFind all posts by QuboidSend private message
[resolved] Code Completition issue
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All times are GMT - 5 Hours  
Page 1 of 1  

  
  
 Reply to topic