-
Notifications
You must be signed in to change notification settings - Fork 4.5k
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
-- Nothing to see here, anymore -- #9514
Comments
This is probably due to dropping Windows XP support. |
I provided some info in the issue Hsilgos/nppsaveasadmin#24 (comment) |
If only the Notepad++ could somehow catch the exception being thrown from the plugin's |
The problem is that it is not possible to catch an exception thrown from a DLL when it's being loaded. |
@dodmi
Yes, that's the only solution I can see so far - however, there's no way to distinguish the version of plugin. Any other suggestions are welcome. |
Why, there is no way to read the dll version?
If a block list is will be created for such situations, it is best to make it officially available as a download. It should contain known cases of broken plug-ins (name, plug-in version, and NPP version from which it doesn't work). At least it will be possible to write some static tool that will verify the status of plugins against this list and actual Notepad++ version, and if it detects such a situation, it will either remove the plugin or inform the user abaout the exact plugin causing the problem. |
I know how to do it in C++, but not in NSIS (installer). Edit: Maybe there's a way: |
Ah, ok . I don't know what NSIS (installer) is capable of. I suppose this verification (if it is created) will not work for the portable version? |
No. Otherwise I have to integrate the verification code into Notepad++ for a specific plugin - that is not reasonable IMO. |
The idea that a wheel has the capacity to fly and to dive is attractive. In reality I prefer to have a wheel, a pair of wings and a scuba set, because it's much more reliable. |
@donho
and
So actually there is no any "very bad" plugin. Quite a few display some dialogs on startup, including that they are incompatible with the current version, but none causes a crash. Additional information:
If someone plans to write a script for checking, it should rather run on a virtual machine, because some plugins may change system settings, like @donho |
Wow! Thank you for working on that. I didn't mean to prevent Notepad++ startup from crash due to all the plugins though.
Plugin list publishes the version of plugins for displaying the plugin version to users, so plugin authors should provide the version of binary (plugin) to plugin list (via their PR). OTOH, I don't see anyway that plugin list get dll files from the distance via the links provided by plugin authors. The solution I provided is for the known critical issue (this specific case of NPP Save as Admin plugin), so I think you may overlook and try to find a preventive solution - that is good, but I don't think it's possible. |
Sure, but I wrote some local tools that can analyze some plugin list (32- or 64-bit) so you can test different version plugin list and different version NPP portable (in various configurations). It just uses the list which we give it (inside some NPP folder) and:
Once we have a cache, it checks quickly, as in the logs above. Before creating a new |
@ArkadiuszMichalski There was already the idea to implement something similar, see notepad-plus-plus/nppPluginList#250 to avoid/detect incompatibilities. |
@ArkadiuszMichalski |
-- Nothing to see here, anymore --
The text was updated successfully, but these errors were encountered: