sourcevault
Hi !
I installed Elixir on “Windows Subsystem for Linux”.
I am getting a weird error that I am unable to troubleshoot.
I ran the mix tutorial on creating a minimal module “kv”.
mix compile
Unchecked dependencies for environment dev:
* dep_from_git (https://github.com/elixir-lang/my_dep.git)
the dependency is not available, run "mix deps.get"
* dep_from_hexpm (Hex package)
the dependency is not available, run "mix deps.get"
** (Mix) Can't continue due to errors on dependencies
I then ran mix deps.get as suggested.
mix deps.get
* Updating dep_from_git (https://github.com/elixir-lang/my_dep.git)
fatal: could not read Username for 'https://github.com': Inappropriate ioctl for device
** (Mix) Command "git --git-dir=.git fetch --force --quiet --progress" failed
I am kind of stuck what to do ![]()
Cheers !
Trending in Questions
I’m working on a project that simulates the bumbl example in the programming phoenix book. It acts almost like an email client. We have a...
New
Hello,
I know there is an approach for handling lists that allows for optimized traversal, but I can’t recall the specific method (somet...
New
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
So my question is quite simple and i have found no conclusive answer on forum, google or AI.
Should we use :erlang.float for Integer to ...
New
Documentation
While reading the Scoped Routes section, I noticed that the documentation currently refers to a problem without explainin...
New
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
If a change or preparation module uses Ash.Changeset.get_argument/2 or Ash.Query.get_argument/2 (or any of the other get_argument functio...
New
Other Trending Topics
I am happy to introduce the very α version of the new programming language compiled to BEAM.
Welcome Cure.
It has literally three kille...
New
Hi there! We created Gust: A task orchestrator inspired by Airflow.
For those who have never heard about Aiflow, it’s a Python-based wor...
New
Beam Bots (or just BB for short) is a framework for building fault-tolerant robotics applications in Elixir using familiar OTP patterns. ...
New
Xamal is a deployment tool for Elixir apps that deploys native releases to bare metal servers over SSH. It’s a port of GitHub - basecamp/...
New
Corex is an accessible, unstyled UI component library for Phoenix that integrates Zag.js state machines using Vanilla JavaScript and Live...
New
With AI doing more of the implementation work, I’ve been wondering how much coding I should deliberately keep doing myself.
My main conc...
New
Categories:
Sub Categories:
Forums
Popular Tags
- #ecto
- #liveview
- #troubleshooting
- #learning-elixir
- #library
- #deployment
- #erlang
- #testing
- #genserver
- #mix
- #absinthe
- #remote-other
- #otp
- #plug
- #how-to-question
- #macros
- #postgres
- #elixirconf
- #channels
- #exunit
- #discussion
- #code-sync
- #podcasts
- #javascript
- #onsite
- #dialyzer
- #docker
- #authentication
- #umbrella
- #full-time-contract
- #podcasts-by-brainlid
- #ecto-query
- #elixirconf-us
- #ai
- #blog-post
- #elixir-ls
- #phoenix_html
- #iex
- #graphql
- #genstage
- #websockets
- #supervisor
- #advent-of-code
- #distillery
- #processes
- #api
- #forms
- #hex
- #security
- #metaprogramming











Showing Posts 1 to 10- Show Best Posts
- Show All (oldest first)
- Show All (newest first)
leifericf
Hmmm. Could you share what the contents of your
mix.exslooks like?If you’re following this tutorial, it should look like this:
Notice that the two lines inside of
depsshould be commented out (starting with a#):It seems like maybe the two lines in this function might not be commented out in your case?
That’s a more-or-less wild guess and I’m not sure if that’s the issue.
sourcevault
Hi @leifericf !
Thank you for the quick reply.
Yes you are right ! I uncommented them, is that not possible ?
I uncommented them because I wanted to add some other modules that I wanted to use from
hex.pm.This is what is looks like verbatim :
NobbZ
Those 2 are just example entries. They do not actually exist on GitHub nor hex.
sourcevault
@NobbZ thanks ! but the error doen’t seem to be :
Package not foundWhy is it trying to access github using username and password ? and why is the
ioctlmodule not correctly configured for Ubuntu ?I am sorry I just quite curious regarding how things are setup.
Do you know how to install hex ? I tried looking at the docs page :
It it
apt-get install hex?Or is
hexonly partmix?Cheers !
sourcevault
Hi !
I think I answered some of my questions.
so is
hexonly available throughmix?NobbZ
It would probably tell you for the
dep_from_hexif it came thus far.But for the git ressource it can’t find it publicly, so it assumes it were a repository only available behind a user login.
I’m not sure about the ioctl thing, but afaik it is some kernel tool providing at least parts of the
/sysfilesystem, not sure how the WSL plays along with it.sourcevault
if instead of
https://i gave it a ssh address I am assuming it wouldn’t have complained ?Anyway thx for all the help
cheers !
NobbZ
It would have tried to use SSH instead then, but I’m not sure if or how the error message would have been different then.
But usually one does not use SSH for git deps, at least not for publicly available repositories, as you would lock everyone out that doesn’t own an account on the source.
NobbZ
Hex itself is only a platform that provides package hosting. A client to use this platform is available as a plugin for mix and rebar3. One can also download packages through the website manually.
As the API is public (but not necessarily documented) everyone could in theory, build his own plugin for other build tools in the BEAM ecosystem or even for buildtools outside of it.
sourcevault
@NobbZ
What build system do you prefer ?
As far as I can see
mixis the closest tonpm- which I have found to consistently be really good.