Closed xudyang1 closed 12 months ago
Solved by manually creating key under HKCU:\Software\Google\Chrome\NativeMessagingHosts\firenvim\
.
It seems the firenvim scripts in windows system did not run automatically after first installation? Or, this may be caused by some permission error?
Hi, thank you for opening this issue and spending time on solving it yourself, sorry I wasn't able to answer before now.
pressed i to install firenvim, got error msg Vim:E117: Unknown function: firenvim#install manually type in command mode: call firenvim#install(0) returns same error Vim:E117: Unknown function: firenvim#install but the function did exist: lua print(vim.fn["firenvim#install"])
This part is extremely weird and it probably the reason the registry keys were not created. I don't understand while the files to create them would be created though...
Reopen this issue: after completely reinstall firenvim and reset the registry key, there is no more ~/AppData/Local/firenvim
directory created. So the issue is about the lazy.nvim configuration provided by the README.md
.
~/AppData/Local/firenvim
, I commented out cond = not not vim.g.started_by_firenvim
and manually called the build command inside neovim :lua vim.fn["firenvim#install"](0)
.unknown function
No config detected for chromium. Skipping.
No config detected for librewolf. Skipping.
No config detected for arc. Skipping.
No config detected for opera. Skipping.
No config detected for brave. Skipping.
No config detected for ungoogled-chromium. Skipping.
No config detected for chrome-dev. Skipping.
Installed native manifest for firefox.
Creating registry key for firefox. This may take a while. Script: C
Created registry key for firefox.
No config detected for vivaldi. Skipping.
No config detected for chrome-canary. Skipping.
Installed native manifest for chrome.
Creating registry key for chrome. This may take a while. Script: C:
Created registry key for chrome.
Installed native manifest for edge.
Creating registry key for edge. This may take a while. Script: C:/U
Created registry key for edge.
Installation complete on the wsl side. Performing install on the wi
E5107: Error loading lua [string ":lua"]:1: '=' expected near '<eof>'
E5108: Error executing lua function firenvim#install[108]..firenvim#install[24]..<SNR>20_maybe_execute, line 5: Vim(let):E739: Cannot create directory /mnt/c//users: file already exists
stack traceback:
[C]: in function 'firenvim#install'
[string ":lua"]:1: in main chunk
~/AppData/Local/firenvim
dir was created.Thanks, this log is very useful! It looks like the manifest directory path is not correctly computed for firefox from the windows side. I'm not sure what exactly is going wrong here, I'll need to perform some tests.
same with Unknown function: firenvim#install
@ogios Could you open a new issue? The problem reported by xudyang1 has been fixed, I forgot to close the issue.
@ogios Could you open a new issue? The problem reported by xudyang1 has been fixed, I forgot to close the issue.
ok👌🏻
What I tried to do
Inside TUI neovim: firenvim marked as disabled in lazy.nvim panel
pressed
i
to install firenvim, got error msgVim:E117: Unknown function: firenvim#install
manually type in command mode:
call firenvim#install(0)
returns same errorVim:E117: Unknown function: firenvim#install
but the function did exist:
lua print(vim.fn["firenvim#install"])
returnsfunction: 0x01e...
checked path
~/AppData/Local/firenvim
which contains files:Running in powershell:
echo 'abcde{}' | ~\AppData\Local\firenvim\firenvim
TROUBLESHOOTING.md
Registry Editor
: the firenvim registry was not createdchrome.ps1
andfirenvim-chrome.json
, the path attributes are correctneovim died without answering
What happened
Looks like I should manually create registry key for firenvim? I am not sure what exactly I should do to create a proper key.