Community
    • Login

    JSON Plugin Does Not Work

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    3 Posts 2 Posters 4.0k 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.
    • Christopher WenischC
      Christopher Wenisch
      last edited by

      I keep getting an error when attempting to install the JSON Viewer plugin (v1.40). I do so from the Plugins Admin under the Plugins menu, where I select the JSON Viewer plugin and then click to Install.

      I attached a picture of the error I receive.

      Any help here would be appreciated!

      c7963e33-936a-4ba1-b15f-40d2efdcd28c-image.png

      13fa8f41-ecb3-4af7-805c-8058485f4a23-image.png

      PeterJonesP 1 Reply Last reply Reply Quote 0
      • PeterJonesP
        PeterJones @Christopher Wenisch
        last edited by

        @christopher-wenisch

        I just tried a whole bunch of versions, including v8.1.9.3-64bit, and all of them installed properly, giving results similar to the following

        5eb2c47b-a655-41e5-948c-b798f57eca3b-image.png

        Notepad++ v8.1.9.3   (64-bit)
        Build time : Dec  6 2021 - 19:21:37
        Path : C:\usr\local\apps\npp\npp.8.1.9.3.portable.x64\notepad++.exe
        Command Line : 
        Admin mode : OFF
        Local Conf mode : ON
        Cloud Config : C:\usr\local\apps\npp\cloud
        OS Name : Windows 10 Enterprise (64-bit) 
        OS Version : 2009
        OS Build : 19042.1466
        Current ANSI codepage : 1252
        Plugins : mimeTools.dll NppConverter.dll NppExport.dll NPPJSONViewer.dll 
        

        Based on the error you showed, I wonder if something in the zip file corrupted when it downloaded NPPJSONViewer_x64.zip. When I download https://github.com/kapilratnani/JSON-Viewer/releases/download/v1.40/NPPJSONViewer_x64.zip, and run a CRC utility on it (showing, among others, the SHA256), I see :
        5870d954-ecd2-41ea-9951-ac30e8365085-image.png
        This matches up with the expected SHA256 listed in the Plugins Admin source code (and in your screenshot of the “expected”): https://github.com/notepad-plus-plus/nppPluginList/blob/master/src/pl.x64.json#L416-L425
        01412436-0fd0-409a-98e3-3f32c331d759-image.png

        You might try again. (You might also make sure you don’t have I.T. department blocking the github download, or that you don’t need to set up proxy settings in Notepad++ > ?-menu > Set Updater Proxy (the Plugins Admin uses same proxy settings as Updater)

        Christopher WenischC 1 Reply Last reply Reply Quote 4
        • Christopher WenischC
          Christopher Wenisch @PeterJones
          last edited by

          @peterjones said in JSON Plugin Does Not Work:

          You might also make sure you don’t have I.T. department blocking the github download,

          Thanks for the reply. I don’t have any IT dept blocking downloads, yet I think you identified the problem. I believe my laptop downloads directory is a Teams folder (mirrored to my work cloud) and, when validating the checksum for NPPJSONViewer_x64.zip it is in fact different once it gets saved to my downloads folder.

          I found an alternate way to download the file and validated the checksum to confirm that it matched (using command prompt: CertUtil -hashfile <path to file> SHA256).

          Once the checksum was confirmed, I manually installed it (by using Settings>Import>Import Plugins).

          Now it works! Thanks.

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