YaleSTC / reservations

Manage equipment loans & reservations. Who can borrow what, for how long?
yalestc.github.io/reservations
MIT License
139 stars 57 forks source link

rake app:setup undefined method `noecho' #1793

Closed djjudas21 closed 4 years ago

djjudas21 commented 4 years ago

Looks like the rake task is missing a dependency or something:

# rake app:setup

Welcome to reservations! Before using your application, we need to create an
initial superuser account and set some application-wide configurations.
This superuser account can be used later to create admins, import users
and change any configurations that you set from this script. With that
in mind, let's get started!

We need to start by creating a superuser account. Please enter the
following info:

First Name:
Jonathan
Last Name:
Gazeley
Phone #:

Email Address:
test@example.com
Password:
rake aborted!
NoMethodError: undefined method `noecho' for #<IO:<STDIN>>
/usr/src/reservations/lib/tasks/setup_application.rake:45:in `block (2 levels) in <top (required)>'
/usr/local/bundle/gems/rake-12.0.0/exe/rake:27:in `<top (required)>'
Tasks: TOP => app:setup
(See full trace by running task with --trace)

I'm a n00b at Ruby but a quick Google turned up some similar issues (https://github.com/veelenga/jira_report/issues/5 and https://github.com/kentaroi/sshkit-sudo/issues/4) seems like it's just a missing require 'io/console'.

dokurnon commented 4 years ago

Thank you for the report. We have not, however, been able to reproduce this error. Please use the latest version from https://gitlab.com/yale-sdmp/reservations and report any issues there going forward.