NuSphere Forums Forum Index
NuSphere Forums
Reply to topic
Why don`t work "Find Declaration" (Shift+F12)


Joined: 27 Feb 2011
Posts: 19
Reply with quote
i try the PHPED 5.9.5 build 5989
Why don`t work "Find Declaration" (Shift+F12)
I create project with drupal 6 aqnd try subject function but the IDE write me Filed to find "node_load()" function. However, in version 5.6 such problems were not.
I'm waiting until fixed a bug At last this as very much want to upgrade.
View user's profileFind all posts by MirocowSend private message
Guru master

Joined: 24 Jul 2009
Posts: 737
Reply with quote
I'm using 5989 and use Drupal 6. Can't say I've had any problems with Code Completion or Find Declaration.

I posted this recently in another thread, which may be of assistance to you:

One possibility is that the project has corrupted meta data relating to your source files. You can first try right-clicking in the Code Explorer and doing a Refresh. If that does not work, you can exit PhpED and delete the project PPX and PPD files, which will be automatically re-created. I have seen corrupt PPD files cause problems, but that was a long time ago on an older version of PhpED. The DSK file contains breakpoints and other debug information, so you shouldn't need to delete that one.
View user's profileFind all posts by plugnplaySend private message


Joined: 27 Feb 2011
Posts: 19
Reply with quote
Some functions are not finding correct. For example, I could not find the cache_clear_all()
View user's profileFind all posts by MirocowSend private message
Guru master

Joined: 24 Jul 2009
Posts: 737
Reply with quote
Did you do delete the PPD and PPX files and/or do a Code Explorer Refresh?

I've just opened an index.php in a Drupal 6 project; cache_clear_all pops up fine with code completion and I can do Find Declaration.

Drupal 6 uses a stub cache implementation for use when loading and declares a 'fake' cache_clear_all, so if you do a Find Declaration it is the stub copy that is found rather than the normal run-time copy. Is that the problem you are getting?[/img]
View user's profileFind all posts by plugnplaySend private message


Joined: 27 Feb 2011
Posts: 19
Reply with quote
Yes i did. But nothing changed and the function is still not found. This problem you can see usually in the depth of the project. 5 or more steps in depth of project..
View user's profileFind all posts by MirocowSend private message
Guru master

Joined: 24 Jul 2009
Posts: 737
Reply with quote
I can't reproduce the problem. Code Completion and Find Declaration seem to work everywhere. 5990 has been released today and apparently fixes something to do with Code Completion. The change log says that is for static methods and singletons, which probably is not relevant to Drupal too much, but maybe see if the update helps.
View user's profileFind all posts by plugnplaySend private message


Joined: 27 Feb 2011
Posts: 19
Reply with quote
plugnplay wrote:
I can't reproduce the problem. Code Completion and Find Declaration seem to work everywhere. 5990 has been released today and apparently fixes something to do with Code Completion. The change log says that is for static methods and singletons, which probably is not relevant to Drupal too much, but maybe see if the update helps.


maybe, i try it
View user's profileFind all posts by MirocowSend private message
Why don`t work "Find Declaration" (Shift+F12)
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