The problem seen in https://github.com/atom/spell-check/issues/67#issuecomment-377808833 should be resolved by https://github.com/atom/spell-check/pull/246. That fix is included in Atom 1.26-beta2 (released today) and will be part of Atom 1.26 stable when it is released. #355
I'm going to close this issue. If you're using Atom 1.26-beta2 (or newer) and you continue to see this problem, please open a new issue to let us know.
using Atom 1.52.0 (> 1.26-beta2) and encountering a link to this error.
[Enter steps to reproduce:]
1. ...
2. ...
**Atom**: 1.52.0 x64
**Electron**: 6.1.12
**OS**: Ubuntu 20.04.1
**Thrown From**: [spell-check](https://github.com/atom/spell-check) package 0.76.1
### Stack Trace
Failed to activate the spell-check package
At Cannot read property 'toLowerCase' of undefined
TypeError: Cannot read property 'toLowerCase' of undefined
at Object.exports.getPath (/app.asar/node_modules/atom-pathspec/index.js:30:33)
at LocaleChecker.deferredInit (/app.asar/node_modules/spell-check/lib/locale-checker.js:112:35)
at LocaleChecker.check (/app.asar/node_modules/spell-check/lib/locale-checker.js:73:12)
at SpellCheckerManager.check (/usr/share/atom/resources/app/static/:11:968378)
at Function.SpellCheckTask.startNextJob (/usr/share/atom/resources/app/static/:14:884002)
at SpellCheckTask.start (/usr/share/atom/resources/app/static/:14:883254)
at SpellCheckView.updateMisspellings (/usr/share/atom/resources/app/static/:11:963505)
at SpellCheckView.subscribeToBuffer (/usr/share/atom/resources/app/static/:11:962812)
at new SpellCheckView (/usr/share/atom/resources/app/static/:11:961539)
at /usr/share/atom/resources/app/static/:11:240825
at Workspace.observeTextEditors (/usr/share/atom/resources/app/static/:11:429088)
at Object.activate (/usr/share/atom/resources/app/static/:11:240622)
at Package.activateNow (/usr/share/atom/resources/app/static/:11:3185005)
at /usr/share/atom/resources/app/static/:11:3184417
at Package.measure (/usr/share/atom/resources/app/static/:11:3181995)
at /usr/share/atom/resources/app/static/:11:3184277
at new Promise ()
at Package.activate (/usr/share/atom/resources/app/static/:11:3184220)
at PackageManager.activatePackage (/usr/share/atom/resources/app/static/:11:383220)
at /usr/share/atom/resources/app/static/:11:382836
at Config.transactAsync (/usr/share/atom/resources/app/static/:11:332389)
at PackageManager.activatePackages (/usr/share/atom/resources/app/static/:11:382786)
at PackageManager.activate (/usr/share/atom/resources/app/static/:11:382336)
at /usr/share/atom/resources/app/static/:1:717618
at async Promise.all (index 0)
at AtomEnvironment.startEditorWindow (/usr/share/atom/resources/app/static/:1:718103)
The problem seen in https://github.com/atom/spell-check/issues/67#issuecomment-377808833 should be resolved by https://github.com/atom/spell-check/pull/246. That fix is included in Atom 1.26-beta2 (released today) and will be part of Atom 1.26 stable when it is released.
I'm going to close this issue. If you're using Atom 1.26-beta2 (or newer) and you continue to see this problem, please open a new issue to let us know.
Originally posted by @jasonrudolph in https://github.com/atom/spell-check/issues/67#issuecomment-381137371
using Atom 1.52.0 (> 1.26-beta2) and encountering a link to this error.
At Cannot read property 'toLowerCase' of undefined
TypeError: Cannot read property 'toLowerCase' of undefined at Object.exports.getPath (/app.asar/node_modules/atom-pathspec/index.js:30:33) at LocaleChecker.deferredInit (/app.asar/node_modules/spell-check/lib/locale-checker.js:112:35) at LocaleChecker.check (/app.asar/node_modules/spell-check/lib/locale-checker.js:73:12) at SpellCheckerManager.check (/usr/share/atom/resources/app/static/:11:968378)
at Function.SpellCheckTask.startNextJob (/usr/share/atom/resources/app/static/:14:884002)
at SpellCheckTask.start (/usr/share/atom/resources/app/static/:14:883254)
at SpellCheckView.updateMisspellings (/usr/share/atom/resources/app/static/:11:963505)
at SpellCheckView.subscribeToBuffer (/usr/share/atom/resources/app/static/:11:962812)
at new SpellCheckView (/usr/share/atom/resources/app/static/:11:961539)
at /usr/share/atom/resources/app/static/:11:240825
at Workspace.observeTextEditors (/usr/share/atom/resources/app/static/:11:429088)
at Object.activate (/usr/share/atom/resources/app/static/:11:240622)
at Package.activateNow (/usr/share/atom/resources/app/static/:11:3185005)
at /usr/share/atom/resources/app/static/:11:3184417
at Package.measure (/usr/share/atom/resources/app/static/:11:3181995)
at /usr/share/atom/resources/app/static/:11:3184277
at new Promise ()
at Package.activate (/usr/share/atom/resources/app/static/:11:3184220)
at PackageManager.activatePackage (/usr/share/atom/resources/app/static/:11:383220)
at /usr/share/atom/resources/app/static/:11:382836
at Config.transactAsync (/usr/share/atom/resources/app/static/:11:332389)
at PackageManager.activatePackages (/usr/share/atom/resources/app/static/:11:382786)
at PackageManager.activate (/usr/share/atom/resources/app/static/:11:382336)
at /usr/share/atom/resources/app/static/:1:717618
at async Promise.all (index 0)
at AtomEnvironment.startEditorWindow (/usr/share/atom/resources/app/static/:1:718103)
language-latex 1.2.0 latex 0.50.2 pdf-view 0.72.0 vim-mode-plus 1.36.4