You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Dec 15, 2022. It is now read-only.
Repository navigation
This repository was archived by the owner on Dec 15, 2022. It is now read-only.
No spelling warnings without specifying LANG=en_US.UTF-8 on Linux #129
I am having trouble with getting spell check to work. Just running Atom and toggling spell check, I get no spelling warnings.
The LANG environment variable on my system is set to en_CA.UTF-8. Running Atom directly from the terminal via LANG=en_US.UTF-8 works and gives me American spelling warnings. Any ideas as to what could be the issue?
Reacted by Tim DuBois, Anton Jansson, Miguel Crispim Romao, Brenton Horne, Mac Ryan, Alexey Strokach, Filip Weiss, Rajath M S, Marcus Schopen and Alexandre ZANNI
changed the title [-]No spelling possible without specifying LANG=en_US.UTF-8 (Arch Linux)[/-][+]No spelling warnings without specifying LANG=en_US.UTF-8 (Arch Linux)[/+]on Apr 19, 2016
same here on windows 10, atom 1.7.2, it used to work without specify LANG in env settings (I'm using chinese version of windows, English language is installed)
@lee-dohm I haven't experienced this, but I don't think I've used latest build yet. Odd - possibly something else has changed that's set hard to en_US?
If someone wants to try reverting atom/node-spellchecker#33 on their system - it's an easy one-line change - we'll know more, I would but I don't have access to it at the moment.
Actually - @dpavlic - what happens if you keep en_CA but launch atom from the terminal with that environment?
I tried reverting atom/node-spellchecker#33 as per OJFord's suggestion above and the spell check is working again. Atom 1.7.2; Spell-check 0.67.0, Arch Linux; $LANG=en_GB.UTF-8
I set LANG to be both en_US and en_US.utf8 and both of those worked.
I'm pretty sure I have the NZ dictionaries installed. Even so, if lang_region isn't found, spell check libraries like Hunspell should fall back to the fist available lang.
This was working on an earlier version (see marked duplicate)
In Fedora 24 (atom 1.11.1), I manage to get it working by:
Add "/usr/share/myspell/" in locale path of spell-check settings
set Gramar of my file to PlainText or Markdown or something else where spell check will be done. Toogle spell check once or twice to be sure (Packages > Spell Check > Toogle)
Hi, I tried the procedure of ld2ndR on Fedora25, atom 1.12.6:
The .dic files defined by the locals "en_US, en_GB, de_DE, es" are in "/usr/share/myspell/"
But the spell-check does not work in a mardown.md file (Packages > Spell Check > Toogle)
The problem is really annoying. Is there a known general solution (I would not mind copying the .dict files, although the solution would not be very elegant)
My standard locale is en_GB
@robert-winkler - I'm not sure if I misunderstood you, but if the problem is a specific type of files not being checked at all, you probably need to add that type of file context into the spell-check settings on atom.
To find out what the context of your files is, you should use the command palette (ctrl-shift-p) and search for Editor: log cursor scopes. Copy the string that will pop up as a notification, and you should be good to go.
Linux version 4.4.0-36-generic (buildd@lgw01-20) (gcc version 4.8.4 (Ubuntu 4.8.4-2ubuntu1~14.04.3) ) #55~14.04.1-Ubuntu SMP Fri Aug 12 11:49:30 UTC 2016
Atom : 1.14.4
Electron: 1.3.13
Chrome : 52.0.2743.82
Node : 6.5.0
I faced the same issue using PureOS 8 (a debian flavoured GNU/Linux). I managed to resolve it with teh following steps,
make sure you have the dictionary installed, sudo apt search hunspell-gb-en in my case. See a list of available dictionaries here, else install the dictionary sudo apt install hunspell-gb-en
in your atom specll-check package settings, make sure the Use Locales checkbox is checked and then below that insert your language locale into the Locales field, 'en-GB' in my case, as well as the location where your files are installed, /usr/share/hunspell/ in the field Locales Path
I found that on my system, I needed to add the symbolic links to /usr/lib/atom/node_modules/spellchecker/vendor/hunspell_dictionaries/ from /usr/share/hunspell/.
Activity
[-]No spelling possible without specifying LANG=en_US.UTF-8 (Arch Linux)[/-][+]No spelling warnings without specifying LANG=en_US.UTF-8 (Arch Linux)[/+]lee-dohm commentedon Apr 21, 2016
Which version of Atom are you running?
Ehekatl commentedon Apr 24, 2016
same here on windows 10, atom 1.7.2, it used to work without specify LANG in env settings (I'm using chinese version of windows, English language is installed)
JAAdrian commentedon Apr 25, 2016
Same problem here since 1.7.2 (or maybe earlier?) and I can reproduce the fix from @dpavlic.
Xubuntu 16.04 (German)
lee-dohm commentedon Apr 25, 2016
@OJFord could this be related to your change #114?
dpavlic commentedon Apr 26, 2016
Also on the 1.7.2.
OJFord commentedon Apr 26, 2016
@lee-dohm I haven't experienced this, but I don't think I've used latest build yet. Odd - possibly something else has changed that's set hard to
en_US?If someone wants to try reverting atom/node-spellchecker#33 on their system - it's an easy one-line change - we'll know more, I would but I don't have access to it at the moment.
Actually - @dpavlic - what happens if you keep
en_CAbut launch atom from the terminal with that environment?cokelly commentedon Apr 27, 2016
I tried reverting atom/node-spellchecker#33 as per OJFord's suggestion above and the spell check is working again. Atom 1.7.2; Spell-check 0.67.0, Arch Linux; $LANG=en_GB.UTF-8
sumdog commentedon May 24, 2016
My
LANGwas set toen_NZ.utf8I set
LANGto be bothen_USanden_US.utf8and both of those worked.I'm pretty sure I have the NZ dictionaries installed. Even so, if lang_region isn't found, spell check libraries like Hunspell should fall back to the fist available lang.
This was working on an earlier version (see marked duplicate)
OJFord commentedon May 24, 2016
@sumdog Can you please try setting (or keeping) NZ and launching
atomfrom a terminal with that environment?sumdog commentedon May 24, 2016
@OJFord launched from an interactive terminal, but got the same result.
en_NZ.utf8returns no spell check, but withen_US.utf8spell check works.I'm on atom-1.7.3-r1 on Gentoo (official portage release)
16 remaining items
ostrokach commentedon Sep 11, 2016
Can confirm spell-check is working again on 1.11.0-beta5.
Id2ndR commentedon Nov 9, 2016
In Fedora 24 (atom 1.11.1), I manage to get it working by:
robert-winkler commentedon Jan 4, 2017
Hi, I tried the procedure of ld2ndR on Fedora25, atom 1.12.6:
The problem is really annoying. Is there a known general solution (I would not mind copying the .dict files, although the solution would not be very elegant)
My standard locale is en_GB
dldx commentedon Jan 17, 2017
@robert-winkler Did you try @diraimondo's solution? It works for me on Ubuntu.
quasipedia commentedon Jan 18, 2017
@robert-winkler - I'm not sure if I misunderstood you, but if the problem is a specific type of files not being checked at all, you probably need to add that type of file context into the spell-check settings on atom.
To find out what the context of your files is, you should use the command palette (ctrl-shift-p) and search for
Editor: log cursor scopes. Copy the string that will pop up as a notification, and you should be good to go.[ Unless I misunderstood your problem, that is ]
ankitp94 commentedon Mar 3, 2017
I tried solutions made by both @Id2ndR's comment and @diraimondo's comment. But what worked for me was @eberghoefer's solution.
Spell-checking should not be this difficult.
ian-bertolacci commentedon Apr 4, 2017
Not sure how live this issue is, but the language-chapel package somehow has spellcheck working out-of-box.
aurovrata commentedon Nov 9, 2017
I faced the same issue using PureOS 8 (a debian flavoured GNU/Linux). I managed to resolve it with teh following steps,
sudo apt search hunspell-gb-enin my case. See a list of available dictionaries here, else install the dictionarysudo apt install hunspell-gb-en/usr/share/hunspell/in the field Locales Pathyou should now have spell check working.
sbrl commentedon Apr 19, 2018
I found that on my system, I needed to add the symbolic links to
/usr/lib/atom/node_modules/spellchecker/vendor/hunspell_dictionaries/from/usr/share/hunspell/.CalvinHartwell commentedon May 11, 2018
Hitting the same issues STILL on 16.04, very annoying, this should not be so difficult. It works out of the box on OSX and Windows.
2E0PGS commentedon Jul 28, 2018
I have this problem on 16.04 I had to follow the documentation to get this working: https://github.com/atom/spell-check#debian-ubuntu-and-mint
cpwnd commentedon Jan 21, 2019
Thx @quasipedia, adding the cursor scope (in my case
text.tex.latex) to the command palette of spell-check did the trick.