Community
    • Login

    Monokai and JS versão 8.9.1

    Scheduled Pinned Locked Moved Notepad++ & Plugin Development
    5 Posts 2 Posters 34 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.
    • Anderson NascimentoA
      Anderson Nascimento
      last edited by

      Is version 8.9.1 of Thema Monokai faulty? How do I fix it?

      The code has a white background; I’ve already uninstalled and reinstalled, but it’s still the same.Screenshot_1.png

      PeterJonesP 1 Reply Last reply Reply Quote 1
      • PeterJonesP
        PeterJones @Anderson Nascimento
        last edited by PeterJones

        @Anderson-Nascimento ,

        What was your upgrade path? If you ran v8.8.9 or v8.9.0 at some point, there were issues we discovered in those two versions which would cause things like that, and it would have saved the theme in just the way you show – that’s a known issue that all experiments have shown have been fixed. On the other hand, if you started from v8.8.8 or earlier, and then upgraded directly to v8.9.1 (without every installing or running v8.8.9 or v8.9.0), that corruption shouldn’t’ve happened; if that’s the path you took, I will need specifics (what version you started with, when you did the update, and confirmation that you never updated between the two), so I can try to replicate it, because every experiment I’ve seen shows that going from v8.8.8 (or earlier) to v8.9.1 doesn’t have any such problems.

        This FAQ explains how to fix the problem (especially the v8.9 section, which talks specifically about the JavaScript issue). Essentially: if you haven’t customized anything in the Style Configurator for your theme, you just have to replace the theme file in the installation directory; if you had any customization (either from your earlier version, or that you’ve done since your upgrade), you’ll have to go through a more-involved process, including updating both the copy of the theme in the installation directory and in your AppData directory, and it will be more involved, because you will have to copy specific information from inside the XML files.


        (updated: rephrased the post to hopefully make it more clear)


        update 2:

        1. if I start with a fresh v8.8.8 in Light Mode + Monokai (to match your screenshot), then upgrade to v8.8.9 and then to v8.9.1, I can see something akin to your screenshot.
          4ac9413d-03d4-4853-8ca1-78c962cebfd9-image.png

        2. if I start with a fresh v8.8.8 in Light Mode + Monokai, then upgrade to v8.9.0 and then to v8.9.1, I see something different: the *.js appears to have no highlighting, because it’s set to default fg and bg for all styles (but Style Configurator lets you change those):
          da0f0024-a90e-49fc-9634-984df262bf1d-image.png

        3. if I start with a fresh v8.8.8 in Light Mode + Monokai, then upgrade to v8.9.1 directly, then everything works as I expect:
          283bbc55-324e-467a-80e9-204915e9f565-image.png

        Given your screenshot, I am very confident that you started at some older version, updated to v8.8.9 and ran at least once (but maybe hadn’t looked at any javascript to notice the problem), then updated again to v8.9.1 and finally saw the problem. If that’s what happened, then the instructions in the FAQ will help you get the theme fixed.

        Anderson NascimentoA 1 Reply Last reply Reply Quote 0
        • Anderson NascimentoA
          Anderson Nascimento @PeterJones
          last edited by

          @PeterJones npp.png

          I had version 8.8.5 and then downloaded 8.8.9 and then 8.9.1. In this last installation, I even deleted the previous installation folder, and the problem still occurred.

          PeterJonesP 1 Reply Last reply Reply Quote 0
          • PeterJonesP
            PeterJones @Anderson Nascimento
            last edited by PeterJones

            @Anderson-Nascimento said in Monokai and JS versão 8.9.1:

            I had version 8.8.5 and then downloaded 8.8.9 and then 8.9.1.

            Then you have to follow the instructions in the FAQ.

            In this last installation, I even deleted the previous installation folder, and the problem still occurred.

            If you have ever customized your theme (changed font size, changed even one color, added a user-defined file extension to a language, added a user-defined keyword to a language, etc), there will be a copy in %AppData%\Notepad++\themes\Monokai.xml, and deleting the installation folder won’t get rid of that copy, and that will be the copy that Notepad++ will use.

            Follow the instructions in the FAQ.

            Anderson NascimentoA 1 Reply Last reply Reply Quote 0
            • Anderson NascimentoA
              Anderson Nascimento @PeterJones
              last edited by

              @PeterJones I managed to do it, I uninstalled it again and when it asked about settings, I answered no, upon startup it was like a completely new installation.Screenshot_1.png nnn.png
              When I started up, I changed the theme and it worked, thank you very much for the tips.

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