• Login
Community
  • Login

Function List plugin - how to debug

Scheduled Pinned Locked Moved General Discussion
3 Posts 2 Posters 469 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
    SJW SJW SJW
    last edited by Oct 8, 2020, 2:32 AM

    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
    • A
      ArkadiuszMichalski
      last edited by Oct 8, 2020, 10:57 AM

      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 Apr 21, 2022, 6:10 AM Reply Quote 1
      • S
        SJW SJW SJW @ArkadiuszMichalski
        last edited by Apr 21, 2022, 6:10 AM

        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
        • First post
          Last post
        The Community of users of the Notepad++ text editor.
        Powered by NodeBB | Contributors