You are here

Notepad++ DSpellCheck plugin not functioning properly

5 posts / 0 new
Last post
einst3
Offline
Last seen: 4 years 3 months ago
Joined: 2011-03-17 16:33
Notepad++ DSpellCheck plugin not functioning properly

Notepad++ 6.5.5 portable has DSpellCheck plugin problems on Win7 x64.

issue:
change in notepad++ or dspellcheck settings on win 7 x64 causes plugin to remove all dspellcheck files and directorys in the Data\Config\plugins\config folder (DSpellCheck.ini and Hunspell folder dissapear after application closes).

to repoduce:
1) install notepad++ fresh.
2) change settings for spelling like increasing suggestions to 7 through interface.
3) restart npp (files may dissapear, if not restart npp again).
4) dspellcheck settings and files have dissapeared from plugin folder.

possible causes/resolutions:
1) found changing folder Config to config in DSpellCheck.ini file allows saving settings. must save in both defaultdata folder and userdata folder. might have saving folder/file case issue in npp or plugin.
2) if you change default npp doc from utf8 to ascii settings spelling settings will be removed at this or next launch and will not save no matter what you do.
3) possible exception in DSpellCheck plugin if ftp site cannot be reached for dictionary updates.

DSpellCheck.ini: original file
[SpellCheck]
Autocheck=1
Hunspell_Path=.\plugins\Config\Hunspell
Hunspell_Language=en_GB

DSpellCheck.ini: changed manually
[SpellCheck]
Autocheck=1
Hunspell_Path=.\plugins\config\Hunspell
Hunspell_Language=en_US
Suggestions_Number=7

John T. Haller
John T. Haller's picture
Offline
Last seen: 5 hours 51 min ago
AdminDeveloperModeratorTranslator
Joined: 2005-11-28 22:21
Config to config

If you change Config to config, does it work consistently from then on?

Sometimes, the impossible can become possible, if you're awesome!

einst3
Offline
Last seen: 4 years 3 months ago
Joined: 2011-03-17 16:33
partially

if i rename Config to config it works as long as you do not change any setting in the plugin or in notepad++.
IGNORE THIS COMMENT AND READ NEXT POST

-Einst3 Smile

einst3
Offline
Last seen: 4 years 3 months ago
Joined: 2011-03-17 16:33
Partial Fix: How to fix DSpellCheck issue in Notepad++

To fix issue in Notepad++ rename "Hunspell_Path" to "User_Hunspell_Path" (w/o quotes) in the DSpellCheck.ini file, in both "App\DefaultData\Config\plugins\Config" folder and "Data\Config\plugins\config" folder. this seems to have been an issue since DSpellCheck v1.2.2. Notepad++ added the plugin in version 6.4. also remove Autocheck=1 line in ini file as it is default now (see below).

New DSpellCheck.ini default file:
[SpellCheck]
User_Hunspell_Path=.\plugins\Config\Hunspell
Hunspell_Language=en_GB

according to dspellcheck readme.md:
v1.2.2
Rename Hunspell_Path setting in DSpellCheck.ini to User_Hunspell_Path to avoid some troubles.
Make AutoCheck turned on by default.

note:
resolution solution for furthur debug...

tested all kinds of settings with no resolution.

stumbled on fix by changing the dictionary directory in the dspellcheck settings pannel to what was in the dspellcheck.ini file. when it saved the setting and closed npp it saved it as the User_Hunspell_Path variable in the ini file. then searched dspellcheck src for the User_Hunspell_Path variable name. found the change notice in the readme.md file. looked at npp and found they started using the plugin as of v6.4.

after trying the fix, it worked fine and saved files with no problem.

i suggest backing up files DSpellCheck.ini and Hunspell\*.usr in your "Data\Config\plugins\config" folder every now and then to save your DSpellCheck settings. or you could just backup all your plugin settings in the "Data\Config\plugins\config" folder.

NOT THE COMPLETE STORY

-Einst3 Smile

einst3
Offline
Last seen: 4 years 3 months ago
Joined: 2011-03-17 16:33
DSpellCheck does not handle portable mode correctly

After furthur testing by mounting on c:drive i found the following...
system:win 7 pro, tested on c: and usb 32Meg drive fat32 or ntfs.

1) npp seems to works fine. it seems dspellcheck plugin has issues.
2) change defaultdata...config and data...config DSpellCheck.ini to User_Hunspell_Path instead of Hunspell_Path.
3) make no other changes to DSpellCheck.ini in both places.
4) DO NOT try to configure dspellcheck in UI or manually or download another language or it will break and dspellcheck will delete its ini file and hunspell folder. it will also cause other config files to be removed. if npp is open and dspellcheck does not work, do not close npp, goto the data\config\plugins\config folder, copy the files to the app\notepad++\plugins\config folder. then close npp. npp will copy the files back so it does not loose them.
5) all other plugins will work and are configurable.
6) you can add words to dspellcheck and it will save user file properly.

DSpellCheck plugin does not work properly when PluginManager.ini InstallLocation=2.

Also, when you have to reset your data as in step 4, if it does not copy to the settings to the app...config folder you will have to reconfigure all your other plugin settings as well, as they loose their settings as well. unless you have them backed up and replace them again in the data...config folder.

Also, if you have problems on your portable drive launching npp try launching the Notepad++Portable.exe in the Notepad++ root folder by running as an administrator a few times and waiting for npp and the npp-portable-launcher to close fully by waiting for the process to close on its own in windows task manager.

Also, noticed npp portable does not like copying config files into the directory. it may delete or ignore them and reset to their defaults on a portable drive.

-Einst3 Smile

Log in or register to post comments