neo4jrb / neo4j-core

A simple unified API that can access both the server and embedded Neo4j database. Used by the neo4j gem
MIT License
99 stars 80 forks source link

Ruby 2.7.1: index exception can't modify frozen String: #340

Open dimitriwoei opened 4 years ago

dimitriwoei commented 4 years ago

I upgraded my project to Ruby 2.7.1. Suddenly I'm getting the following error: index exception can't modify frozen String: "MyModelClass"

/home/dwoei/.rbenv/versions/2.7.1/lib/ruby/gems/2.7.0/gems/neo4j-core-9.0.0/lib/neo4j/core/query_clauses.rb:210:in strip!' /home/dwoei/.rbenv/versions/2.7.1/lib/ruby/gems/2.7.0/gems/neo4j-core-9.0.0/lib/neo4j/core/query_clauses.rb:210:informat_label' /home/dwoei/.rbenv/versions/2.7.1/lib/ruby/gems/2.7.0/gems/neo4j-core-9.0.0/lib/neo4j/core/query_clauses.rb:70:in `node_from_key_and_value'

Additional information which could be helpful if relevent to your issue:

Code example (inline, gist, or repo)

query_session = ::Neo4j::Core::Query.new(session: ::Neo4j::ActiveBase.current_session) query_session.match(n: MyModelClass)

Runtime information:

Neo4j database version: 3.5.14 neo4j gem version: 9.6.1 neo4j-core gem version: 9.0.0