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

Blokh
Hey guys, I’ve got a huge CSV ( around 10 GB ) that needs to be processed hourly Do you guys have any suggestions what is the best prac...
New
kszambelanczyk
Hello! Could someone please give me a help/sample code, how to delete a file from s3 using waffle/waffle_ecto from Phoenix app. I creat...
New
Onor.io
I have what I’ve heard referred to as a “lookup table” in my database. This is a way of assigning codes to common values. One common lo...
New
Trolleger
What approach to take when sending live updates to “random” users Hi! I have a question, I have a little chat app, and when I create a DM...
New
RemyXRenard
I’m seeing that a list inside a Kino.DataTable will be interpreted as a charlist, even if the Kino.configure() is set to charlists: :as_l...
New
matt-savvy
Anyone here using Honeybadger? My Honeybadger account is being overwhelmed with noise from some bots. Seeing a lot of Bandit.HTTPError...
New
samoloth
Hi, I’ve just set up an application with ash_authentication. There is only magic link strategy for now, so there is no confirmation add o...
New

Other Trending Topics Top

mudasobwa
I am happy to introduce the very α version of the new programming language compiled to BEAM. Welcome Cure. It has literally three kille...
New
garrison
Hobbes is a low-level distributed database for the Elixir programming language. Hobbes provides a simple, safe, and scalable storage lay...
New
mcass19
ExRatatui lets you cook up rich terminal UIs in Elixir, powered by Rust’s ratatui via Rustler NIFs. Build interactive terminal applicatio...
New
Damirados
Hello everyone. After busy few months I am happy to announce v0.1.0 of Emerge &amp; Solve. They are GUI (Emerge) and State management (S...
New
netoum
Corex is an accessible, unstyled UI component library for Phoenix that integrates Zag.js state machines using Vanilla JavaScript and Live...
New
wintermeyer
There are three potential reasons for members of this forum to have a look at https://vutuv.de You are tired or annoyed of LinkedIn. Yo...
New

We're in Beta

About us Mission Statement

Options

Thread Display Mode




Thread Preview

Skip Thread Previews