• Login
Community
  • Login

Function list empty for js files

Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
9 Posts 3 Posters 4.3k 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.
  • D
    Denis Peter
    last edited by Dec 1, 2017, 9:25 AM

    hello,
    My function lists are empty for all javascript files. I thought it was un bug, but the last version doesn’t resolve this problem (which appeared some months ago).
    Any idea, where this disagreement could come from ?

    M 1 Reply Last reply Dec 1, 2017, 4:21 PM Reply Quote 0
    • M
      MAPJe71 @Denis Peter
      last edited by Dec 1, 2017, 4:21 PM

      @Denis-Peter Hint: this forum has a search option.

      1 Reply Last reply Reply Quote 1
      • D
        Denis Peter
        last edited by Dec 1, 2017, 5:29 PM

        I did use this option before posting here… and gess what… I did’nt find (yes i’m probably so stupid)
        So a more precise hint would be gratedly appreciated ;-)

        S 2 Replies Last reply Dec 1, 2017, 6:26 PM Reply Quote 1
        • S
          Scott Sumner @Denis Peter
          last edited by Dec 1, 2017, 6:26 PM

          @Denis-Peter

          The search function on this site is awful. I often get better results by letting the “experts” do it: On Google, put this in the search bar: site:https://notepad-plus-plus.org/community _______
          where _______ are the search terms.

          For instance, site:https://notepad-plus-plus.org/community Function list empty for js files yields this as the second hit which may or may not help with your problem…good luck.

          1 Reply Last reply Reply Quote 3
          • S
            Scott Sumner @Denis Peter
            last edited by Dec 1, 2017, 6:41 PM

            @Denis-Peter

            I found that editing functionList.xml and changing this line:

            <association id= "javascript_function" langID="58" />

            to this:

            <association id= "javascript_function" langID="19" />

            made the Function List start working for .js files in Notepad++ 7.5.2 (after restarting N++).

            1 Reply Last reply Reply Quote 2
            • D
              Denis Peter
              last edited by Dec 2, 2017, 8:43 AM

              Thank you for your help, Scott Summer.
              I made the replacement (et restarted np++ 7.5.2), but, function lists was still empty for .js files !
              So, I read more into a discussion found with your previous hint : https://notepad-plus-plus.org/community/topic/12697/function-list-not-working-in-v7-2/7
              (a discussion which didn’t appear with the internal search function (and the keywords i used: “function list javascript…”)… ;-) ),
              and found a post saying to also add a given parser. So I added the parser. And… it still does not work. :-(

              By the way, this discussion ends up with “Doesn’t work :(”

              So, if somebody had a link or something, which would work…!

              And if users have to modify things into the program files, it means that this is still a bug, yet reported one year ago… ?!

              S 1 Reply Last reply Dec 2, 2017, 2:27 PM Reply Quote 0
              • S
                Scott Sumner @Denis Peter
                last edited by Dec 2, 2017, 2:27 PM

                @Denis-Peter

                So I don’t do JavaScript so my knowledge/interest level does not go really deep. However, here is what I tried; perhaps attempt to exactly duplicate (in case you didn’t do exactly this). It may give you some insight about why it doesn’t work for your specific setup:

                • get the 7.5.2 portable install zip file and unzip it somewhere
                • run the 7.5.2 notepad++.exe and pull a js file into it and turn Function List on; observe that Function List is empty for the js file
                • edit the 7.5.2 functionList.xml file and change the single line as detailed above; save
                • quit and restart the 7.5.2 notepad++.exe
                • (hopefully) observe that Function List window is now populated for the test js file

                Contents of the js file I used for testing:

                function myFunc(arg) {}
                

                No guarantees and I’m about out of expertise on this, so…

                And if users have to modify things into the program files, it means that this is still a bug, yet reported one year ago

                So we kind of hear this kind of thing all the time here. The answer is that not everything is easy (to understand motivations) and that sometimes workarounds must be employed to achieve desired functionality at a user-level. You basically have a couple of choices:

                1. complain and wait and suffer day to day because your “thing” hasn’t gotten fixed/implemented
                2. work around it (maybe with a low-level hack) and get something going so that your daily work environment is improved
                1 Reply Last reply Reply Quote 0
                • D
                  Denis Peter
                  last edited by Denis Peter Dec 2, 2017, 5:11 PM Dec 2, 2017, 5:10 PM

                  Aah ! It did not work because I made the change in the functionList.xml file located in the program’s directory, and not in a an other hidden one located in user/appData/roaming… !
                  Now, it works !

                  My remark about the bug not fixed, was’nt just for “complaining”, but for the common good.
                  Or course, i can hack. But if this bug which seems quite simple to fix, was fixed, it would be a considerable gain of time, since thousands of people wouldn’t have to spend hours searching and fixing it themselves (or just working without this useful function).
                  If I had the knowledge and position for that, I would do the job. But it is not the case, so I report the problem.
                  Selfish people, just hack, and are happy having the thing working for themeselves. ;-)

                  S 1 Reply Last reply Dec 2, 2017, 5:54 PM Reply Quote 1
                  • S
                    Scott Sumner @Denis Peter
                    last edited by Dec 2, 2017, 5:54 PM

                    @Denis-Peter

                    Good that it’s working.

                    If it’s a reported bug then it is “known about”…but there’s not really much more a user can do about it. You can certainly dive in and fix it yourself, but even then there is no guarantee that it will be integrated, even if you present a perfectly-good fix. See the posting by @Claudia-Frank in this thread for some detail on how to do this…

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