RapidPHP Code Explorer Bug

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
endelo
Posts: 10
Joined: Tue Jul 25, 2006 10:43 pm

RapidPHP Code Explorer Bug

Post by endelo »

I'm not sure if this is a bug that came with the new release of RapidPHP (7.4.0.70), but it seems the code explorer is not functioning properly in the "JavaScript" mode. It looks like RapidPHP only searches for "function NAME()" instead of "function NAME ()", because when I have a space between the function name and the parenthesis, the function is not listed in the code explorer.
User avatar
Karlis
Site Admin
Posts: 3605
Joined: Mon Jul 15, 2002 5:24 pm
Location: Riga, Latvia, Europe
Contact:

Post by Karlis »

It seems that function NAME() is correct in JavaScript. What you are saying is that you are allowed to put a space before (), but the Code Explorer is not honoring this, right?
Karlis Blumentals
Blumentals Software
www.blumentals.net
endelo
Posts: 10
Joined: Tue Jul 25, 2006 10:43 pm

Post by endelo »

Exactly. For instance, a function listed as

Code: Select all

function setVisible() {}
would show up in the explorer, whereas

Code: Select all

function setVisible () {}
would not be listed, although they are both syntactically correct.
endelo
Posts: 10
Joined: Tue Jul 25, 2006 10:43 pm

Post by endelo »

Here's some additional information on the bug. I just noticed another faulty Code Explorer behavior when dealing with JavaScript. Whenever the string "function ()" is found, the code explorer (assuming it's in javascript mode) will return a function with a blank name since it's trying to parse function (), and finds nothing to act as the name.

Example:

Code: Select all

[...]linkedTo : function ()
        {
            return document.getElementById(this.reference);
        },[...]
Will show in the code explorer as a function icon (the green folded arrow) with nothing beside it. When you try to select the arrow, it selects a blank block of text, that looks to be perhaps 5 spaces long? It looks like both of these bugs result from inproper parsing of javascript code, where only "function NAME()" or "function()" is accepted, whereas both "function NAME ()" and "function ()" should also be accepted.

Hope this additional information comes in handy.
User avatar
Karlis
Site Admin
Posts: 3605
Joined: Mon Jul 15, 2002 5:24 pm
Location: Riga, Latvia, Europe
Contact:

Post by Karlis »

Yes, thank you! We will try to correct this.
Karlis Blumentals
Blumentals Software
www.blumentals.net
Post Reply