Version 6.1.5 is released

Don HO
2012-07-07
2012-11-13
<< < 1 2 (Page 2 of 2)
  • bypasser

    bypasser - 2012-07-12

    donho

    I agree with your viewpoint. However this is a technical limit: To launch an external application to get info from internet, Notepad++ has to gain the privilege right for GUP.

    Why do you need GUP to "requireAdministrator"? The update package needs elevation, not GUP.

     
  • Andreas Jonsson

    Andreas Jonsson - 2012-07-12

    unnicked, the SVN repo on Sourceforge is out-of-date. The "real" repo is here:

    svn://svn.tuxfamily.org/svnroot/notepadplus/repository

    (You can find it under "Resources" on the N++ website.)

     
  • Aren Cambre

    Aren Cambre - 2012-07-12

    The update package needs elevation, not GUP.

    This is correct. I am not aware of any reason why GUP needs privilege escalation. Windows programs don't need privilege escalation to talk to the internet or start other programs.

     
  • bypasser

    bypasser - 2012-07-12

    jonandr
    Thank you. The patch did helped somewhat. After all it takes even a little less than in 5.9.8  to "fold all" or "unfold all", but only some of the individual collapsings perform as good as in 5.9.8. However collapsing some other (seemingly ordinary) individual locations still takes longer than 15 seconds, while 5.9.8 always does a single collapsing in less than a second.

     
  • Don HO

    Don HO - 2012-07-14

    @ unnicked & acambre

    I did try to remove relevation GUP from Notepad++ :
    1.  replace verb "runas" by "open" in ShellExecute() function in Notepad++ code while calling gup.exe.
    2.  remove the following code from gup.exe.manifest in project GUP:

    <mssv2:security>
    <mssv2:requestedPrivileges>
    <mssv2:requestedExecutionLevel
      level="requireAdministrator"
      uiAccess="false"/>
    </mssv2:requestedPrivileges>
    </mssv2:security>

    Then I process updating, the same behaviour: the system ask to allow gup.exe execute with the right to modify the parameters of computer. I believe that's because GUP need the right to access internet. Therefore it's rather a Windows' issue than Notepad++'s one.

    If you have the other solution, please let me know.

    Don

     
  • bypasser

    bypasser - 2012-07-14

    donho

    remove the following code from gup.exe.manifest in project GUP

    You should not remove this from the manifest. You should replace requireAdministrator with asInvoker. Besides, this is done by modifying the project's properties in VS, and not directly the generated by the VS manifest. In VS2010 this can be found at Project->Properties->Configuration Properties->Linker->Manifest File->UAC Execution Level.

    I believe that's because GUP need the right to access internet.

    No, that's not. Have you ever seen your browser requiring elevation when started?

    Firstly, Windows does not require an application to be elevated in order to access the Internet.
    Secondly, Windows does not analyze internal binary structure to detect the elevation requirement. It only relies on the manifest (and on the way you start the process). Most Windows can do is to detect at application's runtime, that some function calls were cut off by UAC during the process execution, and may suggest you to restart the application with elevated rights. But this would have nothing to do with accessing the Internet.

     
  • Aren Cambre

    Aren Cambre - 2012-07-14

    Really, I question why GUP is even needed. Other programs I've used appear to handle their update detection from within the application itself. E.g., Keepass, WinSCP, Adobe Reader. WinSCP even does it automatically, without my intervention, which I think is handy.

    Also, @unnicked is correct. UAC should not be invoked until the point where the installer for the new version is run. So if either no new version is found, or the user declines to install it, UAC should never be invoked.

     
  • Don HO

    Don HO - 2012-07-14

    @ acambre:

    I question why GUP is even needed

    It allows to not including unrelated/unnecessary code in Notepad++ by using GUP.

    Also, @unnicked is correct. UAC should not be invoked until the point where the installer for the new version is run. So if either no new version is found, or the user declines to install it, UAC should never be invoked.

    I agree. As I said, GUP needs Internet access to get update info, that makes system tries to elevate GUP's right.
    I can modify GUP to make it work as you want - so once again: if you have any solution, let me know.

    Don

     
  • Aren Cambre

    Aren Cambre - 2012-07-14

    GUP needs Internet access to get update info, that makes system tries to elevate GUP's right.

    That's not true. Programs do not need privilege elevation to talk to the internet.

    It allows to not including unrelated/unnecessary code in Notepad++ by using GUP.

    I'm still not clear where you're coming from on this. So you moved a few lines of code from the main Notepad++ to a separate program. Why does that matter? It's still all installed on my system.

     
  • Don HO

    Don HO - 2012-07-14

    That's not true. Programs do not need privilege elevation to talk to the internet.

    I did modify Notepad++'s code to launch notepad.exe : No UAC problem. Then I removed UAC elevating settings from GUP: still havs UAC issue. I'm not UAC expert, but that makes me think it's due to Internet access.

    I'm still not clear where you're coming from on this. So you moved a few lines of code from the main Notepad++ to a separate program. Why does that matter? It's still all installed on my system.

    It's not about "a few line". GUP use cURL to make updating job done. So it allows Notepad++ to NOT including cURL project.
    And the updater module makes Notepad++ can do without update feature. That allows user who doesn't need such feature to get a smaller package (http://download.tuxfamily.org/notepadplus/6.1.5/npp.6.1.5.bin.minimalist.7z).

    Don

     
  • bypasser

    bypasser - 2012-07-14

    donho

    Then I removed UAC elevating settings from GUP: still havs UAC issue.

    1. Could you look at the GUP's binary (where you think, you removed the elevation requirement) under a PE resource viewer/editor and check the manifest resource? Does it contain the "requireAdministrator"? If not, try the next suggestion.
    2. There should be no file "gup.exe.manifest" in the same directory with the gup.exe. Anyway try to move gup.exe to any other directory (any different from where gup.exe was before) and execute it (with the "open" method, not "runas") from there.

    that makes me think it's due to Internet access

    As I previously said, it's definitely not. It's only because of the "requireAdministrator" manifest (internal in the resources or external in the file "gup.exe.manifest" located in the same directory with the gup.exe) and the "runas" method you're using to start gup.exe. Setting the manifest to "asInvoker" and running gup.exe with the method "open" does make Windows to run it without elevation.

     
  • Dave Brotherstone

    Yep, "runas" will invoke gup as admin, no matter what the manifest says.  And just to add voice to those that have already mentioned, you don't need admin to access the internet (that would be really, really stupid).

    GUP.exe is however needed, absolutely and (almost) unavoidably.  This is due to the fact that we need to quit N++, and then restart it - in windows you can't overwrite an exe file if it's open, so in order to replace N++ you need to quit it, and ideally start it again afterwards.  Firefox, and many many other apps work exactly the same way - I believe chrome uses the new exe in a different place to start and copy over the old version, so also in a way uses a separate exe.  You could technically get away with an installer that killed any existing N++ instances off, and then started the newly installed version, but I'm not sure the user experience would be as comfortable.

    Dave.

     
  • Don HO

    Don HO - 2012-07-14

    @unnicked:

    You should not remove this from the manifest. You should replace requireAdministrator with asInvoker.

    Thank you for this info. It works under my Windows 7.
    The fix of gup will be included in the next release.

    Thank you.

    Don

     
  • Anonymous - 2012-07-16

    I downloaded 6.1.5.  Notepad ++ crashes when I try to use Clipboard history feature.  Thank you for a great product.

     
  • Anonymous - 2012-07-16

    I restarted the machine.  It is now working.

    Thank you.

     
  • Anonymous - 2012-07-16

    Hey,

    is it possible to add basic (FreeBasic) to the lexar's? i would be willing to donate to get this done. please let me know.

    i have attempted to do so, but am only half way, not exactly what i want.

    thanks

     
  • Loreia2

    Loreia2 - 2012-07-16

    Hi TheGoldMiner ,

    lexers are part of Scintilla project (www.scintilla.org), you can ask there if anyone is willing to implement new lexer. Chances are you get something along the lines of: those who need new lexer should implement it themselves.

    Having said that, I must ask. Is there anything in FreeBasic syntax that prevents you from using UserDefinedLanguage (ULD) feature of N++? Try your luck with UDL2 module (scroll at the end of thread) https://sourceforge.net/projects/notepad-plus/forums/forum/331753/topic/4631095

    That should save you some money.

    BR
    Loreia

     
  • Anonymous - 2012-07-21

    Small usability issue: the context menu in Notepad++ doesn't show the underscore for keyboard shortcuts. For example, the UPPERCASE option in the context menu should appear as _U_PPERCASE.

     
  • bypasser

    bypasser - 2012-07-22

    And one more usability issue: it's pretty uncomfortable, that Notepad++ does not switch tabs on Ctrl+Tab/Ctrl+Shift+Tab in dialogs (like search dialog, preferences and others).

     
  • MMTsuchi

    MMTsuchi - 2012-08-03

    Sourceforge.net doesn't show notepad++ versions >6

     
  • THEVENOT Guy

    THEVENOT Guy - 2012-08-15

    Hi all,

    First of all, sorry for my very poor English !

    It's the first time I put a message on Notepad++'s Forums.
      Yet, I "follow" Notepad++ from the 4.9.2 version !

    I'm a French subject and I'm already sixty years old :)
      I'm a computer technician in the French Post Office.
      I'm living in Grenoble, in the Alps, because I love
      skiing !

    In old days, I worked on machines, with Unix operating
      system. I do love programming and coding but, mostly,
      in the old Microsoft's QBasic ! ( Do you remember :
      60 years ! )

    So, I'm not at home with the new communicating ways.
      You'll forgive me for making some mistakes. I'll
      surely be clumsy at the beginning !

    I hope I would ever be able to join a file to this
      message ! But, I need it because I made a manual,
      about the new PCRE regular expressions in Notepad++,
      that I'd like to share. May be, it's be useful to
      someone.

    However, I wrote it in French language, because this file
      is about 10000 lines long ( about 5 months of work ! )
      and I wanted this manual to be as precise as possible.

    Don't panic ! I think this tutorial will be easy to
      understand for english people, thanks to a lot of
      examples, throughtout the file !

    To end, I would like to ask some questions and make some
      remarks or suggestions :

      1) About regular expressions, I noticed somme odd things,
           which are easy to see, with the Mark All feature !
                                                                    ¯¯¯¯¯¯

           \A.  should select the first character of a file
                  In fact, it selects the whole first line !

           .(?=.)  select all, but the last, characters of a line
                     It's OK because it means " Find a standard
                     character, only if the following character
                     is a standard character too"

           So, the regexp  (?<=.).  should select all but the
             first characters of a line because it means " Find
             a standard character, only if the preceding character
             is a standard character too". Actually, it select
             one in two characters in a line !

           Given this string '12345 eeeeeeABCDeeeeee 67890'

           e\&gt; select the last letter 'e' before ' 67890' (OK)

           \&lt;e should select the letter 'e' at the very beginning
                 of this string. Actually, it select all the
                 characters e, before 'ABCD' !

           \R normaly stands for the two characters \r\n in a
                Windows file. However, if the file contains a set
                of empty lines, \R select one in two lines only !

               
            Le joker . represents every character but \r, \n and \f
              (a bit strange !) Normally, the control character \f,
              like all others, should match the dot meta-character .

            If the search regular expression contents a lookbehind
            or the \K construction, any replacement, step by step,
            with the Replace button don't work. You must use the
            global replacement, clicking on the Replace All button

      2) From the version 5.8.7 of N++, the new elements of menus,
           below, are not integrated to the Shortcuts Manager !

             Edit\Paste Special\Paste HTML Content
             Edit\Paste Special\Paste RTF Content
             Edit\Paste Special\Paste RTF Copy Binary Content
             Edit\Paste Special\Paste RTF Cut Binary Content
             Edit\Paste Special\Paste RTF Paste Binary Content

             Search\BookMark\Remove Unmarked Lines
             Search\BookMark\Inverse Bookmark

             View\Summary…
             View\Project\Project Panel 1
             View\Project\Project Panel 2
             View\Project\Project Panel 3
             View\Document Map

             Settings\Import\Import Plugin(s)…
             Settings\Import\Import Theme(s)…

         So, if I want à shortcut for one of these actions, I need
           to use macros or to configure the contextuel menu
           It's too bad ! Is there a cause to this omission ?

      3) By the way, do you know the NppExec plugin use universal
           scrolling in the Console Window !!! :
          
             - Open the NppExec Console Windows
             - Type help and valid with Enter
             - Click on the middle button of the mouse
                 => one can see two vertical arrows
             - Push the mouse upwards gently…..  Whaooooooou !

           I'd like this feature in Notepad++, but I know it's
             not the priority for the Scintilla's conceptor !

      4) I've found a minor bug, about mark styles :
     
           If only ONE character is mark with style 1 to 5 or
             with style FIND, the search in downward direction
             don't work.

           On the other hand, the upward search is OK. And if
           two or more characters are marked, the search works
           correctly, in both directions.

      5) How to purge all style FIND with a macro or other
           command, in ONE operation only ? Indeed, for the
           moment, we need :

             - 1) to open the Find/Replace dialog
             - 2) to click the Mark tab
             - 3) to click the "Clear all marks" button
          
           It's a bit long…..

          
      6) One suggestion : I think it'll be interesting
           to color the background of the FIND and/or
           REPLACE input, in the FIND/REPLACE dialog,
           according to the search MODE :

           For example :

             - Green  background for NORMAL             mode
             - Orange background for EXTEND             mode
             - Red    background for REGULAR EXPRESSION mode

           Of course, any others colors could suit !

          
    Always there ? Great !
          
    I hope I've been not too boring ! Thanks you, in advance,
      to all, for your answers.
       
    Guy038

    Email Address : guy.038@wanadoo.fr

    P.S. Now, I got an account on SourceForge.net but I don't
    ¯¯¯   kwow how to attach a file to my first message !
           ( I look ridiculous ! ) because i'd like to join
           my tutorial " RegExp_N++ " in 3 versions :
          
             RegExp_N++.txt,  if you want to add some notes
             RegExp_N++.pdf,  for reference
             RegExp_N++.html, in your favorite browser
            
         I wish it'll be useful to you !
            
            

     
<< < 1 2 (Page 2 of 2)

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks