Exemplo n.º 1
0
    def run(self):
        print "try install lib"
        out, err = run_cmd([hxsettings.haxelib_exec(), "search", " "])

        libs = self.collect_libraries(out)

        menu = self.prepare_menu(libs)

        cb = functools.partial(self.install, libs)

        self.window.show_quick_panel(menu, cb)
Exemplo n.º 2
0
def run_nme( view, build ) :

    cmd = [ hxsettings.haxelib_exec(), "run", "nme", hxbuild.HaxeBuild.nme_target[2], os.path.basename(build.nmml) ]
    target = hxbuild.HaxeBuild.nme_target[1].split(" ")
    cmd.extend(target)
    cmd.append("-debug")

    view.window().run_command("haxe_exec", {
        "cmd": cmd,
        "working_dir": os.path.dirname(build.nmml),
        "file_regex": "^([^:]*):([0-9]+): (?:characters|lines): [0-9]+-([0-9]+) :.*$"
    })
    return ("" , [], "" )
Exemplo n.º 3
0
    def scan():
        hlout, hlerr = run_cmd([hxsettings.haxelib_exec(), "config"])
        HaxeLib.basePath = hlout.strip()

        HaxeLib.available = {}

        hlout, hlerr = run_cmd([hxsettings.haxelib_Exec(), "list"])

        for l in hlout.split("\n"):
            found = libLine.match(l)
            if found is not None:
                name, dev, version = found.groups()
                lib = HaxeLib(name, dev is not None, version)

                HaxeLib.available[name] = lib