Community
    • Login

    Function List plugin - how to debug

    Scheduled Pinned Locked Moved General Discussion
    3 Posts 2 Posters 761 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • S Offline
      SJW SJW SJW
      last edited by

      I try to use Function List with my PHP files but I can’t get anything to show in my classes.

      I tested with another file (I opened a class file from WordPress) and the function list was populated.

      I then compared with my file to the WordPress file and they were similar

      • Same opening line
      • Same comment structure
      • Same opening class line: class Name {

      The only differences I can see are:
      my properties are being setup as:

      private $variable;
      

      and in WP file:

      public static $variable
      

      and I am declaring functions:

      public function functionName() {
      

      and WP is:

      public static function autoloader() {
      

      The only differences I can see is the addition of the word static… I have looked in functionList.xml and with my very limited regEx knowledge, it appears that it should work?

      I changed all my declarations and functions to public static and private static to see if it would recognise but no…

      I really want this facility but I dont know how to make it work…

      1 Reply Last reply Reply Quote 1
      • ArkadiuszMichalskiA Offline
        ArkadiuszMichalski
        last edited by

        You can try other parser:
        https://github.com/MAPJe71/Languages/tree/master/PHP - Personal Home Page%2C PHP Hypertext Preprocessor/Config

        S 1 Reply Last reply Reply Quote 1
        • S Offline
          SJW SJW SJW @ArkadiuszMichalski
          last edited by

          Need to have a closing php tag in the file for the function list to work…

          ?>
          

          Minor thing that caused a lot of pain…

          1 Reply Last reply Reply Quote 0

          Hello! It looks like you're interested in this conversation, but you don't have an account yet.

          Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

          With your input, this post could be even better 💗

          Register Login
          • First post
            Last post
          The Community of users of the Notepad++ text editor.
          Powered by NodeBB | Contributors