You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
first I install vim with python 2.x support, then install YouCompleteMe and install Clang 3.4 in /home/xjf/.vim/bundle/YouCompleteMe/,
use ./install.sh --clang-completer.
all these are successful. but YouCompleteMe can't work. when use YcmCompleter GoToDeclaration command, it' shows error as following:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/home/xjf/.vim/bundle/YouCompleteMe/autoload/../python/ycm/youcompleteme.py", line 239, in OnBufferUnload
{ 'unloaded_buffer': deleted_buffer_file } )
File "/home/xjf/.vim/bundle/YouCompleteMe/autoload/../python/ycm/client/event_notification.py", line 71, in SendEventNotificationA
sync
event.Start()
File "/home/xjf/.vim/bundle/YouCompleteMe/autoload/../python/ycm/client/event_notification.py", line 41, in Start
'event_notification' )
File "/home/xjf/.vim/bundle/YouCompleteMe/autoload/../python/ycm/client/base_request.py", line 77, in PostDataToHandlerAsync
return BaseRequest._TalkToHandlerAsync( data, handler, 'POST', timeout )
File "/home/xjf/.vim/bundle/YouCompleteMe/autoload/../python/ycm/client/base_request.py", line 113, in _TalkToHandlerAsync
return SendRequest( data, handler, method, timeout )
File "/home/xjf/.vim/bundle/YouCompleteMe/autoload/../python/ycm/client/base_request.py", line 92, in SendRequest
data = json.dumps( data ),
File "/usr/lib64/python2.7/json/__init__.py", line 231, in dumps
return _default_encoder.encode(obj)
File "/usr/lib64/python2.7/json/encoder.py", line 201, in encode
chunks = self.iterencode(o, _one_shot=True)
File "/usr/lib64/python2.7/json/encoder.py", line 264, in iterencode
return _iterencode(o, 0)
UnicodeDecodeError: 'utf8' codec can't decode byte 0xb2 in position 1524: invalid start byte
when exits vim, it always occurs error :
Error detected while processing function <SNR>61_OnBufferUnload:
line 5:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/home/xjf/.vim/bundle/YouCompleteMe/autoload/../python/ycm/youcompleteme.py", line 239, in OnBufferUnload
{ 'unloaded_buffer': deleted_buffer_file } )
File "/home/xjf/.vim/bundle/YouCompleteMe/autoload/../python/ycm/client/event_notification.py", line 71, in SendEventNotificationA
sync
event.Start()
File "/home/xjf/.vim/bundle/YouCompleteMe/autoload/../python/ycm/client/event_notification.py", line 41, in Start
'event_notification' )
File "/home/xjf/.vim/bundle/YouCompleteMe/autoload/../python/ycm/client/base_request.py", line 77, in PostDataToHandlerAsync
return BaseRequest._TalkToHandlerAsync( data, handler, 'POST', timeout )
File "/home/xjf/.vim/bundle/YouCompleteMe/autoload/../python/ycm/client/base_request.py", line 113, in _TalkToHandlerAsync
return SendRequest( data, handler, method, timeout )
File "/home/xjf/.vim/bundle/YouCompleteMe/autoload/../python/ycm/client/base_request.py", line 92, in SendRequest
data = json.dumps( data ),
File "/usr/lib64/python2.7/json/__init__.py", line 231, in dumps
return _default_encoder.encode(obj)
File "/usr/lib64/python2.7/json/encoder.py", line 201, in encode
chunks = self.iterencode(o, _one_shot=True)
File "/usr/lib64/python2.7/json/encoder.py", line 264, in iterencode
return _iterencode(o, 0)
UnicodeDecodeError: 'utf8' codec can't decode byte 0xb2 in position 1524: invalid start byte
Looks like a Unicode encoding issue. Does your buffer contain any non-ASCII chars (shouldn't be a problem, but might...)? Does the filepath to file you are editing contain non-ASCII chars (again, shouldn't be a problem)?
Please try to provide a minimal test case that can repro this issue.
first I install vim with python 2.x support, then install YouCompleteMe and install Clang 3.4 in /home/xjf/.vim/bundle/YouCompleteMe/,
use ./install.sh --clang-completer.
all these are successful. but YouCompleteMe can't work. when use YcmCompleter GoToDeclaration command, it' shows error as following:
when exits vim, it always occurs error :
my system is
I don't know how to fix this issue.
The text was updated successfully, but these errors were encountered: