Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » PHP Development Tools (PDT) » Code completion in PHP
Code completion in PHP [message #628910] Fri, 24 September 2010 16:50 Go to next message
No real name is currently offline No real name
Messages: 3
Registered: September 2010
Junior Member
O hai!

I have recently started using Eclipse for PHP development. One thing I noticed is that code completion for mysql functions doesn't work. It offers some loop code blocks for fetching data etc. but it doesn't display a single mysql function.

Is there a way to enable code completion for those functions? Thanks in advance.

[Updated on: Fri, 24 September 2010 17:42]

Report message to a moderator

Re: Code completion for mysql functions in PHP [message #628913 is a reply to message #628910] Fri, 24 September 2010 17:06 Go to previous messageGo to next message
jim  is currently offline jim
Messages: 1
Registered: September 2010
Junior Member
I've got the same problem.
Re: Code completion for mysql functions in PHP [message #628921 is a reply to message #628910] Fri, 24 September 2010 17:42 Go to previous messageGo to next message
No real name is currently offline No real name
Messages: 3
Registered: September 2010
Junior Member
Update: Its not exclusive to mysql functions only. Lots of php functions are missing.
Re: Code completion for mysql functions in PHP [message #629157 is a reply to message #628921] Mon, 27 September 2010 11:00 Go to previous messageGo to next message
dominik is currently offline dominik
Messages: 122
Registered: July 2009
Senior Member
On 2010-09-24 19:42, andrejstanisev@hotmail.com wrote:
> Update: Its not exclusive to mysql functions only. Lots of php functions are
> missing.

What version of PHP You have in preferences?
Window->preferences->PHP Interpreter->PHP version
AFAIR After change You need to build project.
Also take a look at dynamic languages options.

After all check from where Eclipse is fetching information for code completion.
For my version it's:
Eclipse\plugins\org.eclipse.php.core_2.1.1.v20090921-1100\Re sources\language\php5.3\mysql.php

And I have there all of them:

function mysql_set_charset ($charset, $link_identifier = null) {}
function mysql () {}
function mysql_fieldname () {}
(...)

...and many others including headers, params and descriptions.
Re: Code completion in PHP [message #629357 is a reply to message #628910] Mon, 27 September 2010 22:57 Go to previous message
No real name is currently offline No real name
Messages: 3
Registered: September 2010
Junior Member
PHP version is set correctly and I can't see anything relevant in dynamic languages options.

How can I check if Eclipse has the right path for fetching code completion information?
Previous Topic:Web tools platform
Next Topic:xdebug problems
Goto Forum:
  


Current Time: Sun Sep 21 18:16:21 GMT 2014

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

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