Skip to content
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

"Unexpected output. Run nvim --headless and ensure it prints nothing." #1587

Open
aikooo7 opened this issue Feb 14, 2024 · 5 comments
Open

Comments

@aikooo7
Copy link

aikooo7 commented Feb 14, 2024

  • OS Version: 24.05
  • Browser Version: 122.0.1 (64-bit)
  • Browser Addon Version: 0.2.15
  • Neovim Plugin Version: f2dd6d3

What I tried to do

Troubleshooting guide.

What happened

Extension shows "Neovim died without answering", so does the debugging of the problem.

We also have #1458 which has the same system as me, nixos-wsl, so maybe he could help out here?

@aikooo7
Copy link
Author

aikooo7 commented Feb 14, 2024

Actually by settings nixos as my default wsl distro I now get a "better" error:

"Unexpected output. Run nvim --headless and ensure it prints nothing."

nvim --headless doesn't print nothing.

I also got this in the debugging console of the plugin:

"Uncaught (in promise) Error: Native application tried to send a message of 1581276785 bytes, which exceeds the limit of 1048576 bytes."

@aikooo7 aikooo7 changed the title "Neovim died without answering" "Unexpected output. Run nvim --headless and ensure it prints nothing." Feb 14, 2024
@glacambre
Copy link
Owner

nvim --headless doesn't print nothing.

What does it print? It's likely that the messages are caused by your config and you'll need to find a way to disable them.

@aikooo7
Copy link
Author

aikooo7 commented Feb 14, 2024

nvim --headless doesn't print nothing.

What does it print? It's likely that the messages are caused by your config and you'll need to find a way to disable them.

It doesn't print nothing, redirecting to a file, waiting and then opening the file shows that the file is empty

@aikooo7
Copy link
Author

aikooo7 commented Feb 14, 2024

nvim --headless doesn't print nothing.

What does it print? It's likely that the messages are caused by your config and you'll need to find a way to disable them.

Here is my config, note that I didn't yet upload my firenvim config to it and that I also disabled dashboard locally and it didn't change anything

@glacambre
Copy link
Owner

It doesn't print nothing, redirecting to a file, waiting and then opening the file shows that the file is empty

Ah, okay, so it does print nothing. The double negation confused me :)

So, just to confirm your system:

  1. You're using windows
  2. Firenvim is installed in a NixOS wsl environment
  3. You are using Firefox from Windows, not WSL

The message:

"Uncaught (in promise) Error: Native application tried to send a message of 1581276785 bytes, which exceeds the limit of 1048576 bytes."

Indicates that the registry key specifying the location of the Firenvim extension manifest to the browser is correct, but that that the script pointed to by the extension manifest is printing a message that the browser cannot understand.

So let's try to understand what message Firenvim is printing. In order to do this, open the windows registry editor and look for the key named HKEY_CURRENT_USER\SOFTWARE\Mozilla\NativeMessagingHosts\firenvim. This key's value should be a path to a file.

Open this file in a text editor. It should contain a JSON object. This JSON object should have an attribute named path. The value of this attribute should be the path of a script.

Please upload the contents of the script here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants