-
Notifications
You must be signed in to change notification settings - Fork 121
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
An error occurred when inspecting the object: #<NoMethodError: undefined method 'end_with?' for nil> #1072
Comments
What is the output of |
p STDIN.winsize
[0, 0]
An error occurred when inspecting the object: #<NoMethodError: undefined method 'end_with?' for nil>
Result of Kernel#inspect: #<Array:0x00007f05a3ce1e90>
=> [#<Array:0x00007f05a3ce1e90> STDOUT.winsize
An error occurred when inspecting the object: #<NoMethodError: undefined method 'end_with?' for nil>
Result of Kernel#inspect: #<Array:0x00007f05a3f47d38>
=> [#<Array:0x00007f05a3f47d38> I use irb with rails 8 |
Thank you. I think #1073 will fix it. |
I run console in standart maOS terminal in fullscreen |
I can't reproduce it with the latest Rails console.
If |
stty size
0 0 bundle exec rails c p STDIN.winsize
[0, 0]
An error occurred when inspecting the object: #<NoMethodError: undefined method 'end_with?' for nil>
Result of Kernel#inspect: #<Array:0x00007f2a7b5e2d68>
=> [#<Array:0x00007f2a7b5e2d68> stty size
0 0 Gemfile: source 'https://rubygems.org'
git_source(:github) { |repo| "https://github.com/#{repo}.git" }
ruby '3.4.1'
gem 'rails', '~> 8.0', '>= 8.0.1'
gem 'puma', '~> 6.5'
gem 'jbuilder', '~> 2.13'
gem 'pg', '~> 1.5', '>= 1.5.9'
gem 'oj', '3.16'
gem 'rack-cors', require: 'rack/cors'
gem 'elastic-apm', '~> 4.7'
gem 'lograge'
gem 'daemons'
gem 'sentry-raven'
gem 'concurrent-ruby'
gem 'bullet', '~> 8.0'
# remove warnings
gem 'mutex_m'
gem 'drb'
gem 'logger'
gem 'ostruct'
gem 'benchmark'
gem 'reline'
gem 'irb'
group :development, :test do
gem 'bundler-audit', '~> 0.9.2'
gem 'brakeman', require: false
gem 'pry-byebug'
gem 'rspec-rails', '~> 7.0.0'
gem 'rails-controller-testing'
gem 'simplecov', require: false
gem 'factory_bot_rails', '~> 6.4'
end
group :test do
gem 'webmock', '~> 3.24'
gem 'rspec_junit_formatter'
gem 'timecop'
gem 'database_cleaner-active_record'
gem 'rspec_api_documentation'
gem 'n_plus_one_control', '~> 0.7.2'
end It is strange, it works good in my local envronment stty size
46 156 but it does not work in container because stty size
0 0 |
Your patch helped, thank you! |
I think something is wrong with your container launching/connecting command or its command alias. Here is a zero winsize reproduction example. Running docker with
|
@tompng Unfortunately, I can not influence parameters of container. Could you merge your patch in master? |
Hi everyone
When I run any command in console I get error
irb_info
The text was updated successfully, but these errors were encountered: