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

syntax error, unexpected keyword_ensure #154

Closed
StephenTurley opened this issue Oct 16, 2019 · 2 comments
Closed

syntax error, unexpected keyword_ensure #154

StephenTurley opened this issue Oct 16, 2019 · 2 comments

Comments

@StephenTurley
Copy link

Any exec task that that I run throws this error. Using ruby-2.4.6 on a Mac.

bundle exec derailed exec --help
/Users/stephen.turley/.rvm/gems/ruby-2.4.6/gems/derailed_benchmarks-1.4.1/bin/derailed:30:in `require': /Users/stephen.turley/.rvm/gems/ruby-2.4.6/gems/derailed_benchmarks-1.4.1/lib/derailed_benchmarks/tasks.rb:70: syntax error, unexpected keyword_ensure, expecting keyword_end (SyntaxError)
  ensure
        ^
/Users/stephen.turley/.rvm/gems/ruby-2.4.6/gems/derailed_benchmarks-1.4.1/lib/derailed_benchmarks/tasks.rb:256: syntax error, unexpected keyword_end, expecting end-of-input
        from /Users/stephen.turley/.rvm/gems/ruby-2.4.6/gems/derailed_benchmarks-1.4.1/bin/derailed:30:in `exec'
        from /Users/stephen.turley/.rvm/gems/ruby-2.4.6/gems/thor-0.20.3/lib/thor/command.rb:27:in `run'
        from /Users/stephen.turley/.rvm/gems/ruby-2.4.6/gems/thor-0.20.3/lib/thor/invocation.rb:126:in `invoke_command'
        from /Users/stephen.turley/.rvm/gems/ruby-2.4.6/gems/thor-0.20.3/lib/thor.rb:387:in `dispatch'
        from /Users/stephen.turley/.rvm/gems/ruby-2.4.6/gems/thor-0.20.3/lib/thor/base.rb:466:in `start'
        from /Users/stephen.turley/.rvm/gems/ruby-2.4.6/gems/derailed_benchmarks-1.4.1/bin/derailed:93:in `<top (required)>'
        from /Users/stephen.turley/.rvm/gems/ruby-2.4.6/bin/derailed:23:in `load'
        from /Users/stephen.turley/.rvm/gems/ruby-2.4.6/bin/derailed:23:in `<main>'
        from /Users/stephen.turley/.rvm/gems/ruby-2.4.6/bin/ruby_executable_hooks:24:in `eval'
        from /Users/stephen.turley/.rvm/gems/ruby-2.4.6/bin/ruby_executable_hooks:24:in `<main>'
@jchan172
Copy link

I'm getting a similar issue.

bundle exec derailed exec --help
/usr/local/bundle/gems/derailed_benchmarks-1.4.0/bin/derailed:30:in `require': /usr/local/bundle/gems/derailed_benchmarks-1.4.0/lib/derailed_benchmarks/tasks.rb:70: syntax error, unexpected keyword_ensure, expecting keyword_end (SyntaxError)

@schneems
Copy link
Member

This is fixed on HEAD i believe

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