vscode-spellright icon indicating copy to clipboard operation
vscode-spellright copied to clipboard

All commands fail

Open klingtnet opened this issue 4 years ago • 12 comments

All of the commands fail with a message similar to:

Command 'SpellRight: Select Dictionary (Language)' resulted in an error (Running the contributed command: 'spellright.selectDictionary' failed.)

I am using this extension version

Name: Spell Right
Id: ban.spellright
Description: Multilingual, Offline and Lightweight Spellchecker
Version: 3.0.50
Publisher: Bartosz Antosik
VS Marketplace Link: https://marketplace.visualstudio.com/items?itemName=ban.spellright

with the OSS build of VS code

Version: 1.46.0
Commit: a5d1cc28bb5da32ec67e86cc50f84c67cc690321
Date: 2020-06-11T14:57:41.218Z
Electron: 7.1.14
Chrome: 78.0.3904.130
Node.js: 12.8.1
V8: 7.8.279.23-electron.0
OS: Linux x64 5.7.2-arch1-1

The extension configuration folder looks fine to me:

$ ls -al ~/.config/Code\ -\ OSS/Dictionaries/
total 860
drwxr-xr-x   2 root root   4096 Jun 18 20:01 .
drwxr-xr-x 190 root root   4096 Jun 18 20:01 ..
lrwxrwxrwx   1 root root     15 Feb 23 10:06 en_US.aff -> en_US-large.aff
lrwxrwxrwx   1 root root     15 Feb 23 10:06 en_US.dic -> en_US-large.dic
-rw-r--r--   1 root root   3090 Feb 23 10:06 en_US-large.aff
-rw-r--r--   1 root root 866133 Feb 23 10:06 en_US-large.dic

Update Error messages from the developer console of VS code did not contain any additional information.

klingtnet avatar Jun 18 '20 18:06 klingtnet

This is very strange. I have reviewed issues related to OSS and it seemed to be working ok recently. There is no any additional information in Output/Debug console etc?

bartosz-antosik avatar Jun 18 '20 18:06 bartosz-antosik

Thank you for the quick reply! Unfortunately, all I can provide is this: Screenshot from 2020-06-18 20-49-13

klingtnet avatar Jun 18 '20 18:06 klingtnet

I suspect (and looking through the issues searching for OSS reminds me this) things are located different in OSS. This caused problems of which some have been cured in the past. I do not have OSS around ant thus I am not sure what to do.

P.S. You ahve checked that dic/aff files are UTF-8 (it is describer in the README If I remember correctly)?

bartosz-antosik avatar Jun 18 '20 18:06 bartosz-antosik

Yes, they're:

$ file ~/.config/Code\ -\ OSS/Dictionaries/en_US-large.*
/home/alinz/.config/Code - OSS/Dictionaries/en_US-large.aff: UTF-8 Unicode text
/home/alinz/.config/Code - OSS/Dictionaries/en_US-large.dic: UTF-8 Unicode text

I will check what happens if I create a symlink from ~/.config/Code\ -\ OSS to ~/.config/Code. Update Then I can select a language, so the path, or likely the spaces in it, are the causing the issue.

klingtnet avatar Jun 18 '20 19:06 klingtnet

I have the same issue.

Shatur avatar Aug 05 '20 15:08 Shatur

Update Then I can select a language, so the path, or likely the spaces in it, are the causing the issue.

Worked for me. I use Arch Linux too and default code package provides OSS version that use Code - OSS folder.

Shatur avatar Aug 06 '20 20:08 Shatur

I am facing the same issue with VS Code 1.48.* on Windows 10 (64 bit), connected inside my Windows Subsystem for Linux WSL running Ubuntu 20.04. As described, any spellright.X command results in a popup with command 'spellright.X' not found, e.g.

Command 'SpellRight: Select Dictionary (Language)' resulted in an error (command 'spellright.selectDictionary' not found)

I followed the readme and created symlinks to hunspell dictionaries inside WSL to /.config/Code/Dictionaries (and made sure at least hunspell-en-us and -gb are installed). Setting global.SPELLRIGHT_DEBUG_OUTPUT to true appears to makes no difference. Spell Right version is 3.0.52.

Below are the details from VS Code's about dialog. Electron version is 7.3.2, but in the extension's lib/bin folder inside WSL, I only see spellchecker-{deb,rpm}-{7.1.7,9.1.0}-{ia32,x64}.node binaries, but nothing explicitly for 7.3.2 (in case this matters).

Version: 1.48.0 (user setup)
Commit: db40434f562994116e5b21c24015a2e40b2504e6
Date: 2020-08-13T07:50:42.600Z
Electron: 7.3.2
Chrome: 78.0.3904.130
Node.js: 12.8.1
V8: 7.8.279.23-electron.0
OS: Windows_NT x64 10.0.18363

The extension works fine when working 'natively' in Windows (i.e. when not connected into WSL).

bwegge avatar Aug 27 '20 11:08 bwegge

Problem persists with the recently released v3.0.56 in VS Code 1.52.1 on Windows 10 20H2 for connections into WSL2.

bwegge avatar Jan 14 '21 09:01 bwegge

have the same issue on macOS. clean reinstallation of vs-code did not help

MaHaWo avatar Aug 09 '21 15:08 MaHaWo

Same problem on Ubuntu 20.04.2 LTS.

natema avatar Aug 09 '21 15:08 natema

Same issue here on macOS.

chrisbartoloburlo avatar Aug 10 '21 09:08 chrisbartoloburlo

Same issue here on macOS.

kecinzer avatar Nov 05 '21 15:11 kecinzer