Permalink
Browse files

Showing messages with show_sublime_message_process

  • Loading branch information...
1 parent adfe89c commit 637809c7d153fd9ce9e445f405d1ea1c84d66aa6 @mvoidex mvoidex committed Feb 11, 2013
Showing with 11 additions and 8 deletions.
  1. +3 −0 .gitignore
  2. +8 −8 autocomplete.py
View
3 .gitignore
@@ -2,6 +2,9 @@
# vim swap files
.*.sw[a-z]
+# vim temporary
+*~
+
# haskell's junk
dist
cabal-dev
View
16 autocomplete.py
@@ -662,36 +662,36 @@ def __init__(self):
def run(self):
# Compile the CabalInspector:
# TODO: Where to compile it?
- show_status_message(InspectorAgent.CABALMSG)
+ show_status_message_process(InspectorAgent.CABALMSG)
exit_code, out, err = call_and_wait(['ghc',
'--make', CABAL_INSPECTOR_SOURCE_PATH,
'-o', CABAL_INSPECTOR_EXE_PATH,
'-outputdir', CABAL_INSPECTOR_OBJ_DIR])
if exit_code != 0:
- show_status_message(InspectorAgent.CABALMSG, False)
+ show_status_message_process(InspectorAgent.CABALMSG, False)
error_msg = u"SublimeHaskell: Failed to compile CabalInspector\n{0}".format(err)
wait_for_window(lambda w: self.show_errors(w, error_msg))
else:
- show_status_message(InspectorAgent.CABALMSG, True)
+ show_status_message_process(InspectorAgent.CABALMSG, True)
# Continue anyway
# Compile the ModuleInspector:
- show_status_message(InspectorAgent.MODULEMSG)
+ show_status_message_process(InspectorAgent.MODULEMSG)
exit_code, out, err = call_and_wait(['ghc',
'--make', MODULE_INSPECTOR_SOURCE_PATH,
'-o', MODULE_INSPECTOR_EXE_PATH,
'-outputdir', MODULE_INSPECTOR_OBJ_DIR])
if exit_code != 0:
- show_status_message(InspectorAgent.MODULEMSG, False)
+ show_status_message_process(InspectorAgent.MODULEMSG, False)
error_msg = u"SublimeHaskell: Failed to compile ModuleInspector\n{0}".format(err)
wait_for_window(lambda w: self.show_errors(w, error_msg))
return
- show_status_message(InspectorAgent.MODULEMSG, True)
+ show_status_message_process(InspectorAgent.MODULEMSG, True)
# For first time, inspect all open folders and files
wait_for_window(lambda w: self.mark_all_files(w))
@@ -743,7 +743,7 @@ def _refresh_all_module_info(self, cabal_dir, index, count):
# Process all files within the Cabal project:
# TODO: Only process files within the .cabal file's "src" directory.
(project_name, cabal_file) = get_cabal_in_dir(cabal_dir)
- show_status_message('Reinspecting ({0}/{1}) {2}'.format(index, count, project_name))
+ show_status_message_process('Reinspecting ({0}/{1}) {2}'.format(index, count, project_name))
# set project and read cabal
if cabal_file and project_name:
self._refresh_project_info(cabal_dir, project_name, cabal_file)
@@ -753,7 +753,7 @@ def _refresh_all_module_info(self, cabal_dir, index, count):
for filename in haskell_source_files:
self._refresh_module_info(filename)
end_time = time.clock()
- show_status_message('Reinspecting ({0}/{1}) {2}'.format(index, count, project_name), True)
+ show_status_message_process('Reinspecting ({0}/{1}) {2}'.format(index, count, project_name), True)
log('total inspection time: {0} seconds'.format(end_time - begin_time))
def _refresh_project_info(self, cabal_dir, project_name, cabal_file):

0 comments on commit 637809c

Please sign in to comment.