Skip to content

Review new PRs. Fix "Show JSON Viewer" docking panel #225

Closed

Description

@AntonDevil

Hi @SinghRajenM

I have created a couple of PRs for JSONViewer Notepad++ plugin.
I see that you're the only contributor who was active lately,
so maybe you can help me with reviews and merges 😊?

It's all started with the fact that "Show JSON Viewer" feature does show a docking panel with parsed JSON
but the panel is inactive, half visible and is basically broken (but I do see the content of JSON in it).
NPPJSONViewer v2.1.1.0

Preview of what I see:
Notepad++ v8.8.6 (64-bit)
Build time: Oct 7 2025 - 13:44:28
Scintilla/Lexilla included: 5.5.7/5.4.5
Boost Regex included: 1_85
Image

I decided to take a look and fix that.
Turned out that the problem stems from outdated plugintemplate files which are copied into local external/npp

The simplest fix is to update just the DockingDlgInterface.h - uncomment parameter in virtual INT_PTR CALLBACK run_dlgProc(UINT message, WPARAM /*wParam*/, LPARAM lParam) on line DockingDlgInterface.h:74. I guess commented parameter messes up the virtual table or how virtual function calls are resolved.

Anyways, I went further and decided to update all external/npp files.

I have 2 options for the fix (see which one you like more. I personally prefer the 2nd option (submodule)):

  1. Fix "Show JSON Viewer" docking/dialog panel UI #222
    Here I just update all external/npp files and fix JSONViewer code where needed
  2. Migrate from copies from external plugintemplate to git submodules #223
    Alternative version where I remove all external/npp files and take dependency on plugintemplate as git submodule

Also, maybe you can add me as a Collaborator 😊?

Activity

  1. changed the title [-]Review new PRs. Fix "Show JSON Viewer" feature UI[/-] [+]Review new PRs. Fix "Show JSON Viewer" docking panel[/+] on Oct 14, 2025
  2. AntonDevil commented on Oct 23, 2025

    @AntonDevil
    ContributorAuthor

    Last sync of plugintemplate was done on Nov 12, 2016 in JSON-Viewer:0106f2ab
    Syncing JSON-Viewer with plugintemplate:16152b80 "Notepad++ Plugin Template v3.1 Release"

    Since then there were a couple of patches made for current master (JSON-Viewer:aed958ab) for files:

    Patches since then:
    The following links are from plugintemplate:16152b80 "Notepad++ Plugin Template v3.1 Release" on Sep 16, 2016

    The rest of the files are the same between the current master and the last sync.

    I think none of these patches are needed anymore and its better not to touch these files at all,
    but take a dependency on plugintemplate and sync when needed.

    Here is the link for the latest revision of plugintemplate:426b36a3 on Oct 1, 2025
    for convenience or 3-way compare:

  3. AntonDevil commented on Nov 11, 2025

    @AntonDevil
    ContributorAuthor

    Hi @SinghRajenM

    Any thoughts on subject?
    Docking panel is kind of broken on current versions of npp.

  4. SinghRajenM commented on Mar 19, 2026

    @SinghRajenM
    Collaborator

    Closing as merged via: #223

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions