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

frozen path helper #5884

merged 1 commit into from Sep 23, 2019

frozen path helper #5884

merged 1 commit into from Sep 23, 2019


Copy link

@ahorek ahorek commented Sep 20, 2019


FrozenError: can't modify frozen String
  org/jruby/ `<<'
  uri:classloader:/jruby/path_helper.rb:59:in `block in quote_sensitive_split'
  org/jruby/ `each_char'
  uri:classloader:/jruby/path_helper.rb:19:in `quote_sensitive_split'
  uri:classloader:/jruby/path_helper.rb:94:in `smart_split_command'
  org/jruby/ `_exec_internal'
  uri:classloader:/jruby/kernel/kernel.rb:4:in `exec'
  /home/travis/.rvm/gems/jruby-head/gems/bundler-2.0.2/lib/bundler/cli/exec.rb:53:in `kernel_exec'
  /home/travis/.rvm/gems/jruby-head/gems/bundler-2.0.2/lib/bundler/cli/exec.rb:34:in `run'
  /home/travis/.rvm/gems/jruby-head/gems/bundler-2.0.2/lib/bundler/cli.rb:465:in `exec'
  /home/travis/.rvm/gems/jruby-head/gems/bundler-2.0.2/lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run'
  /home/travis/.rvm/gems/jruby-head/gems/bundler-2.0.2/lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command'
  /home/travis/.rvm/gems/jruby-head/gems/bundler-2.0.2/lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch'
  /home/travis/.rvm/gems/jruby-head/gems/bundler-2.0.2/lib/bundler/cli.rb:27:in `dispatch'
  /home/travis/.rvm/gems/jruby-head/gems/bundler-2.0.2/lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start'
  /home/travis/.rvm/gems/jruby-head/gems/bundler-2.0.2/lib/bundler/cli.rb:18:in `start'
  /home/travis/.rvm/gems/jruby-head/gems/bundler-2.0.2/exe/bundle:30:in `block in <main>'
  /home/travis/.rvm/gems/jruby-head/gems/bundler-2.0.2/lib/bundler/friendly_errors.rb:124:in  with_friendly_errors'
  /home/travis/.rvm/gems/jruby-head/gems/bundler-2.0.2/exe/bundle:22:in `<main>'
  org/jruby/ `load'
  /home/travis/.rvm/gems/jruby-head/bin/bundle:23:in `<main>'
  org/jruby/ `eval'
  /home/travis/.rvm/gems/jruby-head/bin/jruby_executable_hooks:24:in `<main>'

@enebo enebo added this to the JRuby milestone Sep 23, 2019
@enebo enebo merged commit 10e365c into jruby:master Sep 23, 2019
Copy link

enebo commented Sep 23, 2019

@ahorek I do wonder if puma should be expecting it to be mutable in the first place but it is easy to land this. As it exists today it was a mutable string already so no real semantic change.

Copy link
Contributor Author

ahorek commented Sep 23, 2019

if you enable --enable-frozen-string-literal globally, you expect that all files are frozen-string-literals friendly, but in this case the core of jruby isn't.

Copy link

enebo commented Sep 23, 2019

@ahorek hah. wow I misread this yeah we are using the shovel to modify the last element. Ignore my comment :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
None yet

Successfully merging this pull request may close these issues.

None yet

2 participants