bartosz-antosik / vscode-spellright

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

With Hunspell no errors are found #330

Closed gabbersepp closed 4 years ago

gabbersepp commented 4 years ago

Hi, I installed the extension on my Surface and it works for EN-US. Then I installed it on my laptop (Win10 Home, 64Bit) and there it did not work. I activated debug output as mentioned here: https://github.com/bartosz-antosik/vscode-spellright/issues/53#issuecomment-323970244

It tells me,that only german dictionaries are added. Thus I set "this.hunspell" hard to "true" in the spellright.js file. After a restart of VScode I am able to select EN-US (downloaded and put the dictionary into C:\Users\Benutzer1\AppData\Roaming\Code\Dictionaries folder)

Now the console displays the EN-US dictionary. But now the console shows this message:

[Extension Host] [spellright] Spelling of "c:\Users\Benutzer1\git\dev.to-posts\blog-posts\eleventy-static-page\eleventy-static-page.md" [markdown] COMPLETED in 0.059s, 0 errors.

Would be nice if you can point me into the right direction.

bartosz-antosik commented 4 years ago

Hi! Could you please ensure that the dictionary is UTF-8? The details are described more or less in README.md.

gabbersepp commented 4 years ago

Hi yes I have read it. :) I tried one from the page you mentioned in the Readme and one from another page. It also stated that the files are in utf8. But I can check it for myself to be sure.

gabbersepp commented 4 years ago

I have following files: image

Both, the .div and the .aff file are in UTF8 if we can trust Notepad++

I don't know if this is intended, but for every key I press i get following console output: image

gabbersepp commented 4 years ago

It seems that my laptop at work shows the same behaviour. What requirements must be fullfilled by my windows installation to ensure that your extension provides spell correction out of the box? Do I have to install some dictionaries in windows directly? Maybe my surface has something internal activated that my laptops do not have

bartosz-antosik commented 4 years ago

There are two separated issues, if I understand things correctly:

1) HUNSPELL dictionaries

This is not only important whether the file IS UTF-8. It also has to have the SET UTF-8 in .aff file:

utf-8

iso8859-1

Please maybe check these!

2) Windows dictionaries

There is a mysterious problem with Windows. Please first have a look at "Known Issues", last paragraph, especially pointed out comments.

gabbersepp commented 4 years ago

Thanks! A comment in the linked issues pointed me into the right direction. My english language pack was corrupt. I reinstalled it and now it works! Thanks for your great work!

bartosz-antosik commented 4 years ago

That is a great news!