Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

getting error #<TypeError: wrong argument type nil (expected Symbol)> when using binding.pry in rails 4

getting this weird error

#<TypeError: wrong argument type nil (expected Symbol)>

in utf8_sanitizer

when doing next using binding.pry in rails 4.2.1 with ruby 2.2.0

otherwise running without any error.

like image 349
Rajesh Paul Avatar asked Jun 05 '15 10:06

Rajesh Paul


2 Answers

I was getting this problem with some of my specs when I upgraded to Ruby 2.2 until I bumped byebug to 5.0.0 - not sure if it's the same since you didn't provide much description of your environment, but I hope this is helpful.

like image 129
adambrod Avatar answered Sep 22 '22 18:09

adambrod


Upgrading ByeBug resolved the issue for me as well:

bundle update byebug
like image 32
Tom Rossi Avatar answered Sep 18 '22 18:09

Tom Rossi