Skip to content

Instantly share code, notes, and snippets.

@ngty
Created October 16, 2010 01:44
Show Gist options
  • Save ngty/629280 to your computer and use it in GitHub Desktop.
Save ngty/629280 to your computer and use it in GitHub Desktop.
Need extra stripping of trailing double-quote char to prevent yaml-related error
/home/ty.archlinux/.rvm/rubies/ruby-1.8.7-p302/lib/ruby/1.8/yaml.rb:133:in `load': syntax error on line 23, col -1: ` ' :cd': "\E[J:ce=\E[K:cl=\E[H\E[J:cm=\E[%i%d;%dH:ct=\E[3g:\" (ArgumentError)
' :do': "^J:nd=\E[C:pt:rc=\E8:rs=\Ec:sc=\E7:st=\EH:up=\EM:\"
' :le': "^H:bl=^G:cr=^M:it#8:ho=\E[H:nw=\EE:ta=^I:is=\E)0:\"
' :li#33:co#127:am:xn:xv:LP:sr': "\EM:al=\E[L:AL=\E[%dL:\"
' :cs': "\E[%i%d;%dr:dl=\E[M:DL=\E[%dM:im=\E[4h:ei=\E[4l:mi:\"
' :IC': "\E[%d@:ks=\E[?1h\E=:ke=\E[?1l\E>:vi=\E[?25l:\"
' :ve': "\E[34h\E[?25h:vs=\E[34l:ti=\E[?1049h:te=\E[?1049l:\"
' :us': "\E[4m:ue=\E[24m:so=\E[3m:se=\E[23m:mb=\E[5m:\"
' :md': "\E[1m:mr=\E[7m:me=\E[m:ms:\"
' :Co#8:pa#64:AF': "\E[3%dm:AB=\E[4%dm:op=\E[39;49m:AX:\"
' :vb': "\Eg:G0:as=\E(0:ae=\E(B:\"
' :ac': "\140\140aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~..--++,,hhII00:\"
' :k0': "\E[10~:k1=\EOP:k2=\EOQ:k3=\EOR:k4=\EOS:k5=\E[15~:\"
' :k6': "\E[17~:k7=\E[18~:k8=\E[19~:k9=\E[20~:k;=\E[21~:\"
' :F1': "\E[23~:F2=\E[24~:F3=\E[25~:F4=\E[26~:F5=\E[28~:\"
' :F6': "\E[29~:F7=\E[31~:F8=\E[32~:F9=\E[33~:FA=\E[34~:\"
' :kb': "^H:K1=\EOw:K2=\EOu:K3=\EOy:K4=\EOq:K5=\EOs:kB=\E[Z:\"
' :kE': "\E[8\^:*4=\E[3$:*7=\E[8$:#2=\E[7$:#3=\E[2$:#4=\E[d:\"
' :%c': "\E[6$:%e=\E[5$:%i=\E[c:kh=\E[1~:@1=\E[1~:kH=\E[4~:\"
' :@7': "\E[4~:kN=\E[6~:kP=\E[5~:kI=\E[2~:kD=\E[3~:ku=\EOA:\"
' :kd': "\EOB:kr=\EOC:kl=\EOD:"
'MOZ_PLUGIN_PATH': "/usr/lib/mozilla/plugins"
'MAVEN_OPTS': "-Xmx512m"
'XDG_CONFIG_DIRS': "/etc/xdg"
'rvm_ruby_args': "identifier "
'MAIL': "/var/spool/mail/ty"
'PATH': "/home/ty.archlinux/.rvm/gems/ruby-1.8.6-p399@parsetree/bin:/home/ty.archlinux/.rvm/gems/ruby-1.8.6-p399@global/bin:/home/ty.archlinux/.rvm/rubies/ruby-1.8.6-p399/bin:/home/ty.archlinux/.rvm/bin:/home/ty.archlinux/bin:/usr/local/bin:/usr/share/java/apache-ant/bin/:/bin:/usr/bin:/sbin:/usr/sbin:/opt/android-sdk/tools:/usr/share/java/apache-ant/bin:/opt/java/bin:/opt/java/jre/bin:/opt/maven/bin:/usr/lib/perl5/core_perl/bin:/home/ty.archlinux/bin/jruby/bin"
'STY': "25734.xstub"
'QT_IM_MODULE': "scim"
'INPUTRC': "/etc/inputrc"
'PWD': "/home/ty.archlinux/dev/ty/cross-stub"
'JAVA_HOME': "/opt/java"
'XMODIFIERS': "@im=SCIM"
'MUTE_BACON': "true"
'EDITOR': "vim"
'LANG': "en_US.utf8"
'rvm_expanding_aliases': "0"
'PS3': "> "
'HISTCONTROL': "erasedups"
'rvm_version': "1.0.14"
'COLORFGBG': "default;default"
'M2_HOME': "/opt/maven"
'SHLVL': "5"
'PS4': "+ "
'HOME': "/home/ty.archlinux"
'TERMINFO': "/usr/share/terminfo"
'XDG_CONFIG_HOME': "/home/ty.archlinux/.config"
'rvm_default_flag': "0"
'BUNDLE_PATH': "/home/ty.archlinux/.rvm/gems/ruby-1.8.6-p399@parsetree"
'XDG_CACHE_HOME': "/home/ty.archlinux/.cache"
'LESS': "-R"
'LOGNAME': "ty"
'WINDOW': "1"
'GEM_PATH': "/home/ty.archlinux/.rvm/gems/ruby-1.8.6-p399@parsetree:/home/ty.archlinux/.rvm/gems/ruby-1.8.6-p399@global"
'XDG_DATA_DIRS': "/usr/share:/usr/local/share"
'J2SDKDIR': "/opt/java"
'DBUS_SESSION_BUS_ADDRESS': "unix:abstract=/tmp/dbus-szzDS4rcB3,guid=6fcc86fbb739ddf905e584520000001d"
'PKG_CONFIG_PATH': "/usr/lib/pkgconfig"
'WINDOWPATH': "7"
'DISPLAY': ":0.0"
'RUBYOPT': "rubygems"
'GTK_IM_MODULE': "scim"
'RUBY_VERSION': "ruby-1.8.6-p399"
'G_BROKEN_FILENAMES': '
from /home/ty.archlinux/.rvm/rubies/ruby-1.8.7-p302/lib/ruby/1.8/yaml.rb:133:in `load'
from ./.infinity_test:11:in `raw_stdout_to_parts'
from /home/ty.archlinux/.rvm/lib/rvm/shell/single_shot_wrapper.rb:21:in `run_command'
from /home/ty.archlinux/.rvm/lib/rvm/shell/single_shot_wrapper.rb:44:in `with_shell_instance'
from /home/ty.archlinux/.rvm/lib/rvm/shell/single_shot_wrapper.rb:17:in `run_command'
from /home/ty.archlinux/.rvm/lib/rvm/shell/abstract_wrapper.rb:71:in `run'
from /home/ty.archlinux/.rvm/lib/rvm/environment/utility.rb:67:in `rvm'
from /home/ty.archlinux/.rvm/lib/rvm/environment/tools.rb:6:in `tools_identifier'
from /home/ty.archlinux/.rvm/lib/rvm/environment.rb:38:in `expanded_name'
from /home/ty.archlinux/.rvm/gems/ruby-1.8.7-p302/gems/infinity_test-0.2.1/lib/infinity_test/binary_path.rb:5:in `rvm_bin_path'
from /home/ty.archlinux/.rvm/gems/ruby-1.8.7-p302/gems/infinity_test-0.2.1/lib/infinity_test/binary_path.rb:13:in `search_binary'
from /home/ty.archlinux/.rvm/gems/ruby-1.8.7-p302/gems/infinity_test-0.2.1/lib/infinity_test/bacon.rb:52:in `search_bacon'
from /home/ty.archlinux/.rvm/gems/ruby-1.8.7-p302/gems/infinity_test-0.2.1/lib/infinity_test/bacon.rb:34:in `construct_rubies_commands'
from /home/ty.archlinux/.rvm/lib/rvm.rb:107:in `environment'
from /home/ty.archlinux/.rvm/lib/rvm.rb:92:in `environments'
from /home/ty.archlinux/.rvm/lib/rvm.rb:91:in `map'
from /home/ty.archlinux/.rvm/lib/rvm.rb:91:in `environments'
from /home/ty.archlinux/.rvm/gems/ruby-1.8.7-p302/gems/infinity_test-0.2.1/lib/infinity_test/bacon.rb:32:in `construct_rubies_commands'
from /home/ty.archlinux/.rvm/gems/ruby-1.8.7-p302/gems/infinity_test-0.2.1/lib/infinity_test/bacon.rb:19:in `construct_commands'
from /home/ty.archlinux/.rvm/gems/ruby-1.8.7-p302/gems/infinity_test-0.2.1/lib/infinity_test/application.rb:74:in `construct_commands'
from /home/ty.archlinux/.rvm/gems/ruby-1.8.7-p302/gems/infinity_test-0.2.1/lib/infinity_test/continuous_testing.rb:7:in `initialize'
from /home/ty.archlinux/.rvm/gems/ruby-1.8.7-p302/gems/infinity_test-0.2.1/lib/infinity_test/runner.rb:26:in `new'
from /home/ty.archlinux/.rvm/gems/ruby-1.8.7-p302/gems/infinity_test-0.2.1/lib/infinity_test/runner.rb:26:in `start_continuous_testing!'
from /home/ty.archlinux/.rvm/gems/ruby-1.8.7-p302/gems/infinity_test-0.2.1/lib/infinity_test/runner.rb:13:in `run!'
from /home/ty.archlinux/.rvm/gems/ruby-1.8.7-p302/gems/infinity_test-0.2.1/lib/infinity_test.rb:24:in `start!'
from /home/ty.archlinux/.rvm/gems/ruby-1.8.7-p302/gems/infinity_test-0.2.1/bin/infinity_test:7
from /home/ty.archlinux/.rvm/gems/ruby-1.8.7-p302/bin/infinity_test:19:in `load'
from /home/ty.archlinux/.rvm/gems/ruby-1.8.7-p302/bin/infinity_test:19
module RVM
module Shell
class AbstractWrapper
def raw_stdout_to_parts(c)
raise IncompleteCommandError if !command_complete?(c)
before, after = c.split(COMMAND_EPILOG_START, 2)
epilog, after = after.split(COMMAND_EPILOG_END, 2)
# HACK !! need to apply gsub to prevent yaml-related error
return before, YAML.load(epilog.strip.gsub("\\\"\n","\"\n")), after
end
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment