Skip to content

Commit

Permalink
Merge branch 'master' of github.com:niosus/EasyClangComplete
Browse files Browse the repository at this point in the history
  • Loading branch information
niosus committed May 7, 2016
2 parents 43453c6 + 1059f1a commit 8ec9072
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plugin/completion/bin_complete.py
Original file line number Diff line number Diff line change
Expand Up @@ -141,9 +141,9 @@ def init(self, view, includes, settings, project_folder):
# init needed variables from settings
self.flags_dict[view.id()] = []
for include in includes:
self.flags_dict[view.id()].append('-I' + include)
self.flags_dict[view.id()].append('-I "{}"'.format(include))

# support .clang_complete file with -I<indlude> entries
# support .clang_complete file with -I "<indlude>" entries
if settings.search_clang_complete:
log.debug(" searching for .clang_complete in %s up to %s",
file_folder, project_folder)
Expand Down
4 changes: 4 additions & 0 deletions tests/test_complete.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import tempfile
import time
import logging
import platform
from os import path
from unittest import TestCase

Expand Down Expand Up @@ -114,6 +115,9 @@ def test_complete(self):
self.assertTrue(expected in completer.completions)

def test_complete_vector(self):
if platform.system() == "Windows":
logging.warning(" NOT TESTING VECTOR COMPLETION ON WINDOWS!")
return
file_name = path.join(path.dirname(__file__), 'test_vector.cpp')
self.view = sublime.active_window().open_file(file_name)
while self.view.is_loading():
Expand Down

0 comments on commit 8ec9072

Please sign in to comment.