ruby - Rails Console goes crazy sometimes -
hi guys time now, sometime rails console goes crazy. seems not type or omit letters or move them around in sentence , i'll error messages because of that. tipically i'll exit console , have restart gitbash , trick not sure why?
this happens when in rails console not anywhere else, ideas why? here sample error when went rails console , typed in u = user.new , hit enter happened:
$ rails console dl deprecated, please use fiddle loading development environment (rails 4.0.3) irb(main):001:0> u = user.new syntaxerror: (irb):1: syntax error, unexpected '=' =sene ^ c:/railsinstaller/ruby2.0.0/lib/ruby/gems/2.0.0/gems/railties-4.0.3 /lib/rails/commands/console.rb:90:in `start' c:/railsinstaller/ruby2.0.0/lib/ruby/gems/2.0.0/gems/railties-4.0.3 /lib/rails/commands/console.rb:9:in `start' c:/railsinstaller/ruby2.0.0/lib/ruby/gems/2.0.0/gems/railties-4.0.3 /lib/rails/commands.rb:62:in `<top (required)>' bin/rails:4:in `require' bin/rails:4:in `<main>' irb(main):002:0>
ever seen this?
your terminal may not set correctly use utf-8 etc.
if, in terminal, run $ locale
, see other bunch of "xx_xx.utf-8" might consider taking @ 'a guide set terminal'.
Comments
Post a Comment