Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to use Witchcraft, iex (1.8.1) #71

Open
doctorcorral opened this issue Apr 8, 2019 · 4 comments
Open

Unable to use Witchcraft, iex (1.8.1) #71

doctorcorral opened this issue Apr 8, 2019 · 4 comments

Comments

@doctorcorral
Copy link

Hello 👋
I have an issue when trying to get into an interactive session with {:witchcraft, "~> 1.0"}
Interactive Elixir (1.8.1)
Erlang/OTP 21 [erts-10.2.5]

See recording

It gets stuck after Generated witchcraft app and my computer starts to behave so badly.

Note. Never used Witchcraft before

@toraritte
Copy link
Contributor

toraritte commented Apr 9, 2019

A couple questions:

  • What machine/OS do you use?
  • Do other apps compile ok with iex -S mix?
  • Did you try rebooting your computer? (This may sound stupid, but I mostly suspend my laptop, and only restart it once a couple months, or when needed, and sometimes this did solve issues.)
  • Do you have a repo online that could be cloned to try it out?

@doctorcorral
Copy link
Author

Hi, thanks for the answer

  • macOS 10.14.2
  • Everything else works like a charm
  • I did many times, just in case, but did't make any difference
  • Y don't, I have nothing, just created a new project, added witchcraft to deps as described in the documentation.

@toraritte
Copy link
Contributor

Were you able to solve this? Sorry for the couple months of delay.

@Tuxified
Copy link

Tuxified commented Aug 17, 2020

I think I have an idea: your own application has the same name as the package you are using. Normally Elixir would fail to compile (as it tries to compile the same module twice), however IEx allows to recompile and reload previously compiled modules (for new versions) hence you don't get the same behaviour. If you pay attention to the last part, you'll see it says:

Generated witchcraft app ==> witchcraft
Compiling 1 file (.ex)
warning: redefining module Witchcraft (current version loaded
from _build/dev/lib/witchcraft/ebin/Elixir.Witchcraft.beam)
lib/witchcraft.ex:1

warning: redefining module Witchcraft

Solution: rename your project.

I'm almost 100% certain about this, but feel free to let me know if I was wrong ;)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants