-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
Getting "Vim: Caught deadly signal ABRT" after install. #8
Comments
Are you using the MacPorts version of Vim? If so, you're gonna have a bad time. :) Seriously though, I've heard that getting YCM working with MacPorts Vim is tricky because YCM will link in the system version of Python whereas the MacPorts Vim links in the MacPorts Python. Segfaults ensue. A co-worker got it working and sent me the instructions, but I don't have them near me. I'll update this issue and the README when I do. I recommend MacVim. MacVim.app has a normal Vim binary inside the package which you can just call if you want the console Vim experience. |
But while we're at it, delete everything in your build directory and paste me the output of your cmake call. |
I'm not using MacPorts, I installed the HEAD version (as of Jan 2013) of vim using Homebrew [more info]. Here's the cmake output. |
Hm, most interesting... Please paste me the full output of |
|
I'm officially stumped. Everything looks fine... Could you download the latest MacVim and try that out? Just so that we rule out some things. If it works with MacVim, then the problem is in the way brew configured and compiled your vim binary. |
Was just doing that. Will report in in a few minutes. |
I get this error, I'm not sure which mapping it's referring to, but the plugin seems to be working fine.
I guess the problem is with brew's vim compilation config? |
Yeah, that error is telling you that YCM failed to create one of its key mappings, and by the looks of it it's Brew seems to be screwing up something with vim's compilation, yes. I don't know what. Again, I recommend MacVim. |
Didn't know MacVim shipped with a console version! Thank you. :) |
Yeah, MacVim actually runs a full, normal instance of Vim in the background that the GUI talks to. It's actually a pretty clever design that makes it very easy for MacVim to keep track of upstream Vim development. |
I little off-topic, but I couldn't find this in the README (Maybe I didn't read it properly), how would I go about creating some simple completion modifications for other post types? Say, just add a few completion words by default for a specific file type? |
That would be non-trivial, but not too difficult to do. Take a look at On Sat, Feb 2, 2013 at 10:37 PM, Utkarsh Kukreti
|
The workaround in #18 works in here too. DYLD_FORCE_FLAT_NAMESPACE=1 DYLD_INSERT_LIBRARIES=/usr/local/Cellar/python/2.7.3/Frameworks/Python.framework/Versions/2.7/lib/libpython2.7.dylib vim And vim will start fine. But any better solutions? |
Actually a single I have updated the newest version of the plugin but it's still broken. Any idea? |
I have the same problem, I get |
Same, I wonder if there is a way to fix install.sh to include this flag so we don't have to pass that every time we want to open Vim? |
Similar issue as the OP after update. $ vim
Vim: Caught deadly signal ABRT
Vim: Finished.
Abort trap: 6 This works: $ DYLD_FORCE_FLAT_NAMESPACE=1 vim |
I got the same problem and need to to use DYLD_FORCE_FLAT_NAMESPACE=1 as the workaround. Any idea how to fix this for good? |
Mac OS X 10.8.3, binary MacVim and Homebrew python. Using the following command to change the linked framework for MacVim fixed the problem for me (see more here).
|
This ticket is quite old, but since it keeps getting referenced I thought I'd give some insight in how to use YCM with vim compiled from MacPorts (same probably applies to Homebrew). As previously noted in this ticket, building YCM against a different Python version than vim itself can cause problems. We can switch the version of Python used by YCM in a few spots:
YCM actually tries hard to get this right using |
If you got Python installed using Homebrew, before doing YouCompleteMe installation, unlink it
|
@quanganhdo: I can confirm that unlinking homebrew python before installation and then linking again afterwards works for me. |
No dice...
Executing the below gives me the same result:
env PATH=/opt/local/libexec/gnubin:/opt/local/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/X11/bin EXTRA_CMAKE_ARGS='-DPYTHON_EXECUTABLE=/opt/local/bin/python' bash install.sh --clang-completer --gocode-completer I was digging a bit in the source and it looks like the 2 above paths are not discovered via CMake
def CustomPythonCmakeArgs():
# The CMake 'FindPythonLibs' Module does not work properly.
# So we are forced to do its job for it.
python_prefix = sh.python_config( '--prefix' ).strip()
... EDIT
I finally tried creating the symlink
With the above symlink AND the
@Tatsh thanks for helping me get this working =) |
|
@neverpanic solution works for me |
I met this today , I have the system default installed python 2.7.6 and brew installed python 2.7.10_2 , after install the Ycm for vim , I got this error messages , and I do the |
Encountered this on OSX Yosemite (10.10), homebrew python 2.7.10_2, MacVim 7.4-769, cmake 3.1.3. Fixed this by adding I didn't see this exact solution here. I hope it helps someone. |
@neverpanic Thank you for your explication. I just change the |
Experienced this error today, was also fixed by |
Also hit this issue, even though my install was working previously. Thanks all for the contributions, thorough explanations and workarounds. 👍 |
A quick solution, don't need to
|
^ didn't work for me. Actually broke my workaround too. :'( |
Here is what I used to get:
Adding Hope that helps. |
I am also using OSX 10.11.1 and experienced same problem as @georgethebeatle. solution from @dimitardanailov saved me, the most important thing you should keep in mind is that after reinstall python with |
i have spend over a day trying to get this working, over it . |
Regrading to this issue: ycm-core#8 (comment)
@neverpanic Thank you for clear explanation. I think it worth a notice on the Installation guide, I created a pull request for that #1846. |
@juztin Either you did not have PATH set with MacPorts or you did not use |
The following post resolved the issue for me, thanks to @d0u9. http://www.d0u9.xyz/solution-to-getting-vim-caught-deadly-signal-abrt-after-install/ |
Back at it again 6 months later. Use the following: port install python27 +readline
port install vim +python27
./install.py --gocode-completer --clang-completer --tern-completer
|
Fixed typo in README - correct filename is config_gen.py
I'm on OSX 10.8.2.
Steps I followed:
Got this output.
Now when I start vim, I get this:
If you need any more info, let me know. :)
The text was updated successfully, but these errors were encountered: