bartosz-antosik / vscode-spellright

Multilingual, Offline and Lightweight Spellchecker for Visual Studio Code
Other
360 stars 37 forks source link

Workspace dictionary doesn't work, but squiggly underline goes away temporarily #311

Open ThubLives opened 5 years ago

ThubLives commented 5 years ago

It looks like there are several older issues with similar symptoms, so I hope this isn't a known issue already. If I open either a folder or a saved (single root) workspace, the <root>\.vscode\spellright.dict file is ignored and only the user and system dictionary is used for spell-checking. If I use the fixes menu and add the word to the workspace dictionary, the squiggly underline disappears and the word is added to the spellright.dict file. Pretty much anything that triggers the spell-check causes the squiggly underline to return.

Steps to reproduce:

  1. Open an empty folder in vscode.
  2. Save a new text file containing:
    sporgd is not a real word.
  3. Click on the word "sporgd" and choose Add "sporgd" to workspace dictionary.
  4. Close and re-open the editor for the text file. Note that "sporgd" is marked as an error.
  5. Open the spellright.dict file using SpellRight: Open Workspace Dictionary File palette command. Note that the file contains the word "sporgd".
  6. Go back to the text file and try adding the word to the workspace dictionary again. Note that the spellright.dict file now contains "sporgd" twice.

OS: Windows 10 release 1803 64-bit Visual Studio Code: Version 1.38.1 64-bit Extensions: Spell Right 3.0.48

primercuervo commented 3 years ago

I'm facing the same issue here. Even just saving the file after step 3 triggers the error, as if the workspace dictionary is completely ignored.

Adding the word to the user dictionary does work as expected (even though that's not a solution, but a workaround).

OS: Windows 10 Version 20H2 (build 19042.1110) 64-bit VSCode: 1.59.0 Spell Right: 3.0.60

naomiyaki commented 3 years ago

I am also experiencing this bug. The spellright.dict file is in the .vscode folder (single root workspace) and the lightbulb context menu can even add new words to it. When I do, the error squiggles go away temporarily until I work in the file again. Then, any of the custom words within the active line are highlighted. Adding to the user dictionary works fine. I have tried this with spellright.configurationScope set to both user and workspace and the results are the same.

OS: Windows 10 Version 20H2 (build 19042.1288) VSCode: 1.61.2 Spellright: 3.0.60

axiopaladin commented 3 months ago

I have the same issue. I think this may be the same as #496 too?

I noticed a few issues discussing the difference between LF and CRLF for the dictionary and edited files (#332 and #543) that seem to have similar symptoms, but when I tried flipping modes on both my workspace dictionary and my edited files, it doesn't seem to fix the problem.

OS: Windows 10 Pro 22H2 (build 19045.4651) VSCode: 1.92.0 Spellright: 3.0.136

ashemedai commented 2 months ago

This is still an issue. You can add words to the workspace dictionary via code actions or even add words directly, doesn't matter. Next spell check cycle they all get marked as wrong again.

And it is indeed the same issue as reported in #496.