Skip to content

Commit 3f1eda6

Browse files
committed
Codebase updated. Also, now using SublimeCodeintel/CodeIntelSources to build and deploy
1 parent 8aa87f2 commit 3f1eda6

File tree

344 files changed

+222737
-43306
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

344 files changed

+222737
-43306
lines changed

.gitignore

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
1+
.DS_Store
2+
13
.git
24
.hg
35
.svn
46

57
*.pyc
68
*.pyo
7-
9+
*.o
10+
*.so

SublimeCodeIntel.py

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -84,10 +84,15 @@
8484
CODEINTEL_HOME_DIR = os.path.expanduser(os.path.join('~', '.codeintel'))
8585
__file__ = os.path.normpath(os.path.abspath(__file__))
8686
__path__ = os.path.dirname(__file__)
87+
8788
libs_path = os.path.join(__path__, 'libs')
8889
if libs_path not in sys.path:
8990
sys.path.insert(0, libs_path)
9091

92+
arch_path = os.path.join(__path__, 'arch')
93+
if arch_path not in sys.path:
94+
sys.path.insert(0, arch_path)
95+
9196
from codeintel2.common import *
9297
from codeintel2.manager import Manager
9398
from codeintel2.citadel import CitadelBuffer
@@ -114,12 +119,12 @@ def emit(self, record):
114119
codeintel_log.handlers = [codeintel_hdlr]
115120
log.handlers = [stderr_hdlr]
116121
codeintel_log.setLevel(logging.INFO) # INFO
117-
logging.getLogger("codeintel.db").setLevel(logging.WARNING) # WARNING/INFO
122+
logging.getLogger("codeintel.db").setLevel(logging.WARNING) # WARNING
118123

119-
for lang in ('css', 'django', 'html', 'html5', 'javascript', 'mason', 'nodejs',
124+
for logger in ('css', 'django', 'html', 'html5', 'javascript', 'mason', 'nodejs',
120125
'perl', 'php', 'python', 'python3', 'rhtml', 'ruby', 'smarty',
121126
'tcl', 'templatetoolkit', 'xbl', 'xml', 'xslt', 'xul'):
122-
logging.getLogger("codeintel." + lang).setLevel(logging.DEBUG) # WARNING/DEBUG
127+
logging.getLogger("codeintel." + logger).setLevel(logging.INFO) # WARNING
123128
log.setLevel(logging.ERROR) # ERROR
124129

125130
cpln_fillup_chars = {
@@ -308,7 +313,7 @@ def _trigger(cplns, calltips):
308313
'next_completion_if_showing': False,
309314
'auto_complete_commit_on_tab': True,
310315
})
311-
elif calltips is not None:
316+
elif calltips is not None and False:
312317
# Trigger a tooltip
313318
calltip(view, 'tip', calltips[0])
314319

@@ -502,6 +507,7 @@ def codeintel_cleanup(id):
502507

503508

504509
def codeintel_manager(folders_id):
510+
folders_id = None
505511
global _ci_mgr_, condeintel_log_filename, condeintel_log_file
506512
mgr = _ci_mgr_.get(folders_id)
507513
if mgr is None:
@@ -510,7 +516,7 @@ def codeintel_manager(folders_id):
510516
thread.finalize() # this finalizes the index, citadel and the manager and waits them to end (join)
511517
mgr = Manager(
512518
extra_module_dirs=None,
513-
db_base_dir=os.path.expanduser(os.path.join('~', '.codeintel', 'databases', folders_id)),
519+
db_base_dir=None, # os.path.expanduser(os.path.join('~', '.codeintel', 'databases', folders_id)),
514520
db_catalog_dirs=[],
515521
db_import_everything_langs=None,
516522
)
@@ -577,7 +583,7 @@ def _codeintel_scan():
577583
if folder_path:
578584
# Try to find a suitable project directory (or best guess):
579585
for folder in ['.codeintel', '.git', '.hg', '.svn', 'trunk']:
580-
project_dir = find_folder(folder_path, folder)
586+
project_dir = find_back(folder_path, folder)
581587
if project_dir:
582588
if folder == '.codeintel':
583589
if project_dir == CODEINTEL_HOME_DIR or os.path.exists(os.path.join(project_dir, 'databases')):
@@ -792,7 +798,7 @@ def _callback():
792798
codeintel_scan(view, path, content, lang, _codeintel, pos, forms)
793799

794800

795-
def find_folder(start_at, look_for):
801+
def find_back(start_at, look_for):
796802
root = os.path.realpath('/')
797803
start_at = os.path.abspath(start_at)
798804
if not os.path.isdir(start_at):

0 commit comments

Comments
 (0)