-
Notifications
You must be signed in to change notification settings - Fork 363
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Problems in carrying out the steps described in the manual #454
Comments
Did you define nppPluginList/vcxproj/nppPluginList.vcxproj Line 160 in 567f7b8
Other relevant info:
|
Thank you for your interest in my problem. But you are right that DEBUG is not passed to the build. In the makefile would be a |
Sorry to ask another silly question, but did you also try editing the Lines 33 to 37 in 567f7b8
To be honest, I wasn't aware you could edit an external manifest and have it dynamically loaded by the module 😊 |
Don't be sorry - I'm grateful for any help I get. |
I should have suggested this to start with, but if you check what the pre-processor emits in debug mode, you'll see the expected code path is actually getting compiled:
That leaves the question of why GDB appeared to be stepping into the release code path in your screen capture. 🤔 |
Thank you for all the testing and research you do. These are the only two instances of pluginsAdmin.cpp that I see, and I don't see any line with I do see a couple of lines starting with |
Btw ... I'm using |
Maybe you want to check: |
Thanks - I tried that already, with the result that the compilation fails. I assume that is why it is commented. |
Sorry I didn't spot it above. |
In fact, it fails at exactly the code path you want: the call to
|
@Ekopalypse, does it work better like this? diff --git a/PowerEditor/gcc/makefile b/PowerEditor/gcc/makefile
index 4f0ce59f..c97ced4d 100644
--- a/PowerEditor/gcc/makefile
+++ b/PowerEditor/gcc/makefile
@@ -60,7 +60,7 @@ else
BUILD_TYPE := debug
BUILD_SUFFIX := -debug
CXXFLAGS += -Og -g -Wall -Wpedantic -Wconversion-null
-#CPP_DEFINE += DEBUG
+CPP_DEFINE += DEBUG
endif
#
diff --git a/PowerEditor/src/WinControls/PluginsAdmin/pluginsAdmin.cpp b/PowerEditor/src/WinControls/PluginsAdmin/pluginsAdmin.cpp
index 8a091ad1..34f52373 100644
--- a/PowerEditor/src/WinControls/PluginsAdmin/pluginsAdmin.cpp
+++ b/PowerEditor/src/WinControls/PluginsAdmin/pluginsAdmin.cpp
@@ -706,7 +706,11 @@ bool PluginsAdminDlg::initFromJson()
#ifdef DEBUG // if not debug, then it's release
// load from nppPluginList.json instead of nppPluginList.dll
+#ifdef __MINGW32__
+ ifstream nppPluginListJson(_pluginListFullPath.c_str());
+#else
ifstream nppPluginListJson(_pluginListFullPath);
+#endif
nppPluginListJson >> j;
#else //RELEASE
|
What did I forget to do?
The text was updated successfully, but these errors were encountered: