Comments (6)
@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.
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.
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.
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.
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.
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)
- delegate_missing_to :instance fails when config_attr is an existing class method. HOT 1
- Make Rails throw an error if a required field is not set when it starts HOT 2
- Config to ENV conversion HOT 1
- Rails 5.1 error: uninitialized constant Rails::Autoloaders (NameError) HOT 5
- RSpec.configure is not always available if RSpec::Core is defined HOT 1
- ::Rails.application.config.credentials.content_path is a String, not a Pathname HOT 2
- Warning: rbs.rb:47: warning: assigned but unused variable - array HOT 1
- Combustion fails on v2.5.0 HOT 3
- Deprecation warning for Rails secrets on Rails 7.1 HOT 4
- AnywayConfig object seems to be cached unexpectedly HOT 1
- You can only merge into a :trace type, and this is :value when env_prefix "" HOT 1
- can't edit rails credentials with "required" validation HOT 1
- Local configuration using credentials doesn't work with Rails 7.1.2 HOT 2
- NameError in Anyway::Config After Upgrading to 2.6.0 on Ruby 3.2.2 and Rails 7.1.2 HOT 4
- Upcoming deprecation warning for 3.4 HOT 4
- Ruby 3.3 - undefined local variable or method 'it' when installing from Github HOT 5
- A string containing comas is splited despite being put into quotas HOT 2
- Error loading date values from yaml files with ruby 3.3.0 HOT 3
- Add support of SECRET_KEY_BASE_DUMMY env variable HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from anyway_config.