konstantine

konstantine

Argon2_elixir on Windows 10: running out of ideas

Having used argon2_elixir on Windows 10 (now v1903) for over a year, with Visual Studio 2017, I am currently running out of ideas as to what has gone wrong and it will no longer compile. I have Elixir 1.9.2 with OTP 22.1 installed (downgrading to versions 1.8 and 21 respectively did not work). A PATH to nmake (x64/x64) is already in place (tested with “where nmake”), I have tried VC++ initialization with both “VsDevCmd.bat -arch=x64” and “vcvarsall.bat amd64”, to no avail. Downgrading the most recent version of argon2_elixir to 2.0.1 changed nothing, nor did upgrading to Visual Studio 2019.

The first screenshot shows the output when argon2_elixir is initially downloaded, before Makefile.auto.win is created (under deps\argon2_elixir), the second screenshot what happens subsequently. The Crashdump Viewer displays this:

The solution is probably much simpler than the things already attempted. Until I discover it, however, I can no longer work on my project. Replacing Argon2 with another algorithm is not an option I wish to consider. Please help – all ideas are welcome as my brain seems to have stopped generating any…

Marked As Solved

garazdawi

garazdawi

Erlang Core Team

If you do this:

:io.format('~ts',[[69,82,84,83,95,73,78,67,76,85,68,69,95,80,65,84,72,61,99,58,47,80,114,111,103,114,97,109,32,70,105,108,101,115,47,8226,32,80,114,111,103,114,97,109,109,105,110,103,47,69,114,108,97,110,103,47,101,114,116,115,45,49,48,46,53,47,105,110,99,108,117,100,101]])

It will print

ERTS_INCLUDE_PATH=c:/Program Files/• Programming/Erlang/erts-10.5/include

which shows that your Erlang is installed in a path with both a space and a unicode character. argon does not seem to like this at all.

Also Liked

garazdawi

garazdawi

Erlang Core Team

This is not a problem of argon, its a problem of properly escaping pathes.

I meant argon2_elixir, not argon.

It seems to me that this is an issue the argon2_elixir developer should be informed about (once I actually confirm what we all suspect), don’t you think?

Yes. They need to use ~ts instead of ~s when printing strings in a unicode environment.

garazdawi

garazdawi

Erlang Core Team

In Makefile.auto.win there will be the full exit reason.

When you exit Erlang/Elixir the full slogan is printed to stdout and then a truncated slogan is printed to stderr. Since argon seems to do a redirect to Makefile.auto.win of the output of stdout the error reason will be put in that file. Then when you the next time try to run that Makefile, you actually try to run the error which will not work.

So check what text is in the Makefile and fix whatever that problem is :slight_smile:

NobbZ

NobbZ

This is not a problem of argon, its a problem of properly escaping pathes.

It would probably work if the content were properly quoted:

ERTS_INCLUDE_PATH="C:/Program Files/• Programming/Erlang/erts-10.5/include"

Though I have no clue where things needed to be changed to properly quote… The easier way is in fact to move to a place where there are no spaces and no non-ascii characters in the location.

Where Next?

Popular in Questions Top

albydarned
Hello all! I am typing this post from my new MacBook Pro with the M1 chip. I’m loving it so far, and will probably use it as my daily dr...
New
skosch
To my knowledge, put_in, Map.update etc. all have the one limitation of not automatically creating intermediate keys when needed (for exa...
New
chrisalley
ExUnit now has describe blocks which is a welcome addition coming from RSpec. In the docs, it states that nested hierarchies of describe ...
New
gshaw
What is the idiomatic way of matching for not nil in Elixir? E.g., First way: defp halt_if_not_signed_in(conn, signed_in_account) when...
New
joeerl
Hello again - after a longish gap I’ve decided I really must dig into Elixir and see what’s been happening here - so I have a few questio...
New
JDanielMartinez
Hi! May someone helps me, please! I have two apps into an umbrella project: the first one is Database, which manages queries, and the se...
New
RisingFromAshes
I’ve read in another post that it may be possible with a router helper - but I couldn’t find an appropriate one, and tbh, I’m still just ...
New
script
If I have a string “1000 cfu/ml” . I want to remove the characters and / and space . So the string is like this "1000" What is the ...
New
vegabook
I’m brand new to Phoenix and I have stripped one of the demo applications to the bone. I just want to get an svg up on the screen. Here i...
New
lanycrost
Hi everyone! I need implement if…else if…else condition from my elixir code, and anymore of this control flow structures not work proper...
New

Other popular topics Top

Patoshizzle
After calling mix ecto.create I get this error: 17:00:32.162 [error] GenServer #PID<0.412.0> terminating ** (Postgrex.Error) FATAL...
New
Fl4m3Ph03n1x
About me? ( if you have nothing better to do than reading about some random guy in the internet :stuck_out_tongue: ) Hello all, this is ...
New
jerry
Good day to you all. I have been struggling to get a query involving like and ilike to work. Can anyone assist me on this, please? pro...
New
belgoros
I’m not a pro in using Regex and can’t figure out why the following behaviour happens, especially if we take into account the difference ...
New
AngeloChecked
What learn first? Rust or Elixir Hi Elixir community! I’m here because i want learn a new language. I’m a junior developer and mainly i ...
New
joeerl
Hello again - after a longish gap I’ve decided I really must dig into Elixir and see what’s been happening here - so I have a few questio...
New
KronicDeth
Elixir plugin for JetBrain’s IntelliJ Platform (including Rubymine) This is a plugin that adds support for Elixir to JetBrains IntelliJ...
289 36352 110
New
rms.mrcs
Hi, I need to transform a list of numbers into a map where the keys are the indexes and the values are the original values of the list. ...
New
Brian
What is the proper way to load a module from a file in to IEX? In the python world, doing something like this pretty standard: from ....
New
svb
Hi! Currently I want to submit a form by pressing the Enter key. However, since my input field is of type “textarea” this is just adds a...
New

Latest on Elixir Forum

We're in Beta

About us Mission Statement