BUG - Language Selection Menu

  • I discovered that when I select the “Perl” language option from the Language menu, Notepad++ hangs indefinitely.
    This happened before and after I downloaded the latest updated version V 7.7 32 bit.
    I am a fellow software developer and aware that it could be my computer, or the fact that this is a 32 bit program running in my 64 bit environment, or a real problem with Notepad++.- Not sure, however, it may be worth looking in to.

    My PC:
    Intel quad processor running on 64 bit Windows 10 Pro, with all current updates applied
    Running good with no issues noted in Device Manager…

    Intel Core Processor i3-3220 - 3.3 GHz
    Installed Memory: 4 GB
    System Type: 64 bit Operating System - 64-based processor
    Description: Lenovo Think Center Tower PC

  • welcome to the notepad++ community, @Chuck-Scooter50

    i can not reproduce a hang or lag, when switching to perl from the language menu.

    please test the following, to verify, if a clean notepad++ (without any plugins that could cause this) would work on your system.

    • download the notepad++ 7.7 portable version from >>> here <<<.
      (the portable version does not require any installation and runs completely independent and isolated from your installed version. all custom settings, as well as any stuff you might want to try at the portable version, will not modify your installed version)

    • extract npp.7.7.bin.zip to your desktop.

    • important note: make sure to close all instances of notepad++ that might be running, before starting the portable version at the next step, to make sure you are using this portable version.

    • open the extracted npp.7.7.bin folder and start this portable version by double-clicking on notepad++.exe inside this folder.
      (note: notepad++.exe will just be seen as notepad++, if you have enabled to hide all known file extensions at your explorer settings)

    • try to open any perl .pl file and switch between normal text and perl from the language menu.

    many thanks and best regards.

  • Obviously there may be many reasons for hangs so extra information is needed to try to narrow the debugging scope.

    Syntax highlighter (lexer) is a piece of code, and just like any other piece of code it may have bugs including enter infinite loops.
    Bugs may be completely internal to the lexer or due to interaction with host the application that contains it.

    Some tests to do and report here are:

    • Make sure you still reproduce the problem with original file A.
    • Try changing the language into a few other languages, even though the contents mismatch, to see if this is Perl issue or a general re-lexing issue.
    • Start Notepad++ on empty file and switch language to Perl. Does it hang?
    • If empty file does not hang, switch to Perl on empty file and paste the contents of file A. Does it hang?
      • Make sure to page up/down through all file since most lexers only kick into action for visible lines.
    • If paste does cause a hang try partial paste to identify a minimal piece of code that reproduces the issue.

  • Все скачанные файлы нужно проверять на вирусы на сайте virustotal.com вот v. 7.7 чистая а v.7.6.3 с вирусом Trojan.Rozena.Win32.70693

Log in to reply