question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

"This ANSI plugin is not compatible with your Unicode Notepad++." error

See original GitHub issue

Issue description

I’ve tried to run Notepad++ using a a custom-built MarkdownViewerPlusPlus.dll but I get the following error:

This ANSI plugin is not compatible with your Unicode Notepad++.

MarkdownViewerPlusPlus.dll is not compatible with the current version of Notepad++.

So far I’ve tried the following branches:

  • master: I cannot even get to build the solution
  • 0.8.0 and 0.8.1: The solution successfully builds, the file MarkdownViewerPlusPlus.dll automatically gets copied into C:\Program Files (x86)\Notepad++\plugins\ but I get the error above.

Other info

  • I’m using the preview version of VS 2017
  • NuGet package restore for HtmlRenderer* packages failed, so I’ve cloned your fork, built it, and added the output dlls as a reference.

Also, I guess the active solution platform needs to be “Any CPU” because if I choose the other options (either x86 or x64) I get the following error:

MarkdownViewerPlusPlus.il(421393) : warning : Method has no body, 'ret' emitted
MarkdownViewerPlusPlus.il(421398) : warning : Method has no body, 'ret' emitted
MarkdownViewerPlusPlus.il(421407) : warning : Method has no body, 'ret' emitted

Environment

  • Notepad++ 7.5.4 (x86)
  • MarkdownViewer++ 0.8.x
  • Windows 10 (x64)

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
DimitrijeKcommented, Jun 20, 2018

Hi @nea & @monoblaine,

I recently figure it out so I though it would be good to share how I did it. I used VS2017 and the newest verision of NotePad++. After adding all missing packages and downgrading PdfSharp package to 1.50.4000-beta3b, I was able to succesfully build the solution. Before you build make sure that you have Debug and x86 selected. After building VS2017 will generate .dll file in the bin folder of your project.

After I tried to copy .dll file to plugins folder of NP++ I was getting the following error:

-The ANSI plugin is not compatible with your Unicode Notepad++
-MarkDownViewerPlusPlus.dll is not compatible with the current version of your Notepad++

Then I got around this by installing Plugin Manager for NP++ (PluginManager_v1.4.11_UNI.zip)

-https://github.com/bruderstein/nppPluginManager/releases

Then I installed MarkDownViewerPlusPlus thru plugin manager, and then copied the .dll file (Debug, x86) from the previous build and replaced the one installed thru plugin manager. After that I was able to open Notepad++ with no errors and MarkDown plugin was working!!!

Thank you for your time!!! Hope somebody finds this helpful!

0reactions
DimitrijeKcommented, Jun 21, 2018

Hi @monoblaine,

Yeah I know it is supposed to copy the dll file after you build it, but I was at work and the pc I am working won’t give me premission to copy files thru that build process, so I just commented out that copy condition. But I get what you are trying to say.

Thank you!

Read more comments on GitHub >

github_iconTop Results From Across the Web

This ANSI plugin is not compatable with your Unicode ...
Error message is: This ANSI plugin is not compatible with your Unicode Notepad++. CSScriptNpp.dll is not compatible with the current version of ...
Read more >
Trouble compiling test plugin (ANSI error)
I'm attempting to compile and run a test plugin using Visual Studio. ... “This ANSI plugin is not compatible with your Unicode Notepad++.”....
Read more >
WebEdit v2.1 - "This Ansi Plugin is not compatible with your ...
I just downloaded the most current version of this plugin. Once it was installed, this error message pops up each time as I...
Read more >
How to switch dll creation from ANSI into UNICODE in ...
I created a plugin for Notepad++ with Visual Studio 2015 Community Edition using C#. It worked fine with Notepad++. After a fresh re- ......
Read more >
Help] Notepad++ v5.1 Plugin Error Messages
This ANSI plugin is not compatible with your Unicode Notepad ++. This plugin is not compatible with current version of Notepad++. Does this...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found