Sublime Forum

[sublimeclang]UnicodeEncodeError

#1

I have installed sublimeclang and libclang.so in linux,and i promise that libclang is installed correctly.but AutoCompleting Fuction is not available.

when i type a character,the information is

Traceback (most recent call last):
File “./internals/common.py”, line 262, in worker
File “./internals/translationunitcache.py”, line 1094, in task_reparse
File “./internals/translationunitcache.py”, line 1272, in get_translation_unit
File “./internals/clang/cindex.py”, line 1806, in parse
UnicodeEncodeError: ‘ascii’ codec can’t encode characters in position 14-15: ordinal not in range(128)

I try to fix it,so I input some commands below

reload(sys)
sys.setdefaultencoding(‘utf-8’)

error messages disappear,but the AutoCompleting Fuction is not available.

I’m a student who does not have any knowledge of Python and Sublime,can you help me?

0 Likes

#2

Fill the bug in the Package Repository.

0 Likes