Skip to content
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

With Hunspell no errors are found #330

Closed
gabbersepp opened this issue Jan 8, 2020 · 7 comments
Closed

With Hunspell no errors are found #330

gabbersepp opened this issue Jan 8, 2020 · 7 comments

Comments

@gabbersepp
Copy link

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: #53 (comment)

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
Copy link
Owner

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

@gabbersepp
Copy link
Author

gabbersepp commented Jan 8, 2020

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
Copy link
Author

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
Copy link
Author

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
Copy link
Owner

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!

  1. Windows dictionaries

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

@gabbersepp
Copy link
Author

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
Copy link
Owner

That is a great news!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants