Community
    • Login

    Notepad++ 7.7 Release

    Scheduled Pinned Locked Moved Announcements
    65 Posts 33 Posters 51.4k 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.
    • Faceless YouTuberF
      Faceless YouTuber
      last edited by

      There is an issue in this release with some hidden characters being added when editing and saving PowerShell scripts. So when you launch a PowerShell script that has been edited with NPP, you get lots of weird syntax errors although the code is all fine. If you edit the same block of code in PowerShell ISE or Notepad, PowerShell won’t throw any errors when launched. It’s easy to reproduce. Copy the function below (function extracted from https://github.com/microsoftgraph/powershell-intune-samples/blob/master/RBAC/RBAC_ScopeTags_DeviceAssign.ps1) and save it in NPP, you will get weird syntax errors running it in PowerShell although there are none. Do the same with either Notepad or the PowerShell ISE and no errors appear when you execute this same code in PowerShell.

      ###########BEGINNING OF CODE BELOW#################

      Function Update-ManagedDevices()
      {
      <#
      .SYNOPSIS
      This function is used to add a device compliance policy using the Graph API REST interface
      .DESCRIPTION
      The function connects to the Graph API Interface and adds a device compliance policy
      .EXAMPLE
      Update-ManagedDevices -JSON $JSON
      Adds an Android device compliance policy in Intune
      .NOTES
      NAME: Update-ManagedDevices
      #>

      [cmdletbinding()]
      
      param(
      	$id,
      	$ScopeTags
      )
      
      $graphApiVersion = "beta"
      $Resource = "deviceManagement/managedDevices('$id')"
      
      try {
      	If ($ScopeTags -eq "" -or $ScopeTags -eq $null)
      		{
      			
      		$JSON = @"
      				{
      				"roleScopeTagIds": []
      				}
      

      "@

      		}
      	Else
      		{
      		$object = New-Object –TypeName PSObject
      		$object | Add-Member -MemberType NoteProperty -Name 'roleScopeTagIds' -Value @($ScopeTags)
      		$JSON = $object | ConvertTo-Json
      		}
      
      	$uri = "https://graph.microsoft.com/$graphApiVersion/$($Resource)"
      	Invoke-RestMethod -Uri $uri -Headers $authToken -Method Patch -Body $JSON -ContentType "application/json"
      
      	Start-Sleep -Milliseconds 100
      	}
      catch {
      	Write-Host
      	$ex = $_.Exception
      	$errorResponse = $ex.Response.GetResponseStream()
      	$reader = New-Object System.IO.StreamReader($errorResponse)
      	$reader.BaseStream.Position = 0
      	$reader.DiscardBufferedData()
      	$responseBody = $reader.ReadToEnd()
      	Write-Host "Response content:`n$responseBody" -foregroundcolor "Red"
      	Write-Error "Request to $Uri failed with HTTP Status $($ex.Response.StatusCode) $($ex.Response.StatusDescription)"
      	write-host
      	break
      	}
      }
      

      ###########END OF CODE ABOVE#################

      Could you please look into this and resolve this issue please? I think it’s got something to do with the JSON "@ string terminator and I suspect NPP is actually adding some hidden character before this string terminator which PowerShell doesn’t like and consequently breaks the whole syntax of the script.

      For instance, if you save this code with NPP, it won’t work in PowerShell. If you open this NPP saved file afterwards in Notepad, make no modification to it and save it, it will work just fine.

      Thanks very much in advance for resolving this real nasty issue!

      C

      1 Reply Last reply Reply Quote 0
      • Faceless YouTuberF
        Faceless YouTuber
        last edited by Faceless YouTuber

        Sorry, I forgot to mention (I had to wait for 1200 seconds to add this…) that it is not an encoding issue as I checked and weither you save it in ANSI or UTF-8 it makes no difference in the behaviour.

        Thanks once more for your help.

        C

        andrecool-68A 1 Reply Last reply Reply Quote 0
        • andrecool-68A
          andrecool-68 @Faceless YouTuber
          last edited by

          @Faceless-YouTuber New message you can do immediately without waiting 1200 seconds

          1 Reply Last reply Reply Quote 0
          • Scott MarchS
            Scott March
            last edited by

            Notepad++ 7.7 broken syntax highlighting (in my case ASP)
            open ASP file and background is white, the text is black for everything. I do see brace matching highlights but no other.

            rollback to 7.6 fixes it.

            1 Reply Last reply Reply Quote 2
            • PeterJonesP
              PeterJones
              last edited by

              @Scott-March said:

              Notepad++ 7.7 broken syntax highlighting (in my case ASP)

              Already known: See https://notepad-plus-plus.org/community/topic/17696/bug-problem-with-syntax-highlighting-not-working-on-asp-classic-scripts/12

              1 Reply Last reply Reply Quote 1
              • Jung-Chun YehJ
                Jung-Chun Yeh
                last edited by

                This post is deleted!
                1 Reply Last reply Reply Quote 0
                • Ben SacheriB
                  Ben Sacheri
                  last edited by

                  The right-click context menu “Plugin commands | Copy Text with Syntax Highlighting” is no longer copying the formatting. In some cases it is copying the font but never the colors.

                  I rely on this feature to copy code snippets and paste them into OneNote or an Outlook email with their formatting.

                  Example Image

                  1 Reply Last reply Reply Quote 0
                  • Artur KrukowskiA
                    Artur Krukowski
                    last edited by

                    After update to Notepad++ 7.7 DSpellCheck stopped to work correctly. Now it finds and marks spelling error only for lines that are visible on screen after loading a file. After scrolling the text spelling errors in all the rest of file are not marked – regardless of whether the automatic spelling check is selected or not.

                    andrecool-68A 1 Reply Last reply Reply Quote 0
                    • andrecool-68A
                      andrecool-68 @Artur Krukowski
                      last edited by

                      @Artur-Krukowski Install the latest DSpellCheck plugin … manually!
                      https://github.com/Predelnik/DSpellCheck/releases

                      1 Reply Last reply Reply Quote 1
                      • Guido DCG
                        Guido DC
                        last edited by

                        After being constantly nagged to upgrade to this new v7.7 release I had to find out I’d better stayed with the old (I guess it was v7.5 but not sure) version.

                        What happens now is someting I experienced long ago after upgrading (I don’t recall how I got rid of the bug that I’ll describe)

                        After having installed v7.7 I get this repetingly and it keeps poping op. I always hit No and another popup shows. It doesn’t end.

                        [URL=http://www.imagebam.com/image/29626c1252871154][IMG]http://thumbs2.imagebam.com/7d/8a/f0/29626c1252871154.jpg[/IMG][/URL]

                        [URL=http://www.imagebam.com/image/4248c21252871164][IMG]http://thumbs2.imagebam.com/e2/42/33/4248c21252871164.jpg[/IMG][/URL]

                        [URL=http://www.imagebam.com/image/4f8dab1252871174][IMG]http://thumbs2.imagebam.com/53/66/7c/4f8dab1252871174.jpg[/IMG][/URL]

                        Now I let all my txt files open by “get diz”

                        What is happening. And why does this always happen after an upgrade ?

                        To translate it in English it says the file *.txt file is modified by another program, and do you want to reload it and loose the changes that have been made in Notepad++ ?

                        Of course I click NO each time.

                        1 Reply Last reply Reply Quote 0
                        • Guido DCG
                          Guido DC
                          last edited by Guido DC

                          Had to edit within 180 seconds (???): failed of course …

                          so here the refreshed/clickable links of above

                          http://www.imagebam.com/image/29626c1252871154

                          http://www.imagebam.com/image/4248c21252871164

                          http://www.imagebam.com/image/4f8dab1252871174

                          1 Reply Last reply Reply Quote 0
                          • Krystal OwenK
                            Krystal Owen
                            last edited by

                            Upon updating from 7.5? to 7.7, All my plugins are gone from the menus but the DLLs are still there. I’ve debated a reinstall.

                            EkopalypseE 1 Reply Last reply Reply Quote 0
                            • EkopalypseE
                              Ekopalypse @Krystal Owen
                              last edited by

                              @Krystal-Owen

                              since npp 7.6, the plugin structure has changed.
                              In addition, 7.7 introduced a new scintilla version which might break plugin functionality.
                              Probably the easiest way to get your plugins back is to use the new plugin admin tool. The plugins manager is deprecated. If you have an issue with a particular plugin, let us know which one it is and we can see if there is a way to make it work again.

                              1 Reply Last reply Reply Quote 2
                              • Guido DCG
                                Guido DC
                                last edited by

                                Fact is and remains that my issue from a post or 3 above is a not admissable at all because I just can’t open the Notepad v7.7++ anymore. I just saw in another forum someone giving an advice to up upgrade from a default Windows notepad to this one. Maybe they should first check this website. Another thing that’s still not solved after 3 years is that my Notepad++ (all versions before v7.5 that is), need something like 10 seconds and more, to open… It has been discussed here (not in this thread), no solution was found. All some people’s good advice here is to upgrade to the latest version. LOL.

                                EkopalypseE 1 Reply Last reply Reply Quote 0
                                • EkopalypseE
                                  Ekopalypse @Guido DC
                                  last edited by

                                  @Guido-DC

                                  Another thing that’s still not solved after 3 years is that my Notepad++ need something like 10 seconds and more, to open …

                                  Can you point me to the issue you’d reported? Hoping that there is more info than just
                                  it takes …

                                  It has been discussed here …

                                  if you have an old version, then it makes sense to try a newer version to see if the issue is gone or not. Most of the time it is recommended to use the portable version instead of upgrading an installed one, which, from my point of view, makes absolutely sense. Don’t you agree?

                                  1 Reply Last reply Reply Quote 1
                                  • Guido DCG
                                    Guido DC
                                    last edited by

                                    I’ll agree with you al the way since you’ve replied. But “sometimes” it’s better to stay with an old version. There’s this verb: don’t touch a running system (aside from the time lag of 10 sec’s before it opened). Now my old version before upgrading to this v7.7 that simply doesn’t open and always keeps asking me “**.txt file is modified by another program, and do you want to reload it and loose the changes that have been made in Notepad++*” was v7.5.6.

                                    Now come to think of it: like I said after I installed v7.7 I got this repeating bug

                                    http://www.imagebam.com/image/29626c1252871154
                                    http://www.imagebam.com/image/4248c21252871164
                                    http://www.imagebam.com/image/4f8dab1252871174

                                    and couldn’t open the program but what’s worse I could not see if the prgram I installed was v7.7.
                                    I then looked for a restore point of some hours ago and applied it. The bug was still there so I also could not see if I reverted to the old v7.5. I assumed that the program did not revert to v7.5 since the bug was still there (FYI that bug was not present b4 my upgrade (v7.5 > v7.7).

                                    To my big surprise I just checked the notepad executable (details from *.exe) in my W7 program files (x86) folder and it is v7.56. So with the restore point I effectively reverted to the old v7.5 but I got the bugs that came along with v7.7 as a present.

                                    The thing of the time delay will have to wait a while. First I’d like this v7.7 to work for me. Will completely uninstalling it remove my settings ? And why is it still installed in the program files folder (x86) ?

                                    Thank you in advance.

                                    EkopalypseE 1 Reply Last reply Reply Quote 0
                                    • EkopalypseE
                                      Ekopalypse @Guido DC
                                      last edited by

                                      @Guido-DC

                                      what about giving one of the portable versions a chance?
                                      Like this 64bit one.

                                      I can’t see your uploaded images - I always get barely dressed women.

                                      Whether an uninstall will remove your settings depends on how you installed/used it before, hard to say.
                                      You can check if you have an %appdata%\notepad++ directory and, if so, temporarily rename it. Afterwards try to start npp and see what happens.
                                      If this doesn’t work either then I assume that you used a local configuration which then would be wiped (afaik ).

                                      1 Reply Last reply Reply Quote 2
                                      • Guido DCG
                                        Guido DC
                                        last edited by

                                        Before I read your message I did the following: I found the v7.7 file for x64 and installed it. The program asked me to remove the old v7.5.6 that was in my x86 program files folder. I continued and the program uninstalled the v7.5.6 from my x86 folder (except for one dll file it was empty after I checked it.)

                                        v7.7 is installed and of course I get the same repeating error I had when it was installed in my program files x86 folder… I will remove it completely and install the portable … to be continued.

                                        The barely dressed woman are on that server but not by clicking my links.

                                        1 Reply Last reply Reply Quote 1
                                        • vriviereV
                                          vriviere
                                          last edited by

                                          Regression: colorization of JSP files does not work anymore 😥

                                          1 Reply Last reply Reply Quote 0
                                          • PeterJonesP PeterJones locked this topic on
                                          • First post
                                            Last post
                                          The Community of users of the Notepad++ text editor.
                                          Powered by NodeBB | Contributors