Defect #2948

load_default_data.rake: STDOUT.flush needed before STDIN.gets

Added by Kazuhiro Nishiyama over 8 years ago. Updated over 8 years ago.

Status:ClosedStart date:2009-03-11
Priority:NormalDue date:
Assignee:-% Done:

0%

Category:-
Target version:0.8.3
Resolution:Fixed Affected version:0.8.2

Description

I tried `rake redmine:load_default_data RAILS_ENV=production` but nothing happened, and messages showed after Ctrl+C.
It seems to be a buffering problem.

% rake redmine:load_default_data RAILS_ENV=production
(in /home/kazu/rails_apps/redmine-0.8.2)

^Crake aborted!

(See full trace by running task with --trace)
Select language: bg, ca, cs, da, de, en, es, fi, fr, he, hu, it, ja, ko, lt, nl, no, pl, pt, pt-br, ro, ru, sk, sr, sv, th, tr, uk, vn, zh, zh-tw [en] 
% ruby script/about
About your application's environment
Ruby version              1.8.6 (i686-linux)
RubyGems version          1.3.1
Rails version             2.1.2
Active Record version     2.1.2
Action Pack version       2.1.2
Active Resource version   2.1.2
Action Mailer version     2.1.2
Active Support version    2.1.2
Edge Rails revision       unknown
Application root          /home/kazu/rails_apps/redmine-0.8.2
Environment               development
Database adapter          mysql
%

load_default_data.rake.diff Magnifier - add STDOUT.flush (450 Bytes) Kazuhiro Nishiyama, 2009-03-11 03:35

Associated revisions

Revision 2573
Added by Jean-Philippe Lang over 8 years ago

Flush buffer when asking for language (#2948).

History

#2 Updated by Jean-Philippe Lang over 8 years ago

  • Status changed from New to Resolved
  • Target version set to 0.8.3
  • Resolution set to Fixed

I don't experience this problem, but your fix is applied in r2573.
Thanks.

#3 Updated by Jean-Philippe Lang over 8 years ago

  • Status changed from Resolved to Closed

Merged in 0.8-stable in r2593.

Also available in: Atom PDF