Giter Site home page Giter Site logo

Comments (6)

andytill avatar andytill commented on August 10, 2024

Is your project in the OTP app format? Do you have a rebar.config file?

Also check out the sublime text console for errors.

from sublimerl.

alex-ethier avatar alex-ethier commented on August 10, 2024

Yes OTP with rebar.config, no errors in console.

from sublimerl.

guobosheng avatar guobosheng commented on August 10, 2024

I also encountered the same problem

from sublimerl.

guobosheng avatar guobosheng commented on August 10, 2024

Howdy, first of all, thank you for your hard work.

I have a valid and working rebar - I can type 'rebar compile' on the command line and it builds correctly.
I print stderr:

    def execute_os_command(self, os_cmd, dir_type=None, block=False, log=True):
        # set dir
        if dir_type == 'project': os.chdir(self.project_root)
        elif dir_type == 'test': os.chdir(self.test_root)

        if log == True: self.log("%s$ %s\n\n" % (os.getcwd(), os_cmd))

        # start proc
        current_env = self.get_test_env()
        p = subprocess.Popen(os_cmd, stdout=subprocess.PIPE, stderr=subprocess.PIPE, shell=True, env=current_env)
        if block == True:
            stdout, stderr = p.communicate()
            print(stderr)
            return (p.returncode, stdout)
        else:
            stdout = []
            for line in p.stdout:
                self.log(line)
                stdout.append(line)
            return (p.returncode, ''.join(stdout)) 

I get:

/Users/guo/bin/rebar compile
env: escript: No such file or directory

escript is present on my system:

$ which escript
/usr/local/bin/escript

from sublimerl.

guobosheng avatar guobosheng commented on August 10, 2024

When I add /usr/local/bin/escript to the PATH, problem solved!

from sublimerl.

ostinelli avatar ostinelli commented on August 10, 2024

Alternatively, there's a configuration file just for this:
https://github.com/ostinelli/SublimErl#configuration

from sublimerl.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.