-
Notifications
You must be signed in to change notification settings - Fork 208
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
Amber is incompatible with crystal 0.36.x? #1245
Comments
The fix should be merged, however given that there hasn't been a fresh release of Amber since June I expect that you'll need to use the main branch version to get things to work. |
Sadly I have to confirm that this problem exists with an up-to-day amber ( I've patched the description |
Oh, wow. Thanks for posting more info. I had tried to install Amber a few days ago and assumed it was a fairly simple issue. Looks like there will need to be some deeper fixes in Amber to bring it up to date with the latest breaking changes. So, for a solution for you I would suggest: either roll back to an older version of Crystal or I'm sure the Amber project would love to have someone tackling these issues. |
Currently I decided to stick with |
Released Amber 0.36.0 to support Crystal 0.36.x |
I'm getting this on a project created with v0.35.1 while trying
|
OK, the fix was kind of easy. I just deleted |
Description
Amber fails to build an empty app using crystal
0.36.x
Reproducing both in host and docker environments (the following description is for a docker one)
Steps to Reproduce
docker pull crystallang/crystal:0.36.0
and create a container from it;amber w
Expected behavior: Amber app starts
Actual behavior: Amber app fails to build:
Reproduces how often: 100% reproduction with crystal
0.36.0
and0.36.1
Versions
Crystal 0.36.0 [1e6f96aef] (2021-01-26)
LLVM: 10.0.0
Default target: x86_64-unknown-linux-gnu
Amber CLI (amberframework.org) - v0.35.0
Additional Information
I'm entirely new to crystal but it looks like a method with type constraints doesn't override the most generic one in the base class via inheritance. This particular error can be fixed by adding (to the base class) or removing (from
CookieStore
) type constraints from the method signature. But there are lots of errors like this in the generated code base, so it looks like it is not possible to eliminate all of them by hand without breaking something in the framework (touching the framework by hand is a pretty bad idea itself).The text was updated successfully, but these errors were encountered: