-
Notifications
You must be signed in to change notification settings - Fork 10
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
4.11 crashes Notepad++ 8.5; SOLUTION: install 4.11.1 #30
Comments
Oh no... I know it's kind of backwards for the developer to be saying what is probably causing the bug and then not immediately fixing it, but any changes I make wouldn't change the behavior I see, so I'm just sort of hoping someone will care enough to help me out. If not, I probably just abandon this feature and tell the folks over at the nppPluginList to only list version 4.10.1 of JsonTools on the plugin list. |
I tried both.
It's a pretty "generic" error message - I think generated by Notepad++ when a plugin fails so not really giving much information about what is wrong with the plugin.
Yes, that calls JsonToolsNppPlugin/JsonToolsNppPlugin/Main.cs Lines 889 to 893 in 6b2123a
and you can see the issue in line 892 above. You get the Notepad++ config directory, append the plugin name as a further directory and then access a file in that directory. So: c:\path\to\Notepad++\plugins\config\JsonTools\schemasToFnamePatterns.json but the "JsonTools" directory does not exist. I have a JsonTools.ini file in the "config" directory, but no subdirectory for JsonTools. Perhaps you should check for it's existence - and if not, create it - before creating the path to the file? I manually added that directory:
and now version 4.11 works fine! Cheers. |
Oh, that makes sense! I completely forgot when I was adding this feature that the JsonTools config subdirectory was added a while back, and if someone was upgrading from a version before the config directory existed they might have this exact issue. Thank you for your help. |
FIXED Bug where users who didn't have a JsonTools directory in the config folder would get a plugin crash on startup. Now a config subdirectory is automatically created if it doesn't already exist. This bug also existed with the `JSON from files and APIs` form, but now it has been solved in both places.
Running the latest release 4.11 results in Notepad++ not starting:
The artifact from the previous commit works fine in Notepad++
Cheers.
The text was updated successfully, but these errors were encountered: