[#97536] [Ruby master Bug#16694] JIT vs hardened GCC with PCH — v.ondruch@...
Issue #16694 has been reported by vo.x (Vit Ondruch).
11 messages
2020/03/18
[ruby-core:97603] [Ruby master Bug#16687] Ripper.slice FrozenError in ruby 2.5
From:
merch-redmine@...
Date:
2020-03-27 16:23:09 UTC
List:
ruby-core #97603
Issue #16687 has been updated by jeremyevans0 (Jeremy Evans).
Backport changed from 2.5: UNKNOWN, 2.6: UNKNOWN, 2.7: UNKNOWN to 2.5: REQUIRED, 2.6: DONTNEED, 2.7: DONTNEED
Status changed from Open to Closed
This is the related commit for backporting: commit:67bb95936d241bd452f3bcfb76276e0ab61234f0.
Note that Ruby 2.5 will be moving from the normal maintenance phase to the security maintenance phase in about 4 days.
----------------------------------------
Bug #16687: Ripper.slice FrozenError in ruby 2.5
https://bugs.ruby-lang.org/issues/16687#change-84790
* Author: Dan0042 (Daniel DeLorme)
* Status: Closed
* Priority: Normal
* ruby -v: ruby 2.5.6p201 (2019-08-28 revision 67793) [x86_64-linux]
* Backport: 2.5: REQUIRED, 2.6: DONTNEED, 2.7: DONTNEED
----------------------------------------
Trying the example from the Ripper.slice documentation:
```ruby
require 'ripper'
p Ripper.slice('def m(a) nil end', 'ident')
#=> /opt/ruby/2.5/lib/ruby/2.5.0/ripper/lexer.rb:199:in `concat': can't modify frozen String (FrozenError)
```
Just needs to change lexer.rb:195 from `buf = ''` to `buf = +''`
--
https://bugs.ruby-lang.org/
Unsubscribe: <mailto:ruby-core-request@ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>