-
Notifications
You must be signed in to change notification settings - Fork 37
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot add word to a workspace dictionary #532
Comments
Could you give some more information e.g. a hint about what OS are we talking about? Do you have a write/execute rights to the directory? |
To what directory? I have windows. Directory is trusted. Other files like |
Also having this issue on macOS; tried manually creating |
@bartosz-antosik I ran a few tests. When I reopen folder in Windows and Add to workspace dictionary works and it adds file to |
@bartosz-antosik I was try to debug your extension but there are some tech that I cannot launch, I would place vscode-spellright/src/spellright.js Line 1994 in a25eb66
You have very strange code there
Why? Here is what I use in my extension
Works in multi workspace projects. |
I'm having the same issue. I've tried deleting the It seems to happen for every folder I have in WSL, but, critically, once it's thrown the error one time, it's cursed the directory forever. Including if I open it as non-WSL later. |
I have the same error here with a VSCode running on windows 10 and connected to a remote Linux host (ubuntu 20.04). Note that even if the extension is installed both on the local host (the windows laptop) and the remote host (linux), the extension tab in vscode says when hovering on the remote spellright extension: "This extension is enabled in the local extension host because it prefers to run there". That may be the culprit as the code I am working on does not exist on the local host. Spellright version: v.3.0.118 Here is the content of some log (Output/Extension host):
#566 seems related... |
Maybe relevant: I get the same error, and I use VSCode Insiders to edit a project via Remote-SSH to a brand-new VM with an Ubuntu installation. When I edit the same project but in a local directory, adding words to the workspace dictionary works as expected. VSCode Insider runs on Windows 10, but the ExtensionHost runs on Ubuntu 22. The URI to the settings file can not be opened using the "path" attribute because it looks like "remote-ssh://..../path.../settings.json" I think #532 (comment) is on to something regarding the workspace folder URIs, although the example code he gives is wrong because it hardcodes I suggest an easy way to reproduce is to edit a document on a remote server via Remote-SSH. Examples above also refer to WSL, which is another remoting tech (supposed the URI's for files accessed though WSL are "remote-wsl://.../..." or some such). Remote files must be accessed via the the URI, not as regular local files, because only the extension that manages the particular scheme The scheme in file URI's is arbitrary and up to some other extension to choose and interpret, your code cannot infer anything from the parts of the URI. |
When I try to add word to workspace dictionary it says
A system error occurred (ENOENT: no such file or directory, open)
The text was updated successfully, but these errors were encountered: