Skip to content

Instantly share code, notes, and snippets.

@codec-abc
Created February 6, 2018 16:03
Show Gist options
  • Select an option

  • Save codec-abc/f04928bd0a0a3e41067b6fdffb0cd402 to your computer and use it in GitHub Desktop.

Select an option

Save codec-abc/f04928bd0a0a3e41067b6fdffb0cd402 to your computer and use it in GitHub Desktop.
hmird@hmird-VirtualBox:~/Dev/elchemy2$ elchemy new a_project
* creating README.md
* creating .formatter.exs
* creating .gitignore
* creating mix.exs
* creating config
* creating config/config.exs
* creating lib
* creating lib/a_project.ex
* creating test
* creating test/test_helper.exs
* creating test/a_project_test.exs
Your Mix project was created successfully.
You can use "mix" to compile it, test it, and more:
cd a_project
mix test
Run "mix help" for more commands.
Found existing entry: /home/hmird/.mix/archives/elchemy-0.6.3
Are you sure you want to replace it with "https://github.com/wende/elchemy/releases/download/0.6.3/elchemy-0.6.3.ez"? [Yn] Y
* creating /home/hmird/.mix/archives/elchemy-0.6.3
Elchemy 0.6.3 initialised. Make sure to add:
|> Code.eval_file("elchemy.exs").init
to your mix.exs file as the last line of the project() function.
This pipes the project keyword list to the elchemy init function to configure some additional values.
Then run mix test to check if everything went fine
hmird@hmird-VirtualBox:~/Dev/elchemy2$ cd a_project/
hmird@hmird-VirtualBox:~/Dev/elchemy2/a_project$ code .
hmird@hmird-VirtualBox:~/Dev/elchemy2/a_project$ mix test
warning: redefining module ElchemyInit (current version defined in memory)
elchemy.exs:1
-- Downloading Elchemy deps --
Resolving packages...
▶ Getting updates for: elm-lang/core
▶ Getting updates for: wende/elchemy-core
Solving dependencies...
● elm-lang/core - https://github.com/elm-lang/core (5.1.1)
● wende/elchemy-core - https://github.com/wende/elchemy-core (0.6.3)
Packages configured successfully!
-- Copying Elixir native files --
-- Compiling Elm files --
find: I cannot figure out how to interpret ‘Mon Apr 10 00:00:00 CET 1995’ as a date or time
find: I cannot figure out how to interpret ‘Mon Apr 10 00:00:00 CET 1995’ as a date or time
-- Linking files --
-- Recompiling dependencies for elchemy --
warning: redefining module ElchemyInit (current version defined in memory)
elchemy.exs:1
==> elchemy
Compiling 6 files (.ex)
== Compilation error in file elm/Elchemy/Native/NativeDict.ex ==
** (CompileError) elm/Elchemy/Native/NativeDict.ex:2: module Elchemy.XBasics is not loaded and could not be found
expanding macro: Elchemy.import_std/0
elm/Elchemy/Native/NativeDict.ex:2: Native.Dict (module)
expanding macro: Elchemy.__using__/1
elm/Elchemy/Native/NativeDict.ex:2: Native.Dict (module)
could not compile dependency :elchemy, "mix compile" failed. You can recompile this dependency with "mix deps.compile elchemy", update it with "mix deps.update elchemy" or clean it with "mix deps.clean elchemy"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment