bartosz-antosik / vscode-spellright

Multilingual, Offline and Lightweight Spellchecker for Visual Studio Code
Other
360 stars 37 forks source link

Spell checking does not work #138

Closed c3er closed 6 years ago

c3er commented 6 years ago

Spell checking does not work currently. I use this extension since months and worked always fine. Maybe the last update of Spell Right and/or VS Code have a cause.

edit:

I use spell checking for Markdown files (that does currently not work).

bartosz-antosik commented 6 years ago

Could you please open Developer Tools (Help -> Toggle Developer) Tools and see if there (Console pane) is anything related to Spell Right?

c3er commented 6 years ago

The extension cannot be activated, because of an exception:

[Extension Host] Activating extension `ban.spellright` failed:  Cannot read property 'replace' of undefined
t.log @ /C:/Program Files (x86)/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:260
/C:/Program Files (x86)/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:260 [Extension Host] Here is the error stack:  TypeError: Cannot read property 'replace' of undefined
    at C:\Users\Test User\.vscode\extensions\ban.spellright-2.2.8\src\spellright.js:1839:37
    at Array.forEach (native)
    at SpellRightIndicator.updateStatusBarIndicator (C:\Users\Test User\.vscode\extensions\ban.spellright-2.2.8\src\spellright.js:1836:22)
    at new SpellRightIndicatorController (C:\Users\Test User\.vscode\extensions\ban.spellright-2.2.8\src\spellright.js:1911:34)
    at SpellRight.activate (C:\Users\Test User\.vscode\extensions\ban.spellright-2.2.8\src\spellright.js:99:22)
    at activate (C:\Users\Test User\.vscode\extensions\ban.spellright-2.2.8\src\extension.js:34:16)
    at Function.t._callActivateOptional (c:\Program Files (x86)\Microsoft VS Code\resources\app\out\vs\workbench\node\extensionHostProcess.js:677:587)
    at Function.t._callActivate (c:\Program Files (x86)\Microsoft VS Code\resources\app\out\vs\workbench\node\extensionHostProcess.js:677:271)
    at c:\Program Files (x86)\Microsoft VS Code\resources\app\out\vs\workbench\node\extensionHostProcess.js:676:336
    at Object.g [as _notify] (c:\Program Files (x86)\Microsoft VS Code\resources\app\out\vs\workbench\node\extensionHostProcess.js:69:572)
    at Object.enter (c:\Program Files (x86)\Microsoft VS Code\resources\app\out\vs\workbench\node\extensionHostProcess.js:72:924)
    at n.Class.derive._oncancel._run (c:\Program Files (x86)\Microsoft VS Code\resources\app\out\vs\workbench\node\extensionHostProcess.js:74:719)
    at n.Class.derive._oncancel._completed (c:\Program Files (x86)\Microsoft VS Code\resources\app\out\vs\workbench\node\extensionHostProcess.js:74:160)
    at c (c:\Program Files (x86)\Microsoft VS Code\resources\app\out\vs\workbench\node\extensionHostProcess.js:77:654)
    at q.then.o.(anonymous function) (c:\Program Files (x86)\Microsoft VS Code\resources\app\out\vs\workbench\node\extensionHostProcess.js:77:868)
    at Object.g [as _notify] (c:\Program Files (x86)\Microsoft VS Code\resources\app\out\vs\workbench\node\extensionHostProcess.js:69:572)
    at Object.enter (c:\Program Files (x86)\Microsoft VS Code\resources\app\out\vs\workbench\node\extensionHostProcess.js:72:924)
    at n.Class.derive._oncancel._run (c:\Program Files (x86)\Microsoft VS Code\resources\app\out\vs\workbench\node\extensionHostProcess.js:74:719)
    at n.Class.derive._oncancel._completed (c:\Program Files (x86)\Microsoft VS Code\resources\app\out\vs\workbench\node\extensionHostProcess.js:74:160)
    at c (c:\Program Files (x86)\Microsoft VS Code\resources\app\out\vs\workbench\node\extensionHostProcess.js:77:654)
    at q.then.o.(anonymous function) (c:\Program Files (x86)\Microsoft VS Code\resources\app\out\vs\workbench\node\extensionHostProcess.js:77:868)
    at Object.g [as _notify] (c:\Program Files (x86)\Microsoft VS Code\resources\app\out\vs\workbench\node\extensionHostProcess.js:69:572)
    at Object.enter (c:\Program Files (x86)\Microsoft VS Code\resources\app\out\vs\workbench\node\extensionHostProcess.js:72:924)
    at n.Class.derive._oncancel._run (c:\Program Files (x86)\Microsoft VS Code\resources\app\out\vs\workbench\node\extensionHostProcess.js:74:719)
    at n.Class.derive._oncancel._completed (c:\Program Files (x86)\Microsoft VS Code\resources\app\out\vs\workbench\node\extensionHostProcess.js:74:160)
    at e.resolveOk (c:\Program Files (x86)\Microsoft VS Code\resources\app\out\vs\workbench\node\extensionHostProcess.js:497:926)
    at e._receiveReply (c:\Program Files (x86)\Microsoft VS Code\resources\app\out\vs\workbench\node\extensionHostProcess.js:559:735)
    at e._receiveOneMessage (c:\Program Files (x86)\Microsoft VS Code\resources\app\out\vs\workbench\node\extensionHostProcess.js:559:79)
    at c:\Program Files (x86)\Microsoft VS Code\resources\app\out\vs\workbench\node\extensionHostProcess.js:558:75
    at c:\Program Files (x86)\Microsoft VS Code\resources\app\out\vs\workbench\node\extensionHostProcess.js:560:929
    at c:\Program Files (x86)\Microsoft VS Code\resources\app\out\vs\workbench\node\extensionHostProcess.js:88:30
    at e.fire (c:\Program Files (x86)\Microsoft VS Code\resources\app\out\vs\workbench\node\extensionHostProcess.js:89:344)
    at Socket.<anonymous> (c:\Program Files (x86)\Microsoft VS Code\resources\app\out\vs\workbench\node\extensionHostProcess.js:143:1008)
    at emitOne (events.js:96:13)
    at Socket.emit (events.js:191:7)
    at readableAddChunk (_stream_readable.js:178:18)
    at Socket.Readable.push (_stream_readable.js:136:10)
    at Pipe.onread (net.js:560:20)
/C:/Program Files (x86)/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:260 [Extension Host] vscode-icons is active!

Additionally a screenshot:

Console log of VS Code

bartosz-antosik commented 6 years ago

Could you please show me your user/workspace configuaration regarding Spell Right? That is entries starting with "spellright"?

bartosz-antosik commented 6 years ago

Also, which may be the source of the problem, could you please tell me what dictionaries you have installed in your system?

c3er commented 6 years ago

Since yesterday I tried VS Code with Spell Right on my Windows 10 machine at home and there it works fine (Windows 10 64 bit, same Versions of VS Code and Spell Right). There, I have only English (US) and German (Germany).

On my Windows 8.1 machine, I seem to have got almost every language available.

Here the snippet of my user settings:

"spellright.language": "English",
"spellright.latexSpellParameters": [
  "title",
  "date",
  "author",
  "caption",
  "section",
  "subsection",
  "subsubsection",
  "paragraph",
  "subparagraph"
],

Here a full list of the installed languages:

bartosz-antosik commented 6 years ago

Hi, this should be fixed in just published version 2.2.10. Please drop me a line whether it works for you!

c3er commented 6 years ago

Unfortunately not. I get still the same error (as it seems).

Screenshot

bartosz-antosik commented 6 years ago

Should eventually be OK in version 2.2.12. Sorry for the trouble. The situation you have (multiple languages) was hard to simulate precisely.

c3er commented 6 years ago

Works now. Thank you very much!

I was just googling for downgrading the extension to let you know, which version was the last working one.

bartosz-antosik commented 6 years ago

Oh, sorry for additional work. I know which version caused this - the one that allowed LANGUAGE-REGION separator characters mixed ("_" & "-")., that is version 2.2.8. Problem with recent version was just typo.

c3er commented 6 years ago

No problem. I was curious.

PCDSandwichMan commented 5 years ago

I am having the same issue. Would you mind letting me know which last working version your installed and how? I would really like to do the same.

Thank you

c3er commented 5 years ago

@PCDSandwichMan

It is long ago since I encountered this bug. At my systems, the spell checker works perfect currently.

I guess the last working version before that was 2.2.6. To install any version, go to the extensions view (Ctrl+Shift+X), right click on the "Spell Right" entry and choose "Install Another Version". A list appears, where you can choose the version to try out.

mcnesium commented 5 years ago

I am facing "command … not found" with VSCode OSS v1.33.1 and Spell Right v3.0.38 on Linux using hunspell. The Dictionaries dir is symlinked to the hunspell libs at /usr/share/hunspell and this is how they look:

$ ~ ls -la .config/Code/Dictionaries/
total 4164
drwxr-xr-x   2 root root    4096 22. Mai 13:51 .
drwxr-xr-x 307 root root   12288 30. Apr 17:10 ..
-rw-r--r--   1 root root   18978  9. Nov 2018  de_AT.aff
-rw-r--r--   1 root root 1105241  9. Nov 2018  de_AT.dic
lrwxrwxrwx   1 root root       9  9. Nov 2018  de_BE.aff -> de_DE.aff
lrwxrwxrwx   1 root root       9  9. Nov 2018  de_BE.dic -> de_DE.dic
-rw-r--r--   1 root root   18978  9. Nov 2018  de_CH.aff
-rw-r--r--   1 root root 1104251  9. Nov 2018  de_CH.dic
-rw-r--r--   1 root root   18978  9. Nov 2018  de_DE.aff
-rw-r--r--   1 root root 1101641  9. Nov 2018  de_DE.dic
lrwxrwxrwx   1 root root       9  9. Nov 2018  de_LI.aff -> de_CH.aff
lrwxrwxrwx   1 root root       9  9. Nov 2018  de_LI.dic -> de_CH.dic
lrwxrwxrwx   1 root root       9  9. Nov 2018  de_LU.aff -> de_DE.aff
lrwxrwxrwx   1 root root       9  9. Nov 2018  de_LU.dic -> de_DE.dic
lrwxrwxrwx   1 root root      15 15. Aug 2018  en_PH.aff -> en_US-large.aff
lrwxrwxrwx   1 root root      15 15. Aug 2018  en_PH.dic -> en_US-large.dic
-rw-r--r--   1 root root    3090 15. Aug 2018  en_US-large.aff
-rw-r--r--   1 root root  863792 15. Aug 2018  en_US-large.dic
lrwxrwxrwx   1 root root      15 15. Aug 2018  en_US.aff -> en_US-large.aff
lrwxrwxrwx   1 root root      15 15. Aug 2018  en_US.dic -> en_US-large.dic

Both language packs 1/2 are installed from Manjaro extra repository using Pamac.

Here is the dev console output of vscode:

Screenshot from 2019-05-22 13-43-35

@PCDSandwichMan were you able to do something about it with another version?

derpda commented 5 years ago

Facing the same issue on vscode 1.35.1 with spellright 3.0.38 on Arch Linux 5.1.9-arch1-1-ARCH. hunspell dictionaries linked to $HOME/.config/Code\ -\ OSS/Dictionaries (the package uses that folder...). Also linked $HOME/.config/Code\ -\ OSS to $HOME/.config/Code to be safe.