Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

exception error: undefined function #230

Closed
zackpetersen opened this issue May 20, 2015 · 2 comments
Closed

exception error: undefined function #230

zackpetersen opened this issue May 20, 2015 · 2 comments

Comments

@zackpetersen
Copy link

I've downloaded the latest binary from https://github.com/inaka/elvis/releases/download/0.2.5-beta/elvis
When calling from the command line, I get the following error.

[vagrant@local-dev-rhel]$ ./elvis rock --config ./elvis.config
escript: exception error: undefined function elvis:main/1
  in function  escript:run/2 (escript.erl, line 747)
  in call from escript:start/1 (escript.erl, line 277)
  in call from init:start_it/1 
  in call from init:start_em/1 
[vagrant@local-dev-rhel]$ ./elvis rock
escript: exception error: undefined function elvis:main/1
  in function  escript:run/2 (escript.erl, line 747)
  in call from escript:start/1 (escript.erl, line 277)
  in call from init:start_it/1 
  in call from init:start_em/1 
[vagrant@local-dev-rhel]$ ./elvis -h
escript: exception error: undefined function elvis:main/1
  in function  escript:run/2 (escript.erl, line 747)
  in call from escript:start/1 (escript.erl, line 277)
  in call from init:start_it/1 
  in call from init:start_em/1 
[vagrant@local-dev-rhel]$ ./elvis
escript: exception error: undefined function elvis:main/1
  in function  escript:run/2 (escript.erl, line 747)
  in call from escript:start/1 (escript.erl, line 277)
  in call from init:start_it/1 
  in call from init:start_em/1

I also tried the 0.2.3 binary and experienced similar results. However, it does produce the help menu when called with no arguments.

[vagrant@local-dev-rhel]$ ./elvis rock --config ./elvis.config
escript: exception error: undefined function elvis_config:default/0
  in function  elvis:process_options/2 (src/elvis.erl, line 165)
  in call from escript:run/2 (escript.erl, line 747)
  in call from escript:start/1 (escript.erl, line 277)
  in call from init:start_it/1 
  in call from init:start_em/1 
[vagrant@local-dev-rhel]$ ./elvis rock
escript: exception error: undefined function elvis_config:default/0
  in function  elvis:process_options/2 (src/elvis.erl, line 165)
  in call from escript:run/2 (escript.erl, line 747)
  in call from escript:start/1 (escript.erl, line 277)
  in call from init:start_it/1 
  in call from init:start_em/1 
[vagrant@local-dev-rhel]$ ./elvis -h
escript: exception error: undefined function elvis_config:default/0
  in function  elvis:process_options/2 (src/elvis.erl, line 165)
  in call from escript:run/2 (escript.erl, line 747)
  in call from escript:start/1 (escript.erl, line 277)
  in call from init:start_it/1 
  in call from init:start_em/1 
[vagrant@local-dev-rhel]$ ./elvis
Usage: elvis [-h] [-c <config>] [--commands]

  -h, --help    Show this help information.
  -c, --config  Provide the path to the configuration file. When none is 
                provided elvis checks if there's an elvis.config file.
  --commands    Show available commands.
@jfacorro
Copy link
Contributor

@zackpetersen What version of Erlang/OTP do you have installed?

@zackpetersen
Copy link
Author

Looks like I have R16B03-1. I see the problem now :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants