Sublime Forum

Installation of SublimeClang on Ubuntu [ST3 build 3047]

#1

Hi there !
Does anyone knows if there is a special way of installing the plugin SublimeClang https://github.com/quarnster/SublimeClang in ST3 ?
In sublime text 2 there used to be a “lib” folder inside the sublime text folder that we used for a python link.
Any idea how it works with ST3 ?

reloading plugin SublimeClang.common
Traceback (most recent call last):
File “/opt/sublime_text/sublime_plugin.py”, line 73, in reload_plugin
m = importlib.import_module(modulename)
File “X/importlib/init.py”, line 88, in import_module
File “”, line 1577, in _gcd_import
File “”, line 1558, in _find_and_load
File “”, line 1525, in _find_and_load_unlocked
File “/opt/sublime_text/sublime_plugin.py”, line 671, in load_module
exec(compile(source, source_path, ‘exec’), mod.dict)
File “/home/jean/.config/sublime-text-3/Packages/SublimeClang/common.py”, line 135
print msg
^
SyntaxError: invalid syntax
reloading plugin SublimeClang.errormarkers
loaded 845 snippets
Traceback (most recent call last):
File “/opt/sublime_text/sublime_plugin.py”, line 73, in reload_plugin
m = importlib.import_module(modulename)
File “X/importlib/init.py”, line 88, in import_module
File “”, line 1577, in _gcd_import
File “”, line 1558, in _find_and_load
File “”, line 1525, in _find_and_load_unlocked
File “/opt/sublime_text/sublime_plugin.py”, line 671, in load_module
exec(compile(source, source_path, ‘exec’), mod.dict)
File “/home/jean/.config/sublime-text-3/Packages/SublimeClang/errormarkers.py”, line 4, in
from common import get_setting
ImportError: No module named ‘common’
reloading plugin SublimeClang.staticanalyzer
Traceback (most recent call last):
File “/opt/sublime_text/sublime_plugin.py”, line 73, in reload_plugin
m = importlib.import_module(modulename)
File “X/importlib/init.py”, line 88, in import_module
File “”, line 1577, in _gcd_import
File “”, line 1558, in _find_and_load
File “”, line 1525, in _find_and_load_unlocked
File “/opt/sublime_text/sublime_plugin.py”, line 671, in load_module
exec(compile(source, source_path, ‘exec’), mod.dict)
File “/home/jean/.config/sublime-text-3/Packages/SublimeClang/staticanalyzer.py”, line 31, in
import Queue
ImportError: No module named ‘Queue’
reloading plugin SublimeClang.sublimeclang
Traceback (most recent call last):
File “/opt/sublime_text/sublime_plugin.py”, line 73, in reload_plugin
m = importlib.import_module(modulename)
File “X/importlib/init.py”, line 88, in import_module
File “”, line 1577, in _gcd_import
File “”, line 1558, in _find_and_load
File “”, line 1525, in _find_and_load_unlocked
File “/opt/sublime_text/sublime_plugin.py”, line 671, in load_module
exec(compile(source, source_path, ‘exec’), mod.dict)
File “/home/jean/.config/sublime-text-3/Packages/SublimeClang/sublimeclang.py”, line 415
print “found fast completions”
^
SyntaxError: invalid syntax
reloading plugin SublimeClang.translationunitcache
Traceback (most recent call last):
File “/opt/sublime_text/sublime_plugin.py”, line 73, in reload_plugin
m = importlib.import_module(modulename)
File “X/importlib/init.py”, line 88, in import_module
File “”, line 1577, in _gcd_import
File “”, line 1558, in _find_and_load
File “”, line 1525, in _find_and_load_unlocked
File “/opt/sublime_text/sublime_plugin.py”, line 671, in load_module
exec(compile(source, source_path, ‘exec’), mod.dict)
File “/home/jean/.config/sublime-text-3/Packages/SublimeClang/translationunitcache.py”, line 103
print “Have SublimeClang package: %s” % json
^
SyntaxError: invalid syntax

0 Likes

What plugins work with ST3?
#2

Those print statements (as opposed to print functions) are a pretty big give-away that the package is not ST3 ready.

Maybe you are not on the latest version of SublimeClang? Some of their later commits seem to indicate that it should work in ST3, so you might want to try to update it to the latest version from the master branch (cd /home/jean/.config/sublime-text-3/Packages/SublimeClang/ && git checkout master && git pull)

Unfortunately their github project seems to have closed the issue tracker.

0 Likes