Skip to content
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

update elab for WithFC #109

Merged
merged 1 commit into from
Dec 1, 2024
Merged

Conversation

andrevidela
Copy link
Contributor

Copy link
Collaborator

@mattpolzin mattpolzin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks good. Since CI isn't set up to test against an arbitrary upstream commit of the compiler I'll test this compiles for me locally on my laptop before approving.

@alexhumphreys
Copy link
Owner

Thanks for the PR! It's been a while, and that derive/ folder is maybe the most complicated part of the code, so I don't remember how it works 😅
At least the CI test suite is pretty extensive, so if you can get those passing that should be good enough to merge. Right now it looks like this PR is failing to compile with this error:

 6/21: Building Idrall.Derive.Common (Idrall/Derive/Common.idr)
Error: While processing right hand side of mkTy. Undefined name MkFCVal. 

Idrall.Derive.Common:20:23--20:30
 16 | |||
 17 | ||| This is an alias for `MkTyp EmptyFC`.
 18 | export
 19 | mkTy : (n : Name) -> (ty : TTImp) -> ITy
 20 | mkTy = MkTy EmptyFC . MkFCVal EmptyFC
                            ^^^^^^^

@alexhumphreys
Copy link
Owner

Ah, looks like the tests are building against the docker image snazzybucket/idris2, which hasn't been updated in 11 months. So if you're testing against an open idris2 PR that's gonna be trickier, can see now why @mattpolzin offered to test locally!

Copy link
Collaborator

@mattpolzin mattpolzin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested locally.

./build/exec/runtests idrall --interactive --only

------------------------------------------------------------------------
dhall-lang tests
------------------------------------------------------------------------

idrall/idrall001: success
idrall/idrall002: success
idrall/idrall003: success
idrall/idrall004: success
idrall/idrall005: success

------------------------------------------------------------------------
dhall-lang expected fail tests
------------------------------------------------------------------------

failure/failure001: success

------------------------------------------------------------------------
derive tests
------------------------------------------------------------------------

derive/derive001: success
derive/derive002: success
derive/derive003: success

------------------------------------------------------------------------
examples tests
------------------------------------------------------------------------

examples/example001: success
examples/example002: success
examples/example003: success
examples/inigo001: success
13/13 tests successful

@andrevidela
Copy link
Contributor Author

Thank you so much!

@mattpolzin
Copy link
Collaborator

upstream has merged; I'll merge this. Sounds like Alex was discovering the Docker image this CI uses has not been updated recently so we will have broken CI going forward until that is fixed, but that's a problem for a separate PR.

@mattpolzin mattpolzin merged commit c169165 into alexhumphreys:main Dec 1, 2024
1 check failed
@andrevidela
Copy link
Contributor Author

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants