Re: [elixir-core:11364] Format inspect output as valid elixir

2023-05-09 Thread José Valim
There is a "structs: false" option but I am not sure if that is supported when diffing. But also keep in mind there are structures that represent memory data (such as PIDs and REFs) and those can never really be copy and pasted. And sometimes, like above, it shows in a special style because it is

[elixir-core:11364] Format inspect output as valid elixir

2023-05-09 Thread Adam Kirk
I do this ALL the time, but heres a specific example: When I write a test, I do something like assert [] = Repo.all(Thing) it fails, I copy what the match shows into my test and modify it to what I need. except that it outputs stuff like: ``` __meta__: #Ecto.Schema.Metadata<:loaded,