Community
    • Login

    Why does NotePad++ (using example 7.7), from functionsList.xml, not see all the functions in the panel?

    Scheduled Pinned Locked Moved Notepad++ & Plugin Development
    3 Posts 3 Posters 302 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.
    • А АА
      А А
      last edited by А А

      1. It seems to see a limited number of functions and in increments between them. For example
        1.1) If you duplicate the same function and change the name, only the 1st one will be shown
        1.2) If you delete the function before the last one, it will show the last one
        1.3) The regular expression works, and the “Find All” function finds everything.

      Screenshot_1.jpg Screenshot_2.pngScreenshot_3.png

      PeterJonesP Lycan ThropeL 2 Replies Last reply Reply Quote 0
      • PeterJonesP
        PeterJones @А А
        last edited by PeterJones

        @А-А ,

        Notepad++ v7.7 was from 2019. Have you tried to see whether sometime in the last half decade, that has been improved?

        Some of the Function List definitions have been updated since then, but not all, so it might be better, but it’s not guaranteed – and you’d have to make sure that it overwrites your copy of autoCompletion\LANGUAGENAME.xml. update: nevermind, I just saw “SourcePawn”, so I’m guessing that’s a custom language, so updating Notepad++ will not update that defition; I doubt that updating the executable will change how it processes, but it might.

        But in the end, the Function List feature is imperfect; and, because it’s relying on regex text match, rather than a state-based parser/lexer, it is inherently limited to what can be reasonably matched by a regex, and by the example code that the Developer and other contributors used when creating said regex.

        1 Reply Last reply Reply Quote 2
        • Lycan ThropeL
          Lycan Thrope @А А
          last edited by Lycan Thrope

          @А-А ,
          In addition to what @PeterJones has mentioned, there is also a quirk with the functionList that requires you to add I believe 2 carriage returns at the end of a file, to make it ‘see’ the last functions in a file. I found this to be the case recently when I was checking some code I had been fixing and noticed that one of the functions I was looking for was missing at the end of the file, and I remembered the bug, added two carriage return/line feeds, and it became visible. Read the FAQ for the FunctionList Basics where @MAPJe71 documents some of the bugs with the FunctionList.

          1 Reply Last reply Reply Quote 2
          • First post
            Last post
          The Community of users of the Notepad++ text editor.
          Powered by NodeBB | Contributors