Higashimori

Higashimori

Since the book’s forum is down, posting a question here.

I’m on the Dungeon Crawl app part, and I’m getting stuck near the beginning when I try to run iex -S mix. Page 111 of 160 in my version of the book, Creating the Character with Structs.

I receive this error in Visual Studio Code:

"PS D:\code\Functional_Programming_with_Elixir_Book\dungeon_crawl> iex -S MixInvoke-Expression : A parameter cannot be found that matches parameter name ‘S’.
At line:1 char:5

  • iex -S Mix
  • ~~
    • CategoryInfo : InvalidArgument: (:slight_smile: [Invoke-Expression], ParameterBindingException
    • FullyQualifiedErrorId : NamedParameterNotFound,Microsoft.PowerShell.Commands.InvokeExpressionCommand"

I’ve tried googling and that hasn’t yielded anything I’ve found helpful so far. Any help would be appreciated.

0
Post #21
NobbZ

NobbZ

Please do not use Powershell, it has a built-in function iex, which shadows the iex of elixir.

1
Post #22
Higashimori

Higashimori

What would you suggest in lieu of Powershell? I’m pretty new to all of this.

0
Post #23
NobbZ

NobbZ

Good old cmd.exe. Or Linux :wink:

2
Post #24
Higashimori

Higashimori

Okay, I ran cmd.exe in the Powershell terminal and that switched the terminal to cmd.

Trying ‘iex -S mix’ worked as intended after that. Thanks!

1
Post #25
NobbZ

NobbZ

You can start it directly, just do win+R and then type cmd.exe and Enter.

2
Post #26
mstibbard

mstibbard

Just finished this book. It was a fantastic introduction to functional programming and the elixir syntax for an absolute beginner. If you have prior experience programming but not with functional programming then I’d still highly recommend this as a starting point.

7
Post #27
tomkonidas

tomkonidas

Is the Discount still on? I get a message saying it is expired when I enter it at checkout

2
Post #28
AstonJ

AstonJ

Hi Tom, we have a new coupon coming soon - can you hold off a few weeks? :smiley:

2
Post #29
tomkonidas

tomkonidas

Yeah no problem! Thanks for the quick reply. I’ll keep my eye out for when it comes out :slight_smile:

2
Post #30
— All posts loaded —