Code Explorer not working correctly in a project?

Post your questions and problem reports here

Moderator: kfury77

Forum rules
Please try to follow these guidelines. This will help to receive faster and more accurate response.
  • Check the Support section of the corresponding product first. Chances are you will find your answer there;
  • Do not create new topics for already reported problems. Add your comments to the existing topics instead;
  • Create separate topic for each problem request. Do NOT post a number of non-related problem reports in a single topic;
  • Give your topic a meaningful title. Titles such as "A question," "Bug report" and "Help!" provide others no clue what your message is about;
  • Include the version number of the software you are using;
  • This is not an official customer support helpdesk. If you need a prompt and official response, please contact our support team directly instead. It may take a while until you receive a reply in the forum;
Post Reply
CrazedEwok
Posts: 1
Joined: Mon Jun 17, 2013 12:50 am

Code Explorer not working correctly in a project?

Post by CrazedEwok »

Hi there,

I'm not sure if this is a bug or if I'm misunderstanding the capabilities of code exploration in a project. So, I currently have a very simple project in one folder: index.php and class.JchWord.php. The class file, unexpectedly, defines a class, and I'm including it in index.php. When I'm viewing index.php and I open the code explorer, the JchWord class is not listed (although it works fine when I'm in class.JchWord.php), even after I go into Edit Current Project and refresh the library data. Function suggestion only works when I type a name of a function that I know exists in the class (if I type out "JchWord::SomeFunction(", it then begins to suggest arguments), but it will not provide function hints before that like it provides for built-in PHP functions. Is something wrong, or am I just expecting something that isn't a feature in this program?

Thanks!
doncht
Posts: 9
Joined: Thu Mar 07, 2013 7:13 pm

Re: Code Explorer not working correctly in a project?

Post by doncht »

There was actually an update that improves Code Explorer Usability. I hope this helps.

http://forums.blumentals.net/viewtopic. ... rer#p21251
Dream as if you'll live forever, live as if you'll die today. Image
User avatar
Aivars
Blumentals Software Developer
Posts: 2462
Joined: Thu Aug 22, 2002 1:40 pm
Location: Latvia

Re: Code Explorer not working correctly in a project?

Post by Aivars »

Code explorer will only list classes, variables, functions etc listed in the current file, so the behavior of not seeing class defined in another file is expected.
The function hints that show information about what the functionality of the function is won't be displayed because PHP does not support defining such for custom functions. There are unofficial standards such as PHPDocumentator but all of those are not supported. The hints for built-in functions were obtained from PHP documentation.
Blumentals Software Programmer
User avatar
Aivars
Blumentals Software Developer
Posts: 2462
Joined: Thu Aug 22, 2002 1:40 pm
Location: Latvia

Re: Code Explorer not working correctly in a project?

Post by Aivars »

Autocomplete doesn't work for Class::... (I'm not sure why, I'll find out if it's a bug), but if you do something like:

$jw = new JchWord();
$jw->.....

then autocomplete will work.
Blumentals Software Programmer
Post Reply