-
Notifications
You must be signed in to change notification settings - Fork 499
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
Does not start on macOS #1175
Comments
It looks like it detected the path of nvim wrong My guess is that |
When I run NB. nvim is symlinked, homebrew installation. not sure if this is relevant. |
Yes, that looks right. But For the information, the command it should run in this case is One workaround worth trying is to start Neovide with |
Same when running |
I looked a bit closer and it does appear as if the launching actually succeeds. Since otherwise it would output 'Could not locate or start neovim process' Lines 47 to 60 in dd74ff4
Which probably means that the output pipe is broken, or that I described a similar issue in the pull request for the similar behaviour on WSL #1118. If the startup scripts launches a subshell, then Do you have something like that in your |
I don't have related to nvim in |
Yes, something broke with that change, but at the moment it's unclear exactly what it is. other than that it appears as if the stdio pipe between the launched neovim and Neovide is not working correctly. I don't think it's related to any plugins, but something in the shell configuration could explain it. |
Alright, I will stay on the older version for now, I am happy with it. Thanks 🙏 |
This makes me doubt this whole approach :( The real issue is I don't know enough about Macos to know what the "correct" way to get a user's binary should be. Part of me wonders if we should just go look at what alacritty does and defer to their strategy. @fredizzimo what do you think? |
I don't think Alacritty is a good reference, since they actually want to start a real shell. In this case we just want to run a shell command from outside of it. I think what we need is for someone to run |
Just to add, we also need to verify that it doesn't output any ansi codes as those are a large part of why the above output is gummed up |
Just to add that I tried on a clean environment (new login user) and it works. |
Just for the reference, in Windows, running the following command |
That seems to indicate that there's something in your profile or .zshrc files that makes it incompatible. Could you try to comment things out until it works? I can also think of another approach. And that is Neovide itself could be launched from within the shell. At the startup it detects if it's launched from the shell or not, if not, It launches another instance inside the shell, and exists the original one. Edit: That approach would also simplify the code, since we can assume that we are running inside a shell, and all platforms could handle command line, |
Even when I try to start Neovide from finder, it doesn't work, which I think suggests that it not .zshrc. |
@caeu, The more I think about it, the more I think we should try the other approach, which does not rely on redirecting output across shells. So unless that doesn't work, there's no need for you to test further, and possibly mess up your system. |
Just adding: I have the same issue with the same output, just that it's fish shell
|
Actually, I think WSL still needs to be special cased. Because we are forced to launch the second Neovide instance like this |
@fredizzimo You are right, I disabled the shell integration of iTerms2 from .zshrc and .bash_profile and Neovide starts ok. |
Can you give a bit more context? I didn't understood what to do to make it work |
@cserb, for now I think it's better that you stay at an older build without the issue, until we git this properly fixed. Users should not have to edit their shell startup scripts to use Neovide. At least not unless they have something very special, and then also have the knowledge to make the behaviour conditional depending on if running from Neovide or not. |
I'm very much at a loss for how to do it otherwise though. @shaunsingh do you have some ideas? I know you mentioned some concern with this approach in the original PR |
@Kethku, I described the approach here #1175 (comment). I might have time to do it tomorrow, but I’m not sure. But if you understand what I meant, feel free to try before that. |
Or actually, maybe it’s even more simple than that. If application shortcut or whatever it’s called could be made to start It still needs modification to Neovide, basically to remove all the special handling, so that it works like Linux. |
I don't have time to do anything about this today, but I think the best option is to write a shell script wrapper https://mathiasbynens.be/notes/shell-script-mac-apps, with a very simple shell script Neovide also needs to be changed to support running like this, since the custom The crucial difference between this approach and the current main version, is that there's no redirection across shells, so no matter what customizations they users have done, it should work. I think at least the shell script, and packaging part needs to be done with someone on a Mac. The removal of the Mac specific code, can be done either me, when I have time or someone else. |
This helps a bunch and gives enough info for me to take a look. I'll try to get to it tonight. |
FWIW I did a git bisect to find the commit where neovide no longer starts for me on MacOS, and it's dd74ff4
|
@jonsmithers worked for me to checkout to db53e94 |
Same, mark. |
#1230 This might do the trick on your issues! on macOS M1 |
Still have the same issue on latest version of Macos What is the solution to this problem after all? It's pretty hard to track through the lots of comments of this thread |
@djmaxus This issue was resolved, and it's been working for me for months. If you're on the latest neovide, and it's still happening, then the issue is something else. |
@bmulholland , thanks! It seems that you're right. After some more careful consideration, I found out that I did not add |
you can try this cmd: it work for me ... save my life |
On a M1 Mac my issue was that neovide did not find my nvim installation in the /opt folder (due to homebrew) so I symlinked nvim ( ln -s /opt/homebrew/bin/nvim /usr/local/bin/nvim ) to not pollute my path and everything works fine now. |
Neovide does not start on macOS after updating to (today's commit
dd74ff
). The window pops up and closes almost immediately, logs shows ERROR Neovide requires nvim version 0.4 or higher while I have 0.6.1Old version works (from a week ago)
To Reproduce
Start nevoid from command line or application
LOG
TRACE [neovide] Neovide version: 0.8.0
DEBUG [neovide::settings::window_geometry] Loaded window settings: Windowed { position: PhysicalPosition { x: 1280, y: 1080 }, size: Dimensions { width: 106, height: 41 } }
TRACE [neovide::renderer::fonts::caching_shaper] Using font_size: 28.00px
TRACE [neovide::renderer::fonts::font_loader] Loading font FontKey { bold: false, italic: false, family_name: None }
TRACE [neovide::renderer::fonts::caching_shaper] Font width: 17.23px 17.36px
TRACE [neovide::renderer::fonts::caching_shaper] Fudge factor: 0.99
TRACE [neovide::renderer::fonts::caching_shaper] Fudged font size: 27.63px
TRACE [neovide::renderer::fonts::caching_shaper] Fudged font width: 17.00px
TRACE [neovide::renderer::fonts::font_loader] Loading font FontKey { bold: false, italic: false, family_name: None }
INFO [neovide::window] window created (scale_factor: 2.0000, font_dimensions: Dimensions { width: 17, height: 35 })
TRACE [neovide::redraw_scheduler] Next frame queued
TRACE [neovide::redraw_scheduler] Next frame queued
TRACE [neovide::renderer::fonts::caching_shaper] Shaping text:
INFO [neovide::bridge::command] Starting neovim with: Command { std: "/bin/zsh" "-lc" "\x1b]1337;RemoteHost=ommited@ommited\x07\x1b]1337;CurrentDir=/Users/ommited\x07\x1b]1337;ShellIntegrationVersion=12;shell=zsh\x07/usr/local/bin/nvim --embed", kill_on_drop: false }
ERROR [neovide::bridge] Neovide requires nvim version 0.4 or higher. Download the latest version here https://github.com/neovim/neovim/wiki/Installing-Neovim
The text was updated successfully, but these errors were encountered: