Contents of Viewer not syncing anymore (Npp v7.7)
See original GitHub issueIssue description
After the upgrade to Notepad++ v7.7 (64-bit) this morning, the syncing of the contents in the preview windowrefresh did not work anymore. Tried to ‘refresh’, but that did not work either. I had to restart the session to see my result. Soame goes for the automatic scrolling, that broke as well.
Markdown to reproduce
Please post the markdown code producing the described issue, if any
Screenshot
First screenshot, in the middle of an edit session:
Second screenshot, after having save the file:
Third screen shot, after having performed a View / Refresh:
Environment
-
Notepad++ Notepad++ v7.7 (64-bit) Build time : May 19 2019 - 13:05:35 Path : C:\Program Files\Notepad++\notepad++.exe Admin mode : OFF Local Conf mode : OFF OS : Windows 10 (64-bit) Plugins : DSpellCheck.dll MarkdownViewerPlusPlus.dll mimeTools.dll NppConverter.dll
-
MarkdownViewer++ X.Y.Z
-
Windows 10 (x64)
Issue Analytics
- State:
- Created 4 years ago
- Reactions:13
- Comments:28

Top Related StackOverflow Question
As @wilfreddijksman has linked, this is a problem with Npp 64bit v7.7 and up. They changed an API to use 64bit precision for document position instead of the previous 32bit, something that would only come into play for documents approaching 1GB in size. That breaks all plugins that used that API. I don’t know the relationship between Npp and Scintilla, but the change is in the Scintilla side.
Because of the ridged way Npp handles plugins (each version of Npp has a fixed list of plugins and fixed versions for each of those plugins) even if this MarkdownViewer++ plugin is changed to work with newer 64bit versions of Npp, it will remain broken in all versions from v7.7 up until the version that first points to the fixed version of this plugin.
Npp has combined a dumb, hard-coded plugin list with a pointless API change (possibly just pulled up from Scintilla) that breaks several plugins in that list. It is ridiculous and indefensible, if anything, Npp should have rolled back the Scintilla version as soon as this disaster came to light. You can rebuild this plugin’s .dll with the changes to the Scintilla code related to positions and import it as an off-book plugin to make it work with 64bit or install the 32bit version of Npp instead. You could also step away from Npp altogether in search of a better managed project.
Same issue here on 64 bit. Interim workaround is to close and open (by hitting Ctrl-Shift-M twice) which forces a Refresh.