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
Error while lunarvim installation unknown flag 'u'
(read workaround at the top of the issue)
#3612
Comments
Send the output of |
|
interesting, |
yes it worked |
does |
send the output of |
what about |
and if you have nvim in |
no nvim in |
we have an experimental lunarvim appimage with bundled nvim btw https://github.com/LostNeophyte/LunarVim/releases/tag/stable |
this is pretty smooth, i like it thanks. the lunarvim appimage just starts and runs perfectly. However, since I have not been able to solve this problem, i will keep the issue open for now. hope that's fine |
does |
Hello!! I'm continuing this thread since I have the same exact issue up until this point of the convo. Unfortunately I get the same error even by using the .deb (I'm on Ubuntu). |
What if you remove |
For me, removing fixed the issue! |
For me lvim starts now, but not with the usual start screen and theme. Something seems to be broken. |
Run |
@George-Spanos @Philipp0205 what shell are you using? what's its version and the version of bash and your OS? I'll need to reproduce and fix this |
@LostNeophyte Okay After removing
|
I don't have any issues as @Philipp0205 describes. I'm using bash on Ubuntu 22.04. |
thanks, I'll try to reproduce it in an ubuntu container |
I've a similar problem. I think for me it may be due to having nvim installed via "snap", then it seems the lvim script tries to launch /snap/bin/nvim which is a symlink for /usr/bin/snap, so it launches snap instead of nvim. Snap doesn't have a "-u" option. |
Sounds reasonable, I will test if this is valid as well. |
so does |
it works thx :D |
This issue is stale because it has been open for 50 days with no activity. |
Same here. It works after deleting
|
this is what worked for me from export NVIM_APPNAME="${NVIM_APPNAME:-"lvim"}" to export NVIM_APPNAME="${NVIM_APPNAME:-"nvim"}" |
don't do that, it will use different directories if you do that, use the workaround I edited in at the top of the issue |
unknown flag 'u'
unknown flag 'u'
(read workaround at the top of the issue)
Did you download nvim from snap? |
I am also getting the same error, right after installation:
I installed Neovim through
The last line of my
If I remove it then nothing happens when I run |
@lackovic did you remove only the mentioned part of that line? |
In that case I would have to keep Neovim manually up to date while with
The mentioned part
I first tried to remove just
When I removed It looks like it's working the same with or without Why is |
for some reason exec's -a flag breaks the nvim executable (or maybe its wrapper) from snap, the same happens with bob (nvim version manager) |
OS: Ubuntu 22.04 I'm not sure about root cause, but for me i was install neovim from snap. |
@hamzamohdzubair |
The error is comming from $ /usr/bin/snap -u
error: unknown flag 'u' The reason is that snap's shims work by symlinking each binary name to The |
This issue is stale because it has been open for 50 days with no activity. |
This issue was closed because it has been inactive for 14 days since being marked as stale. |
The workaround at the top of did not resolve this issue for me -- the installation of LunarVim still failed. As @bilenkonito explained above, this is an issue with snap. I was able to successfully install LunarVim by first removing my neovim installation with:
Then I installed neovim from source (which was surprisingly easy following neovim "Install from Source" instructions) and re-ran the LunarVim installation script. |
I encountered the same problem with bob-nivm. Modifying the last line as follows solved it. exec nivm -u "$LUNARVIM_BASE_DIR/init.lua" "$@" |
FYI, snap has the ability to "alias" executable names so it resolves to the correct packaged executable when using another name to call it.
As long as your |
Thats great, delete exec -a and run path of lvim |
as jagblad said, I had neovim installed via snap and it did not work, so I delete neovim with snap remove and then install it again with curl from neovim official doc and now it works https://github.com/neovim/neovim/blob/master/INSTALL.md#install-from-package |
how to fix this issue (maintainer edit)
#3612 (comment)
Remove
exec -a "$NVIM_APPNAME"
from ~/.local/bin/lvim as a workaroundProblem description
I get the following error as the last line of the installation process (see screenshots)
And i get the same error when i try to run lunarvim later using
lvim
LunarVim version
1.2
Neovim version (>= 0.8.0)
NVIM v0.8.1
Operating system/version
CentOS Linux 7 (Core)
Steps to reproduce
Screenshots
The text was updated successfully, but these errors were encountered: