My Ruby tests won't run -



My Ruby tests won't run -

every 1 time in while, fire iterm 2, using zsh, work on tutorials. sometimes, when seek run ruby tests, don't run. nil gets returned. process never runs , have ctrl+c break out of it.

here's command run:

ruby -i test/unit/name_of_test.rb

this happens of tests. have restart computer. ideas?

i've tried using terminal, using zsh.

i'm on os x, using ruby 1.9.3 , rails 3.2.8.

this isn't ruby, iterm 2, terminal, or zsh problem. instead, it's not understanding how *nix os apps handle reading stdin.

the problem you're seeing -i specifies $load_path directory. result, ruby using path/to/script load_path variable , hanging, waiting input stdin because didn't see script run.

rather using cntrl+c, or restarting, utilize cntrl+d. closes input stream, cause ruby exit since found no commands run.

you can test using:

ruby -i /dev/null

at command-line. ruby hang, waiting input. close input , ruby exit. of course, if didn't realize that's happened, might end typing interesting commands ruby, won't until sees cntrl+d, might spit out sorts of informative messages, that's understandable since input crazy-talk far interpreter concerned.

that same cntrl+d combination used close input sorts of other *nix programs when reading stdin.

ruby

Comments

Popular posts from this blog

javascript - mongodb won't find my schema method in nested container -

How do you set up a perforce server to work over the internet? -

ios - Lagging ScrollView with UIWebview inside -