Skip to content
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

Stack level too deep error for string_methods #13

Closed
enderahmetyurt opened this issue May 26, 2019 · 6 comments
Closed

Stack level too deep error for string_methods #13

enderahmetyurt opened this issue May 26, 2019 · 6 comments

Comments

@enderahmetyurt
Copy link

I am trying to comparison strings with usign Ruby upcase method. For example;

banks.select { |b| b["banka"]["bAd"] == bank_name.upcase }

Here when I try to run rspec tests I faced SystemStackError: stack level too deep error. It occurs on

../ruby-2.6.2/gems/turkish_support-1.1.3/lib/turkish_support/string_methods.rb:18

Could you help me?

Cheers.

@computalya
Copy link

I've got same error message with ruby 2.6.3 and rails 6.0.0-rc2

@enderahmetyurt
Copy link
Author

I talked to @sbagdat he told me he was working on that issue.

@enderahmetyurt
Copy link
Author

i guess it's a ruby 2.6.x problem. I don't face any errors with ruby 2.5.x

@rokumatsumoto
Copy link

@sbagdat
Copy link
Owner

sbagdat commented Nov 26, 2019

@rokumatsumoto
Copy link

ruby/ruby/search?p=1&q=%3Aturkic&unscoped_q=%3Aturkic

?

With Ruby 2.4.6, downcase and upcase methods support the Turkish language. I haven't looked at other String methods yet.

https://apidock.com/ruby/v2_4_6/String/downcase
https://apidock.com/ruby/v2_4_6/String/upcase

[1] pry(main)> 'içel'.upcase(:turkic)
=> "İÇEL"

@sbagdat sbagdat closed this as completed in 813ce61 Nov 6, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants