Closed darraghenright closed 1 year ago
A small update:
1.14.2
. The functionality is broken since 1.14.1
.1.14.0-rc.1
(installed 1.14.0-rc.1-otp-24
via asdf)So clearly something changed after that release candidate.
Had a quick chat about this in Elixir Slack and turns out this was a bug in Elixir version 1.14.1
which was fixed in 1.14.2
:
https://github.com/elixir-lang/elixir/issues/12186
I am happy to confirm that upgrading to 1.14.2 fixes the issue. Closing!
@darraghenright , looks like we are bumping into the same problems across projects 😄
Hi folks 👋
I hope all is well. The documentation suggests that protocols are automatically generated for structs when using
Vex.Struct
but this appears to be broken since 1.14.I copy-pasted the example presented in the In Structs section of the README to reproduce:
mix
project.user.ex
and copy-pasted theUser
module from the example into it.validate_user
and added the usage example into it.mix run -c
and interactively iniex
.Findings:
1.12.3-otp-24
works as expected.1.13.4-otp-24
works as expected.1.14.1-otp-24
throwsProtocol.UndefinedError
.The full error is:
I had a look through the 1.14 changelog. Not much jumped out, the only thing I noticed was the following:
I don't know if it's related. I'm still looking into that, and will update if I find out anything else.