bartosz-antosik / vscode-spellright

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

spellright.selectDictionary not found #350

Open jonathan-dilorenzo opened 4 years ago

jonathan-dilorenzo commented 4 years ago

Hi,

I'm having trouble selecting a dictionary. I installed spellright in WSL with Ubuntu and tried linking hunspell dictionaries to various locations (including .config/Code, .vscode-server/, .vscode-server/data, and %APPDATA%\Code).

My vscode setup: Version: 1.43.1 (user setup) Commit: fe22a9645b44368865c0ba92e2fb881ff1afce94 Date: 2020-03-18T07:01:20.184Z Electron: 7.1.11 Chrome: 78.0.3904.130 Node.js: 12.8.1 V8: 7.8.279.23-electron.0 OS: Windows_NT x64 10.0.18363

When I toggle developer tools and try to select dictionary, I get this error:

Error Text notificationsAlerts.ts:38 Error: command 'spellright.selectDictionary' not found at u._tryExecuteCommand (file:///C:/Program Files (/C:/Program%20Files%20(x86)/Microsoft%20VS%20Code/resources/app/out/vs/code/electron-browser/workbench/x86)/Microsoft VS Code/resources/app/out/vs/workbench/workbench.desktop.main.js:3416:893) at file:///C:/Program Files (/C:/Program%20Files%20(x86)/Microsoft%20VS%20Code/resources/app/out/vs/code/electron-browser/workbench/x86)/Microsoft VS Code/resources/app/out/vs/workbench/workbench.desktop.main.js:3416:774 at processTicksAndRejections (internal/process/task_queues.js:85) at async t (file:///C:/Program Files (/C:/Program%20Files%20(x86)/Microsoft%20VS%20Code/resources/app/out/vs/code/electron-browser/workbench/x86)/Microsoft VS Code/resources/app/out/vs/workbench/workbench.desktop.main.js:4370:230) onDidChangeNotification @ notificationsAlerts.ts:38 (anonymous) @ notificationsAlerts.ts:26 fire @ event.ts:587 addNotification @ notifications.ts:183 error @ notificationService.ts:57 onError @ commandsHandler.ts:356 t @ commandsHandler.ts:334 processTicksAndRejections @ internal/process/task_queues.js:85 async function (async) t @ commandsHandler.ts:325 (anonymous) @ commandsHandler.ts:345 setTimeout (async) runAction @ commandsHandler.ts:345 run @ commandsHandler.ts:303 run @ quickOpenModel.ts:576 elementSelected @ quickOpenWidget.ts:587 (anonymous) @ quickOpenWidget.ts:299 fire @ event.ts:587 fire @ event.ts:589 setSelection @ treeModel.ts:1168 setSelection @ treeImpl.ts:201 onLeftClick @ treeDefaults.ts:190 onClick @ treeDefaults.ts:172 onClick @ treeView.ts:1156 (anonymous) @ treeView.ts:550

Let me know if I can help with additional details!

jonathan-dilorenzo commented 4 years ago

Actually, this seems to happen with every commands. Let me know if the error messages of other ones would be useful.

It looks like some other people in #69 are having the same issue lately.

chuck-confluent commented 4 years ago

Adding my voice here as well. I have vscode on windows 10 with a remote to Ubuntu 18.04 on WSL 2. I installed Spell Right on WSL, and when I use the command pallet to set the languages, I get

command 'spellright.selectDictionary' not found
Firehawke commented 4 years ago

This is what's happening here as well. Windows 10 using WSL with Debian.

KevCaz commented 4 years ago

May be #354 can help.

jonathan-dilorenzo commented 4 years ago

Thanks KevCaz, but this was not my issue unfortunately.

mcswell commented 4 years ago

Same problem here, I think. I have vs code installed on a Windows machine, and I'm using it to remote in to a RH Linux machine. I installed SpellRight both on my own machine and on the remote. It works ok on files on my local machine (once I select the language).

But once I remote in to the Linux machine, it stops working; it doesn't even allow me to select a language. Specifically, the command "SpellRight: SelectDictionary (Language)" reports Command 'SpellRight: SelectDictionary (Language)' resulted in an error (command 'spellright.selectDictionary' not found) Could it be that the command fails to register? i.e. this command: vscode.commands.registerCommand('spellright.selectDictionary', this.selectDictionary, this); fails?

Likewise, all the other Spell Right commands that I try give similar errors, and it looks like they are initialized by vscode.commands.registerCommand(). So perhaps they're all failing to get registered?

VSC version 1.45.1, Spell Right 3.0.50. I have the files en_US.aff en_US.dic in the dir ~/.config/Code/Dictionaries/ on the remote, and "spellright.language": [ "en_US" ], in my settings.json file.

gionn commented 4 years ago

This extension seems broken with the new WSL implementation in Windows 10.

ytjohn commented 4 years ago

Having the same issue, except it's Windows 10 Remote into SSH on Linux (Ubuntu 20.04). It works locally on Windows 10. While in a remote workspace, spellright does not seem to be activated and none of the commands worked. As a test, I ran VSCode installed locally on the Linux VM (keep in mind that a remote install vscode is separate from what's installed on the os, with different configs and extensions) and Spellright worked.

Windows 10 remote SSH into Ubuntu 20.04.

Version: 1.47.3 (user setup)
Commit: 91899dcef7b8110878ea59626991a18c8a6a1b3e
Date: 2020-07-23T13:12:49.994Z
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.17763

Ubuntu 20.04 local install


Version: 1.47.3
Commit: 91899dcef7b8110878ea59626991a18c8a6a1b3e
Date: 2020-07-23T15:51:39.791Z
Electron: 7.3.2
Chrome: 78.0.3904.130
Node.js: 12.8.1
V8: 7.8.279.23-electron.0
OS: Linux x64 5.4.0-40-generic```
bwegge commented 4 years ago

I am facing the same issue with VS Code 1.48.0 on Windows 10 (64 bit), connected inside my Windows Subsystem for Linux WSL running Ubuntu 20.04. Any spellright. command results in a popup with command 'spellright.*' not found. I followed the readme and created symlinks to hunspell dictionaries inside WSL (and made sure at least hunspell-en-us and -gb are installed). Setting global.SPELLRIGHT_DEBUG_OUTPUT to true appears to makes no difference.

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 seems to work fine when working 'natively' in Windows (i.e. when not connected into WSL). (Note: This seems to be related to #69.)

andrzejnovak commented 3 years ago

Did anyone find a way around it? @bwegge @ytjohn

bwegge commented 3 years ago

Did anyone find a way around it? @bwegge @ytjohn

Well, I posted a pull request (https://github.com/bartosz-antosik/vscode-spellright/pull/405) a while ago, which for me solves the issue (at least) in WSL2.

hegerdes commented 3 years ago

Having the same issue. But I am not using the WSL setup I'm using a DevContainer with a Debian Docker image.

VSCode does not create a .config.Code dir. It is called .config/vscode-dev-containers. I downloaded the language files to /.config/vscode-dev-containers/Dictionaries but I also get:

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

So it may be related to this issue.

Can it be a path issue?

To recreate the error you can use my template:

# In VSCode hit F1
> Remote-Containers: Clone Repository in Container Volume
> https://github.com/hegerdes/VSCode-LaTeX-Container
# Wait for the initial pull and build
# Note: You need to have docker and vscode remote extentions installed
# Then try to set your language
KiwiKilian commented 3 years ago

All commands fail inside my devcontainer with "not found". When using it locally everything works on my mac. Any suggestions?

codemedic commented 2 years ago

426 seem to be very similar; could it be related?

I am new to VSCode; can someone help me with extension debugger mentioned in the comment. How do I do that?