rodwatkins

rodwatkins

Hi all,

I just published a post on Medium on developing Elixir/Phoenix on Windows 10. I thought it might be useful to others.

Rod

Showing Posts 1 to 10

OvermindDL1

OvermindDL1

I’ve been dev’ing with Elixir on Win10 for a few months now but still not setup Chocolatey or the VS stuff (I use mingw for things here), convenient to get that installed though for if I run into any native code. Thanks for the commands. :slight_smile:

OvermindDL1

OvermindDL1

Found some bugs, a lot of your quotes in code blocks are not quotes but something else (“), they should be ("), will make things fail pretty bad.

EDIT1: For example, the .iex.exs block should probably be like:

Application.put_env(:elixir, :ansi_enabled, true)
IEx.configure(
  colors: [
    enabled: true,
    eval_result: [:cyan, :bright]
  ],
  default_prompt: [
    "\e[G", # ANSI CHA, move cursor to column 1
    :darkblue,
    "%prefix", # IEx prompt variable
    ">", # plain string
    :reset
  ] |> IO.ANSI.format |> IO.chardata_to_string
)

EDIT2: And the above code spits out:

iex(1)> Error while evaluating: c:/Users/<user>/.iex.exs
iex(1)> ** (ArgumentError) invalid ANSI sequence specification: :darkblue
iex(1)>     (elixir) lib/io/ansi.ex:167: IO.ANSI.format_sequence/1
    (elixir) lib/io/ansi.ex:218: IO.ANSI.do_format/5

EDIT3: And indeed :darkblue is invalid: elixir/lib/elixir/lib/io/ansi.ex at v1.3.2 · elixir-lang/elixir · GitHub

EDIT4: And changing it to :blue appears to make no change to the iex terminal, still uncolored and unformatted, hmm. I’ve never messed with the iex terminal, only some default imports and such…

rodwatkins

rodwatkins OP

Thanks. Pasted the wrong code sample will fix.

OvermindDL1

OvermindDL1

Ahh, awesome!

EDIT1: Ahh the iex prompt does not change until any input is put in, ‘then’ it is updated, seems like a bug in iex. I like the color distinctions. :slight_smile:

rodwatkins

rodwatkins OP

Yah, it’s seems to be a bug. I meant to leave that part out as its not quite working. Maybe I’ll put it back and add a warning.

rodwatkins

rodwatkins OP

Fixed the quotes now. Copy and paste error.
Thanks for catching those. Gave you credit in the article.

riverrun

riverrun

Hi, I’m the maintainer of Comeonin, and it’s great to see posts like this. It’s good to have more detailed information for Windows users.

OvermindDL1

OvermindDL1

Also another bug (I think with iex, not your article, but probably want to mention this too), if you spool up iex with --sname or --name then the prompt will not be colored (although output will). I was not able to find a quick way to resolve this issue, but like stated, seems like an iex bug. :slight_smile:

CharlesO

CharlesO

I seem to have posted this reply under the wrong post, it was meant for you @rodwatkins

rodwatkins

rodwatkins OP

Let me look into it. I am not at my machine at the moment, but I’ll see if I can get it to compile when I am.

Cheers
rod

Where Next? Top

Trending in Questions Top

stjefim
Hello! Suppose you are building workflow (order / task / payment) processing system with the following requirements: Each workflow con...
New
water
I’m aware of 2 such projects, are there others? git: GitHub - team-alembic/realworld: A fullstack Phoenix LiveView application with back...
New
itzmidinesh
Hi all, I’m working on a Phoenix project where I need to make external HTTP requests and I’m trying to choose between Req and HTTPoison....
New
peck
Hi everyone. My team and I have been working on a fairly modest app based around video streaming and chat, but we’ve landed a customer t...
New
leoschweizer
Hi, we run different LLM models across a cluster, with each node loading a configurable subset. Model-specific queues let nodes consume ...
New
csmr
Hi all, I’m new here and would like to hear peoples views on my Elixir/Phoenix based game-engine! :smiley: Mutonex gamedesign was finish...
New
Stef-Verniers
Hello I’ve been coding in Elixir for almost two years now because of my current job where we implemented Elixir in our application. But ...
New

Other Trending Topics Top

dominicletz
Hey there, I haven’t seen a list of useful Elixir specific skills for the popular AI tools yet so I’m starting one here with my first. ...
New
mudasobwa
I fully migrated to my own harness from Anthropic/Gemini and I think it’s time to share it. Welcome DSH, the DeepSeek Harness, fully writ...
New
KristerV
Hey. Is there anyone here who creates agents in their apps? Not talking about using agents, but creating them. I’m finding it pretty diff...
New
jimsynz
Beam Bots (or just BB for short) is a framework for building fault-tolerant robotics applications in Elixir using familiar OTP patterns. ...
New
webofbits
With AI doing more of the implementation work, I’ve been wondering how much coding I should deliberately keep doing myself. My main conc...
#ai
New
OndrejValenta
(I just needed to vent somewhere and LinkedIn is full of hope, or hype, I’m not sure which exactly) AI dream has many faces, but general...
New

We're in Beta

About us Mission Statement

Options

Thread Display Mode




Thread Preview

Skip Thread Previews