wintermeyer / elixir-phoenix-ash

An Elixir, Phoenix and Ash Beginner's Guide
https://elixir-phoenix-ash.com
Other
10 stars 7 forks source link

The result of running the string interpolation in the elixir guide is different from the example. #38

Closed j0urneyK closed 10 months ago

j0urneyK commented 10 months ago

Hello. Thank you for writing such a great guide.

I am currently working my way through the Elixir guide and I am not getting the same results when I run the example in String Interpolation locally.

In the first cell in the following image, I expected to get something like "The list is [72, 101, 108, 108, 111].", but I am getting something like "The list is Hello".

The second Cell expects to get a result like "The tuple is {72, 101, 108, 108, 108, 111}." when executed, but gets a Protocol.UndefinedError error.

livebook-result

I suspected it was an issue with the Livebook environment, so I tried running it through iex, but I'm getting the same results as when I ran it in Livebook.

iex-result

wintermeyer commented 10 months ago

Thank you for your bug report! I really appreciate it.

I removed the buggy example. It worked with older Elixir versions but doesn't any more.