version-fox / vfox-elixir

Elixir vfox plugin. Use the vfox to manage multiple Elixir versions in Linux/Darwin MacOS/Windows. all platform~
Apache License 2.0
8 stars 1 forks source link

feat: Support install in windows #4

Closed yeshan333 closed 4 months ago

yeshan333 commented 5 months ago

windows setup problem:

Error! Failed to load module 'elixir' because it cannot be found. Make sure that the module name is correct and that its .beam file is in the code path.

Runtime terminating during boot ({undef,[{init,start_it,1,[{file,"init.erl"},{line,1216}]},{init,start_em,1,[{file,"init.erl"},{line,1182}]},{init,do_boot,3,[{file,"init.erl"},{line,871}]}]})

Crash dump is being written to: erl_crash.dump...done

mardukbp commented 4 months ago

I was able to reproduce the error renaming the directory C:\Program Files\Elixir\lib\elixir\ebin to C:\Program Files\Elixir\lib\elixir\bin. It seems that erl.exe cannot find this directory.

yeshan333 commented 4 months ago

The problem is caused by the implementation of vfox, which solved this problem in version 0.5.3:https://github.com/version-fox/vfox/releases/tag/v0.5.3

fix: link to the sdk installation directory instead of the bin directory in https://github.com/version-fox/vfox/commit/d3f42def966185671e136e07872d95f81d0eb1a4