-
-
Notifications
You must be signed in to change notification settings - Fork 154
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
Chrome extension: Unable to connect #780
Comments
Did |
Yes it did |
Is |
I have vale on |
That path should be created with the The latest release includes more information in the command. Can you try to see if re-running it yields any information? |
$ vale host-install chrome
SUCCESS wrote '/Users/david/.config/vale/native/config.json'
SUCCESS fetched 'https://github.com/errata-ai/vale-native/releases/download/v0.3.1/vale-native_Darwin_arm64.zip'
SUCCESS installed '/Users/david/Library/Application Support/Google/Chrome/NativeMessagingHosts/sh.vale.native.json'
installing host [3/3] So it creates these under my home directory $ cat /Users/david/Library/Application\ Support/vale/native/host.log | jq .
{
"time": "2024-03-01T12:09:02.635033+01:00",
"level": "INFO",
"msg": "open /Users/david/Library/Application Support/vale/native/config.json: no such file or directory"
}
|
I think I understand the issue now. Presumably, you have an environment variable that is setting Vale is respecting this when it writes the config file. When Chrome starts the host, however, the CLI environment is not loaded (which means the default value is being used). I'll have to think about how to fix this. |
yes, I have set |
This should be fixed in the latest release. |
Check for existing issues
Environment
Describe the bug / provide steps to reproduce it
Tried to enable the Chrome extension but after installing, I get an error page with the following message.
Unable to connect
The extension was unable to connect to the native messaging host. The following error was returned by either the host or the browser itself:
Native host has exited.
I tried installing the extension on both Chrome and Brave with the same result.
The text was updated successfully, but these errors were encountered: