@Michael-Simpson said in JSON viewer:
I’m wondering whether it has something to do with the fact that I’m trying to upgrade/install at work.
That very well could be. For some installations, especially in controlled environments, you would have to be running as administrator to be able to install a plugin (because your plugin installation path is c:\program files\notepad++\plugins, and the program files hierarchy is often protected by IT departments)
If you can, you might be able to right click on notepad++.exe and one time Run As Adminstrator; use that run to try to install the plugin, then exit.
Or if you can, in Windows Explorer, right click on the c:\program files\notepad++\plugins folder, and try to set the permissions so that your normal account has write permission to the plugins folder, not just admin.
I get a window about downloading the JSONViewer and the download % is at zero, then … nothing. Notepad++ restarts, but the viewer isn’t there, neither is it in the
list of installed plugins.
That does sound like it’s not able to write the file properly.
Is there some way to download the actual plugin and install it manually ?
Yes. If you go to https://github.com/notepad-plus-plus/nppPluginList/tree/master/src, and look in the pl.x64.json (for 64-bit Notepad++) or pl.x86.json (for 32-bit Notepad++), you can see the download URLs that Plugins Admin uses for any given plugin – or the homepage field gives the homepage URL for that plugin. Manually download and unzip the file it links to. If the zipfile just has a single DLL, then copy it to c:\Program Files\Notepad++\plugins\_____\____.dll, where the two ____ are the same as the DLL filename. for example, JSON Viewer names its DLL NPPJSONViewer.dll, so you would create the folder c:\Program Files\Notepad++\plugins\NPPJSONViewer and the DLL would be c:\Program Files\Notepad++\plugins\NPPJSONViewer\NPPJSONViewer.dll
But again, you need write permission to the plugins subfolder to be able to do that.
(Using the portable version, which doesn’t go in the program files hierarchy, might avoid UAC/permissions issue; but it might bring down the wrath of corporate IT, so check your work’s policies.)