-
-
Notifications
You must be signed in to change notification settings - Fork 684
Launching MacVim.app shows no window; mvim at shell launches but cannot open new windows #109
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
Comments
I've also tried Snapshot 80 from https://github.com/macvim-dev/macvim/releases but to no avail. Any advice on how to troubleshoot would be greatly appreciated 😄 When I try to launch MacVim.app I see these messages in Console.app
I am not sure if the last two are related but I do see them consistently ~2 seconds after messages from MacVim on each attempt at launching MacVim.app. |
i have exact same issue. i had it on yosemite and now have it on el capitan as well. |
to clarify i tried snapshot 81 and brew version. |
Confirm, no exceptions, no windows. I have to reactivate MacVim to be able to open any windows. configuration doesn't matter (I've tried all combinations) |
In attempting to run MacVim.app through
has the problematic behavior but if ran as another user (for instance, root)
windows open as expected. |
i tried starting it with sudo and it worked for me as well. |
A restart works for me as well 😕 |
So rebooting OS X solved the issue, right? |
If I understand correctly, first running binary with sudo, then rebooting
|
I don't think that running the binary with sudo changed or fixed anything as the problem still existed afterwards until rebooting; it was just a troubleshooting step along the way. |
Anyone has the issue right now? I can't reproduce it, but it sounds like there is old Vim process aside from the new MacVim/Vim process. So if you had the same issue, to confirm there are no Vim processes using 'ps auxww' or Activity Monitor. |
@splhack I did notice when I was having the issue that I had a MacVim process still running (looked like the full command was Interestingly the process seemed to be unkillable, |
It sounds like the Vim process was zombie process, or the Vim process got I/O error. It should be checked using |
i managed to reproduce this issue.
|
actually, this even happens without quitting it.
|
I am also using docker-machine and I've found that starting a VM with it also re-causes this problem. My docker VM is using the VirtualBox driver, and it seems like if I create the VM with VMWare Fusion instead then I do not have an issue. Stopping the docker VM running with VirtualBox also causes MacVim to work as expected for me as well. Does MacVim or Vim expect to connect to anything on the host on tcp port 2376? docker-machine sets up the VMs to listen on this port, on a private IP (chosen from CIDR 192.168.99.1/24) host-only network interface. The IPs handed out to VMWare Fusion VMs seem to be on a different range, 192.168.116.1/24. |
Just discovered this thread after noticing that macvim had stopped working. The advice here is spot on; I'm using docker-machine with virtualbox, and stopping my VM allows macvim to work again. |
How to reproduce it?
MacVim works fine for me. |
well this line works (as mattnworb established in the first post):
but starting MacVim in gui (clicking it in dock) doesnt work. |
and (also, as established in issue's name) after launching this:
new windows dont open (File->New window menu item doesnt do anything) |
Ok, I guess I found out. https://groups.google.com/d/msg/vim_mac/kPo414xEHmk/eddzYMlpAgYJ
So changing the default setting will solve the issue.
|
If you have this issue, you should verify your login shell environment.
|
yes, this command solves issue for me:
but i didnt have any circular logic in shell
i tried removing everything from my bashrc/bashprofile
this is simple eval, resulting in:
|
oh all right, now i understood. .bash_profile is for non interactive shells (http://www.joshstaiger.org/archives/2005/07/bash_profile_vs.html), so each eval command re-executes it. so it is circular logic. but on os x .bash_profile is used instead of .bashrc on interactive shell start, so people who work in terminal tend to put things there. Thank you @splhack for figuring this out. it was not macvim issue. |
Typing gvim after a brew install MacVim (7.4 as of this post) opens MacVim and shows an icon in the macOS dock. right click it and choose options and keep in dock. it also shows up in the context menu right clicking a file in the finder. you an also drag a doc to the icon in the dock. I removed the Vim.app that was installed in the applications folder. it crashed after bouncing a few times in the dock. vim at the command line opens a shell vim. |
defaults write org.vim.MacVim MMLoginShell -bool NO works for me, thanks. |
I found a solution on my MBPro running macOS High Sierra 10.3.3. The MacVim installed on my machine expected Perl 5.16 and Ruby 2.0. With High Sierra, the versions are Perl 5.18 and Ruby 2.0. What I did was open a terminal, change directory to /Applications/MacVim.app/Contents/MacOS Run ./Vim again, and get an error message about which Ruby dylib it couldn't find. In my case, it was looking for 2.0, and 2.0.0. I edited Vim as above, found the string for Ruby 2.0, changed it to 2.3, and the 2.0.0 to 2.3.0 and saved Vim. Now, MacVim opens a window just like it did before. |
@splhack nailed it for me! For the record, i had a lot of zombie MacVim/Vim processes left in the background. Once I stopped them everything returned to normal and I was able to get back into MacVim 👍 |
@NoShill Your solution works for me! It seemed like that Vim did not update when the build-in perl and ruby got updated in the MacOS. |
@w0i0c0o MacVim uses Perl 5.18 since snapshot 148 and Ruby 2.5 sinse snapshot 145. |
Sorry. I have tried following this thread but it is unclear what the solution is. Was anyone able to actually find the cause of the issue? |
@FrankDMartinez Could you describe what you want to achieve and eventually open a new issue? |
I'm asking as new issue form will ask a few important questions better to answer, also we'll be able answer it better |
This is a similar problem to #24.
At some point recently for me, opening Macvim via /Applications/MacVim.app no longer works. I initially installed MacVim via homebrew (with a simple
brew install macvim
andbrew linkapps macvim
). I've been having this issue before installing El Capitan.Opening MacVim via
mvim
at the shell works, although note that this launchesexec /usr/local/Cellar/macvim/7.4-79/MacVim.app/Contents/MacOS/Vim -g
as opposed toexec /usr/local/Cellar/macvim/7.4-79/MacVim.app/Contents/MacOS/MacVim
. However opening a new editor window in this launched MacVim with command-N or any other command does not work.I've also done
defaults delete org.vim.MacVim
as mentioned in #66 but this has no effect for me.The text was updated successfully, but these errors were encountered: