Open Ben-Voris opened 5 years ago
Hi! I am terribly sorry for answering this late! I have very little time recently to deal with SpellRight and just minutes ago I tried to answer similar question. Could you please check with thread #264 whether it does not solve your issue?
no issues here on linux
ran
ln -s /usr/share/hunspell/ /home/webfreak/.config/Code/Dictionaries
to have it use all my system hunspell dictionaries (on ArchLinux) and then selected the language inside vscode. Works great!
It's most likely a permissions issue on Linux and a configuration issue.
Using the symbolic link looks like you have the permission, however the underlying permission is for root
.
The simplest solution is to
cd /usr/share/hunspell
cp en_yourLanguage.aff ~/.config/Code/Dictionaries
cp en_yourLanguage.dic ~/.config/Code/Dictionaries
echo "Need to create the folder below if it doesn't exist"
cd ~/.config/Code/Dictionaries
echo "Below command to check permissions. If its root, change is to your username with chown. No need to use chmod"
ls -larth
should return
-rw-r--r-- 1 yourname yourname 3.1K Jul 17 21:35 en_AU.aff
-rw-r--r-- 1 yourname yourname 540K Jul 17 21:35 en_AU.dic
I also had to add setting to settings.json
{
"spellright.suggestionsInHints":true,
"spellright.language": [
"en_AU"
],
"spellright.documentTypes": [
"markdown",
"latex",
"plaintext"
],
}
In a text file, all words are reported as misspelled. In this example, all words are misspelled, including the one that really is.
When I try to set the language in VS Code, I get this error:
Running the contributed command: 'spellright.selectDictionary' failed.
What have I done wrong?
Extension information:
Here are the dictionaries:
hunspell works from the command line.
First, display its default dictionary:
And demonstrate that it works:
As expected, running
hunspell -d en_US < test.txt
gives the same results.I installed VS Code using
sudo snap install --classic code
VS Code reports this version:
snap reports:
Underlying OS: