def plugin_loaded():
    global MODULE_INSPECTOR_SOURCE_PATH
    global MODULE_INSPECTOR_EXE_PATH
    global MODULE_INSPECTOR_OBJ_DIR
    global CABAL_INSPECTOR_SOURCE_PATH
    global CABAL_INSPECTOR_EXE_PATH
    global CABAL_INSPECTOR_OBJ_DIR
    global OUTPUT_PATH

    package_path = sublime_haskell_package_path()

    MODULE_INSPECTOR_SOURCE_PATH = os.path.join(package_path, 'ModuleInspector.hs')
    MODULE_INSPECTOR_EXE_PATH = os.path.join(package_path, 'ModuleInspector')
    MODULE_INSPECTOR_OBJ_DIR = os.path.join(package_path, 'obj/ModuleInspector')
    CABAL_INSPECTOR_SOURCE_PATH = os.path.join(package_path, 'CabalInspector.hs')
    CABAL_INSPECTOR_EXE_PATH = os.path.join(package_path, 'CabalInspector')
    CABAL_INSPECTOR_OBJ_DIR = os.path.join(package_path, 'obj/CabalInspector')
    OUTPUT_PATH = os.path.join(package_path, 'module_info.cache')

    global std_inspector
    std_inspector = StandardInspectorAgent()
    std_inspector.start()

    global inspector
    inspector = InspectorAgent()
    inspector.start()

    # TODO: How to stop_hdevtools() in Sublime Text 2?
    start_hdevtools()
Exemple #2
0
def plugin_loaded():
    # TODO: How to stop_hdevtools() in Sublime Text 2?
    start_hdevtools()
Exemple #3
0
def plugin_loaded():
    # TODO: How to stop_hdevtools() in Sublime Text 2?
    start_hdevtools()