-
-
Notifications
You must be signed in to change notification settings - Fork 194
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
Upgrade to resolver 20.11 #1158
Conversation
and configFastFail to configFailFast due to hspec 2.9.0
Hello. Thanks for opening a PR on Exercism. We are currently in a phase of our journey where we have paused community contributions to allow us to take a breather and redesign our community model. You can learn more in this blog post. As such, all issues and PRs in this repository are being automatically closed. That doesn't mean we're not interested in your ideas, or that if you're stuck on something we don't want to help. The best place to discuss things is with our community on the Exercism Community Forum. You can use this link to copy this into a new topic there. Note: If this PR has been pre-approved, please link back to this PR on the forum thread and a maintainer or staff member will reopen it. |
The version of GHC currently recommended by GHCup is GHC 9.2.5.
In what sense / how did you work around this / would this still be an issue for others?
The checks were cancelled because this PR was closed, but normally they would automatically check all exercises, I guess using this code. |
Ok.
I also had the error message about 'ffitarget_arm64.h' file not being found. The issue I linked considers this a bug and states this bug has been fixed in ghc-9.2.3. I then tried to understand stack as far as to make it use ghc >=9.2.3. Sorry, but I forgot how I came up with resolver: 20.13, but as I stated above, resolver: 20.14 is the latest lts. Furthermore, my understanding is that this would be an issue for everyone who uses a computer with an m1 chip and tries to build an exercise locally.
|
Do I understand correctly that
I gravitate towards |
Yes.
Yes.
To be precise, the bug is supposed to be fixed with 9.2.3 and I can confirm for 9.2.5 and 9.2.7. But yes. |
@ErikSchierboom @petertseng This PR should be reopened. It affects M1 users for the better. As a bonus, GHC 9.2 comes with |
@mx-ws You missed |
Thanks, I changed it there too. Also, I set all the resolver versions to 20.11 for now. |
@mx-ws Thanks! Could you fix the merge conflict please? |
Done. |
@mx-ws Did you push the change? I'm still seeing the conflict |
Oops, I thought I did this. You should see the merge now. |
There are two things left to do:
|
Hm, it is a 'Pattern match(es) are non-exhaustive' error. A list was matched as a 2-element list in a place where the list has already been checked to be of size 2. I rewrote the relevant place to remove the error in the first way I could think of. I don't understand how this error was caused by the update though. |
As you see, I created a pull request over there. Should I create a forum thread this time (as the automatically sent mail suggests) or just leave it like that? |
Any progress on this, or something I can do to help get this merged? I ran into the same issue on an M1 mac, and while I'm perfectly capable of updating the |
I was just working on the corresponding pull request for the haskell-test-runner. I'm battling the expected-results right now. My next step would be to fix the expected-results in this repository. But it will probably take me another week or two to get to this. So this would be something you could do =) |
Would be great if this could be merged soon. I've just ran into the error in the online editor. |
@ErikSchierboom the merging of exercism/haskell-test-runner#72 has (temporarily) broken all exercises. Merging this PR should fix it. Alternatively the workaround suggested by #1058 (comment) might work, but that is less certain and takes more research, i.e. more hours. |
Once CI is green I can merge this |
CI is failing. Could someone take a look? |
I'm already looking into it. |
@ErikSchierboom At minimum, in - where showLower a = let (h:t) = show a
- in (toLower h : t)
+ where showLower = map toLower . show I'll go look for more failures now. |
@MatthijsBlom @mx-ws I can't push to the branch, as it seems to be created without the ability to allow pushes. |
@ErikSchierboom Are you able to rebase this PR? |
I don't have time to look into any issues until later this day, but I added you as a contributor to my repository, @ErikSchierboom . |
@mx-ws There should be a tickbox like this one: |
@mx-ws Could you please add me as a contributor as well? Running the tests on my machine is taking very long; I'd rather run them here. I'm not a maintainer, so I cannot edit this PR. |
I'll let @MatthijsBlom do the fixing, I don't know Haskell that well |
Alright, checks are finally green.
@ErikSchierboom feel free to merge, I guess. |
Thanks @MatthijsBlom! |
And @mx-ws of course. |
Yep, and @mx-ws ! |
Thank you all! |
Aye, there is a platform wide issue: forum thread. |
Hi, this is my first pull request, so please point me to the relevant resources if I did something wrong :D
I wanted to run the tests locally and ran into this ghc on m1 issue: https://gitlab.haskell.org/ghc/ghc/-/issues/20592
and then into this one #1058
So what I did is basically one-liners similar to what is described in latter issue:
grep -rl 'resolver' | xargs sed -i '' -e 's/19.27/20.13/g'
grep -rl 'configFastFail' | xargs sed -i '' -e 's/configFastFail/configFailFast/g'
I ran
stack test
in some of the exercise projects and it seems to be fixed for me now.Also one question that I have: Does the configFastFail change count as a change to the tests as described in the README, so that I should increment the serial number of the version in each exercise?