Home Download Buy Blog Forum Support

Installation of SublimeClang on Ubuntu [ST3 build 3047]

Installation of SublimeClang on Ubuntu [ST3 build 3047]

Postby athanse on Wed Jul 03, 2013 9:33 am

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 "<frozen importlib._bootstrap>", line 1577, in _gcd_import
File "<frozen importlib._bootstrap>", line 1558, in _find_and_load
File "<frozen importlib._bootstrap>", 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 "<frozen importlib._bootstrap>", line 1577, in _gcd_import
File "<frozen importlib._bootstrap>", line 1558, in _find_and_load
File "<frozen importlib._bootstrap>", 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 <module>
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 "<frozen importlib._bootstrap>", line 1577, in _gcd_import
File "<frozen importlib._bootstrap>", line 1558, in _find_and_load
File "<frozen importlib._bootstrap>", 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 <module>
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 "<frozen importlib._bootstrap>", line 1577, in _gcd_import
File "<frozen importlib._bootstrap>", line 1558, in _find_and_load
File "<frozen importlib._bootstrap>", 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 "<frozen importlib._bootstrap>", line 1577, in _gcd_import
File "<frozen importlib._bootstrap>", line 1558, in _find_and_load
File "<frozen importlib._bootstrap>", 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
athanse
 
Posts: 14
Joined: Tue Jan 29, 2013 11:38 am

Re: Installation of SublimeClang on Ubuntu [ST3 build 3047]

Postby miped on Tue Jul 09, 2013 2:24 pm

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.
SublimeGit: Git integration for Sublime Text 2 and 3
https://sublimegit.net
miped
 
Posts: 16
Joined: Mon Jul 08, 2013 6:30 pm


Return to Plugin Development

Who is online

Users browsing this forum: dpmccabe and 9 guests