-
Notifications
You must be signed in to change notification settings - Fork 770
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
It's not working in C++-mode. #771
Comments
EDIT: I saw now abingham/emacs-ycmd#429 We need a reproducible test case though.
I can already tell you that anaconda is not supported, so please try with cPython first. |
If libclang is asserting, report it to the clang devs. It seems a number of people are hitting libclang asserts recently |
I tried Python3 32bit and anaconda 32bit.
|
This looks like the C-Family completer was not built. Did you pass the |
This time I compiled it successfully with
The
Furthermore,I run |
Did you compile |
I installed MinGW and Cygwin32,But I put them in the end of env variables. |
I have encountered the same problem in my project. My project has a quite huge code base. Environment:
Relevent logs
|
@vheon Can I have you attention? What could I do for help? This bug bothers me a lot. I have no completion now... |
@zonyitoo you encounter a crash of libclang so something in your code makes it crash. there is no solution on our hand except finding a minimal reproducible case and send it to the libclang devs for them to fix libclang. |
@vheon Ok, Thanks. |
@vheon I have tried to recompile ycmd with clang3.9.1, 4.0.0, 4.0.1, but it still crashed with the same error. It works fine with a old version of YouCompleteMe (ycmd) and clang 3.9.1. So I don't think it is clang's fault. I don't know exactly which commit I was on ... But I remember that version of YouCompleteMe |
What do you mean by this? That you recompiled ycmd with different versions of clang? Well that would not change the version of libclang that we use since that is pinned to a specific version. If you have tried an older version of YouCompleteMe that used an older version of libclang and you do not reproduce the problem than probably is a regression in libclang but still not in YCM hands. |
@vheon Hmm, I passed the What I tried:
So. I think we can believe that this is not clang's fault. Plus: I found the exact commit of the Old version of YouCompleteMe, it is ycm-core/YouCompleteMe@65cc309 |
If building from source, disable asserts in clang when you build. Use Release rather than RelaseWithAsserts
… On 16 Aug 2017, at 03:27, Y. T. CHUNG ***@***.***> wrote:
@vheon Hmm, I passed the --system-libclang to install.py. Because I was running on a customized Linux distribution. The libclang is built from source.
What I tried:
Older version of YouCompleteMe with
clang 3.9.1 -- Ok
clang 4.0.0 -- Ok
clang 4.0.1 -- Ok
Latest version of YouCompleteMe (master) with ycmd (6463774)
clang 3.9.1 -- Crashed
clang 4.0.0 -- Crashed
clang 4.0.1 -- Crashed
Latest version of YouCompleteMe (master) with ycmd (master)
clang 3.9.1 -- Crashed
clang 4.0.0 -- Crashed
clang 4.0.1 -- Crashed
So. I think we can believe that this is not clang's fault.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or mute the thread.
|
Is it Ok to remove those asserts? |
i think you want Your testing is odd though. The only thing that changed in patch 655cc309 was something in our CI environment. If you still have problems, try doing a git bisect to find which commit you think is changing it. |
Also, if you can make a reproducible test case, then we can debug. But without that we're poking in the dark. Disabling assertions will certainly make the problem go away, but wn't fix the libclang or ycmd issue (whichever exists) |
What I mean is that the OLD version that i was talking about is at commit ycm-core/YouCompleteMe@65cc309. I can't make a minimal reproducible case. Because it only happens in our project, which it is very huge (with >1000k lines of code). I don't even know which line of code make it crashed, and it just crashed somehow. So I think some changes between ycm-core/YouCompleteMe@65cc309 -> master triggered this assertion. BTW. I have tried |
ok well set if you go the git bisect, then we can help. there have been a lot of commits since 8 Nov 2015 |
Ok. bisecting |
@asdyjd @zonyitoo Could you try again with the latest version of ycmd? A new version of Clang (5.0.0) is available. |
Thanks for your great works. |
FWIW, we're pretty sure that the issue was in libclang, and that libclang 5.0.0 will resolve it ;) |
Fixed by PR #832. |
env: win10 64bit, anaconda3.6.1 64bit. emacs.
When I type something,A dialog pop up.
Before this dialog show,
ycmd-debug-show-info
isycmd-server buffer
isI compiled ycmd with this:
https://gist.github.com/asdyjd/92f9c4914f68e4bd7bc955df4c969881
It't not working in c++-mode.But it's good in python-mode.
The text was updated successfully, but these errors were encountered: