Giter Club home page Giter Club logo

Comments (6)

SebastianPoell avatar SebastianPoell commented on August 20, 2024 8

@atstockland: As a temporary fix, we simply pin the anyway_config version to 2.5.4:

gem "anyway_config", "2.5.4"

from anyway_config.

palkan avatar palkan commented on August 20, 2024 4

Fixed by b661b5f and released in 2.6.2.

Thanks to @kalashnikovisme for pointing out to the Ruby 3.3.0 bug with **.

from anyway_config.

yanshiyason avatar yanshiyason commented on August 20, 2024 3

it looks like the "anonymous arguments" are not supported.
When I run the specs with ruby 3.3.0, it gives me this error:

Failure/Error: require "anyway/tracing"

SyntaxError:
  /anyway_config/lib/anyway/tracing.rb:32: anonymous keyword rest parameter is also used within block
  /anyway_config/lib/anyway/tracing.rb:48: anonymous keyword rest parameter is also used within block
  /anyway_config/lib/anyway/tracing.rb:50: anonymous keyword rest parameter is also used within block

Replacing all the occurrences of ** with **opts seems to fix the tests, but maybe the maintainer has a plan to support newer syntax with older ruby versions through ruby-next 🤔

from anyway_config.

kalashnikovisme avatar kalashnikovisme commented on August 20, 2024 2

The error is coming from lines like below

     def record_value(val, *path, **)
        key = path.pop
        trace = if val.is_a?(Hash)
          Trace.new.tap { it.merge_values(val, **) } # <------------------------ this line 
        else
          Trace.new(:value, val, **)
        end

        target_trace = path.empty? ? self : value.dig(*path)
        target_trace.record_key(key.to_s, trace)

        val
      end

Looks like, the whole thing is about this bug.

As I see it will be fixed in the next minor version of Ruby.

Downgrading is a good solution for now or maybe updates to ruby-next could be useful 🙂

from anyway_config.

gjtorikian avatar gjtorikian commented on August 20, 2024 2

Unfortunately, pinning is not always a workaround. In our case, we use imgproxy, which has a hard dependency on 2.6:

Could not find compatible versions

Because imgproxy >= 3.0.0 depends on anyway_config ~> 2.6
  and Gemfile depends on anyway_config = 2.5.4,
  imgproxy >= 3.0.0 cannot be used.
So, because Gemfile depends on imgproxy ~> 3.0,
  version solving has failed.

from anyway_config.

atstockland avatar atstockland commented on August 20, 2024

I'm here for the same. My ruby 3.3.0 upgrade is stalled out on this error. Anybody get past it?

from anyway_config.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.