Skip to content
This repository was archived by the owner on Dec 15, 2022. It is now read-only.
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

Closed

Description

@dpavlic

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?

Activity

  1. 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
  2. lee-dohm commented on Apr 21, 2016

    @lee-dohm
    Contributor

    Which version of Atom are you running?

  3. Ehekatl commented on Apr 24, 2016

    @Ehekatl

    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)

  4. JAAdrian commented on Apr 25, 2016

    @JAAdrian

    Same problem here since 1.7.2 (or maybe earlier?) and I can reproduce the fix from @dpavlic.

    Xubuntu 16.04 (German)

  5. lee-dohm commented on Apr 25, 2016

    @lee-dohm
    Contributor

    @OJFord could this be related to your change #114?

  6. dpavlic commented on Apr 26, 2016

    @dpavlic
    Author

    Also on the 1.7.2.

  7. OJFord commented on Apr 26, 2016

    @OJFord
    Contributor

    @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?

  8. cokelly commented on Apr 27, 2016

    @cokelly

    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

  9. sumdog commented on May 24, 2016

    @sumdog

    My LANG was set to en_NZ.utf8

    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)

  10. OJFord commented on May 24, 2016

    @OJFord
    Contributor

    @sumdog Can you please try setting (or keeping) NZ and launching atom from a terminal with that environment?

  11. sumdog commented on May 24, 2016

    @sumdog

    @OJFord launched from an interactive terminal, but got the same result. en_NZ.utf8 returns no spell check, but with en_US.utf8 spell check works.

    I'm on atom-1.7.3-r1 on Gentoo (official portage release)

  12. 16 remaining items

  13. ostrokach commented on Sep 11, 2016

    @ostrokach

    Can confirm spell-check is working again on 1.11.0-beta5.

  14. Id2ndR commented on Nov 9, 2016

    @Id2ndR

    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)
  15. robert-winkler commented on Jan 4, 2017

    @robert-winkler

    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

  16. dldx commented on Jan 17, 2017

    @dldx

    @robert-winkler Did you try @diraimondo's solution? It works for me on Ubuntu.

  17. quasipedia commented on Jan 18, 2017

    @quasipedia

    @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 ]

  18. ankitp94 commented on Mar 3, 2017

    @ankitp94

    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.

    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
    
  19. ian-bertolacci commented on Apr 4, 2017

    @ian-bertolacci

    Not sure how live this issue is, but the language-chapel package somehow has spellcheck working out-of-box.

    > atom --version
    Atom    : 1.15.0
    Electron: 1.3.13
    Chrome  : 52.0.2743.82
    Node    : 6.5.0
    > uname -a
    Linux hostname 4.4.0-71-generic #92-Ubuntu SMP Fri Mar 24 12:59:01 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux
    
    
  20. aurovrata commented on Nov 9, 2017

    @aurovrata

    I faced the same issue using PureOS 8 (a debian flavoured GNU/Linux). I managed to resolve it with teh following steps,

    1. 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
    2. 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
    3. restart atom

    you should now have spell check working.

  21. sbrl commented on Apr 19, 2018

    @sbrl

    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/.

  22. CalvinHartwell commented on May 11, 2018

    @CalvinHartwell

    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.

  23. 2E0PGS commented on Jul 28, 2018

    @2E0PGS

    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

  24. cpwnd commented on Jan 21, 2019

    @cpwnd

    Thx @quasipedia, adding the cursor scope (in my case text.tex.latex) to the command palette of spell-check did the trick.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions