Open phcerdan opened 6 years ago
I can reproduce this error in my setup. If I print the contents of line 303, just before execution, I get this:
['', '-fsyntax-only', '-x', 'c', '-', '-v'] #value of variable "cmd"
So, no surprise that the execution fails. I wonder why the variable self.clang_path
is not properly set though.
self.clang_path is initialized to ''
in the constructor.
And it is set in on_event().
If on_event() is not called, it will be ''
.
So no surprising.
What are possible causes of this issue? My configuration reads like this:
"configuration for deoplete-clang2
let g:deoplete#sources#clang#flags=['-darwin=10.13']
let g:deoplete#sources#clang#std={'c': 'c11', 'cpp': 'c++1z'}
I put a break point on on_event()
, but as completion is triggered, this function is never called, so the value of clang_path
does not get set.
I think self.clang_path
should be set in the constructor.
I tried this, but no luck - I continue to have the same error. It would be great if somebody could propose a serious patch here. Are we the only affected people? Is this plugin still being maintained?
The plugin is still maintained. But the author seems busy. I have created another source plugin.
@phcerdan can you post your clang version? or your os info, I also use arch, but I can not reproduce this issue.
Same setup works with deoplete-clang but not here. I was just triggering asking for autocompletions after
std::
using clang 5.0 in arch