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.

konstantine

konstantine

Thanks Lukas and Norbert, the Elixir community displays its brilliance again! The sequence of events indicates that the unicode character must indeed be the root cause of this problem (the spaces had been there before I made a set of changes). 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?

Where Next?

Popular in Questions Top

shahryarjb
Hello, I get Persian date from my client and convert it to normal calendar like this: def jalali_string_to_miladi_english_number(persi...
New
lessless
I believe there are people here who are dealing with CSV files import on the daily basis, and since Excel is a really popular tool there ...
New
joaquinalcerro
Hi there, I am working with Ecto-Postgresql and I need to call all of the records from a specific table but the table has 40,000 record...
New
Jim
As a follow up to my earlier question: I have the code compiling and running but not getting a successful login from the rest server. ...
New
lastday4you
I wanted to check elixir version in phoenix because i found that my elixir is 1.5 but when i use Enum.chunk_by it said the function is un...
New
vac
Hi, I'm quite new in Elixir and I'm trying to format a string to a PEM format. I have the certificate value like MIIDBTCCAe2...... and ...
New
fayddelight
I tried installing elixir 1.11.2 erlang 23.3.4 via asdf in my zsh shell. Enabled the versions locally and globally. When I list them ...
New
stefanluptak
Hello everybody, usually, I use a 29" ultra-wide monitor for VSCode which can easily accomodate explorer (files panel) + file with code ...
New
chewm
Hi guys, nice to meet you to the whole forum, I’m new here, I’m trying to configure visual studio code for elixir, right now the intellis...
New
sabri
Can someone explain the settings of pool_size of Ecto in config file? and what is the recommend size? Thanks
New

Other popular topics Top

_russellb
I want to try my hand at web scraping. What tools/libraries do I need to use. I’m hoping to turn this into something professional so don’...
New
polypush135
As many of you may have realized by now (sorry for all the posts here) I’ve been working on a db problem where I’m trying to aggregate a ...
New
lk-geimfari
What is most correct way to open, read and parse JSON file with poison? For example if we have example.json file in root of some projec...
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
stefanchrobot
What’s the safe way to decode a JSON string into a struct? I want to avoid calling String.to_atom. Jason.decode can give me a map with st...
New
qwerescape
Is there a way to get the call stack or stack trace at any point in the code? Not from exceptions, but an expression that returns how the...
New
vonH
When I run the Plug and I recompile I wind up having to use Ctrl C to quit iex and start again. Witht the help of rlwrap I can use the cu...
New
johnnyicon
Hi all, I've just started learning Elixir and Phoenix Framework, so please pardon my n00bness at this stage. I'm trying to use Postg...
New
Qqwy
Original source of discussion: This topic on the Pragmatic Programmers' Functional Web Development with Elixir, OTP, and Phoenix forum. ...
New
AstonJ
by Lance Halvorsen Elixir and Phoenix are generating tremendous excitement as an unbeatable platform for building modern web application...
460 27162 124
New

We're in Beta

About us Mission Statement