tallakt

tallakt

I am using Elixir for a simple script that I wanted to use as a single file script rather than a full mix project. My simplified script looks like this:

Mix.install([ 
  :req, 
  {:toml, "~> 0.7.0"},
  {:elixir_uuid, "~> 1.2"}
])

IO.puts("?")

If I delete the Mix.install parts the script runs to completion. On my Mac the script runs fine without deleting anything. On windows though, the script just ends without doing anything of interest.

Is Windows support just too poor or am I doing something wrong here?

First 4 of 4 Posts Switch mode

cmo

cmo

I’ve had no problems with them.

How are you running it?

tallakt

tallakt OP

I am doing

C:\Users\tallakt>elixir test.exs
==> elixir_uuid
Compiling 1 file (.ex)
warning: use Bitwise is deprecated. import Bitwise instead
  lib/uuid.ex:2: UUID (module)


C:\Users\tallakt>elixir --version
Erlang/OTP 26 [erts-14.0.2] [source] [64-bit] [smp:4:4] [ds:4:4:10] [async-threads:1] [jit:ns]

Elixir 1.15.4 (compiled with Erlang/OTP 26)

C:\Users\tallakt>

Could it be that I am running on Arm Windows (using Mac and Parallels)?

I also see now I am getting a erl_crash_dump startig with the lines

=erl_crash_dump:0.5
Mon Oct 23 22:29:33 2023
Slogan: Runtime terminating during boot ({badarg,[{ets,lookup_element,[elixir_modules,Elixir.MIME,2],[{_}]},{elixir_module,data_tables,1,[{_},{_}]},{Elixir.Kernel.Typespec,deftypespec,6,[{_},{_}]},{Elixir.Inspect.Integer,__impl__,1,[]},{Elixir.Inspect,impl_for,1,[{_},{_}]},{Elixir.Inspect,inspect,2,[{_},{_}]},{Elixir.Inspect.Algebra,container_each,6,[{_},{_}]},{Elixir.Inspect.Algebra,container_doc,6,[{_},{_}]}]})
System version: Erlang/OTP 26 [erts-14.0.2] [source] [64-bit] [smp:4:4] [ds:4:4:10] [async-threads:1] [jit:ns]
Taints: asn1rt_nif,crypto
Atoms: 26864
Calling Thread: scheduler:1

And it installs perfectly on an Intel machine

D4no0

D4no0

How are you installing OTP on your arm windows? I would suggest building it from source, as this seems to be a problem related to some nifs.

tallakt

tallakt OP

I had a look. It looks like an option, but it could not be feasible in our organization due to the complexities involved, and to support this single script

— All posts loaded —

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
jonnycharles
I’m in search of an Elixir library that offers PDF generation capabilities similar to Ruby’s Prawn. While there have been discussions abo...
New
spammy
I’m looking to build a personal workflow to quickly deploy web applications written in elixir/phoenix, for local consumption (ie not on t...
New
dli
Before I dive in myself, did anyone successfully sprinkle Hologram into their existing LiveView app? Looking for hints regarding: Addi...
New
bottlenecked
Hi all, I wanted to ask how the community is dealing with post-release steps. Today we have Ecto migrations, which make sure that the db...
New
roeland
Kia ora, We have been using elixir-google-api to connect to Google Drive. However, with the updates to Tesla due to CVEs this is now bro...
New
rahultumpala
Hello, I have an Elixir backend that implements a custom protocol over TCP. I want to load test the backend and assess the performance o...
New

Other Trending Topics Top

JesseHerrick
Hey, I’m Jesse and I’m the main contributor behind Dexter, a full-featured, lightning-fast Elixir LSP optimized for large codebases. It s...
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
Damirados
Hello everyone. After busy few months I am happy to announce v0.1.0 of Emerge & 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
ausimian
Emily is an Elixir library that runs Nx computations on Apple’s MLX. Install it as the default Nx backend and Nx, defn, Axon, Nx.Serving,...
New
juhalehtonen
There has been a thread to discuss the Stack Overflow Developer Survey on this forum every year since 2018, so here’s yet another one for...
New

We're in Beta

About us Mission Statement