I’ve spent a couple of hours trying to get everything together (VS, Ruby, Rustler, CMake, Erlang ) but having issues locating / installing Elixir.
I think 1.14 is recommended, not sure if any particular OTP version is important, but even after grabbing choco just to install a version , am not sure if the install is still running.
cancelled and retried elevated with choco install elixir --force
After several failed win-build-all attempts, I eventually sourced and built mix and added to machine path so build run from elevated prompt succeeded, and produced an .exe, which actually works … but I suspect I have gremlins!
tau start
still fails , even after running the command to generate the secret
(I’m not sure if it’s simply a versioning issue, and how to check app and OTP version, for elixir…
erl
returns
Erlang/OTP 26 [erts-14.1.1] [source] [64-bit] [smp:4:4] [ds:4:4:10] [async-threads:1] [jit:ns]
Eshell V14.1.1
RUBY_VERSION
from irb
returns "3.1.3"
prod
ERROR! Config provider Config.Reader failed with:
** (RuntimeError) environment variable SECRET_KEY_BASE is missing.
You can generate one by calling: mix phx.gen.secret
c:/dev/sonic-pi/app/server/beam/tau/_build/prod/rel/tau/releases/0.1.0/runtime.exs:119: (file)
(elixir 1.15.4) src/elixir.erl:376: anonymous fn/4 in :elixir.eval_external_handler/1
(stdlib 5.1.1) erl_eval.erl:750: :erl_eval.do_apply/7
(stdlib 5.1.1) erl_eval.erl:494: :erl_eval.expr/6
(stdlib 5.1.1) erl_eval.erl:136: :erl_eval.exprs/6
(elixir 1.15.4) src/elixir.erl:361: :elixir.eval_forms/4
(elixir 1.15.4) lib/module/parallel_checker.ex:112: Module.ParallelChecker.verify/1
(elixir 1.15.4) lib/code.ex:543: Code.validated_eval_string/3
Runtime terminating during boot ({#{message=><<101,110,118,105,114,111,110,109,101,110,116,32,118,97,114,105,97,98,108,101,32,83,69,67,82,69,84,95,75,69,89,95,66,65,83,69,32,105,115,32,109,105,115,115,105,110,103,46,13,10,89,111,117,32,99,97,110,32,103,101,110,101,114,97,116,101,32,111,110,101,32,98,121,32,99,97,108,108,105,110,103,58,32,109,105,120,32,112,104,120,46,103,101,110,46,115,101,99,114,101,116,13,10>>,'__struct__'=>'Elixir.RuntimeError','__exception__'=>true},[{elixir_eval,'__FILE__',1,[{file,"c:/dev/sonic-pi/app/server/beam/tau/_build/prod/rel/tau/releases/0.1.0/runtime.exs"},{line,119}]},{elixir,'-eval_external_handler/1-fun-2-',4,[{file,"src/elixir.erl"},{line,376},{error_info,#{module=>'Elixir.Exception'}}]},{erl_eval,do_apply,7,[{file,"erl_eval.erl"},{line,750}]},{erl_eval,expr,6,[{file,"erl_eval.erl"},{line,494}]},{erl_eval,exprs,6,[{file,"erl_eval.erl"},{line,136}]},{elixir,eval_forms,4,[{file,"src/elixir.erl"},{line,361}]},{'Elixir.Module.ParallelChecker',verify,1,[{file,"lib/module/parall
=ERROR REPORT==== 18-Nov-2023::19:14:05.252000 ===
Error in process <0.9.0> with exit value:
{#{message =>
<<"environment variable SECRET_KEY_BASE is missing.\r\nYou can generate one by calling: mix phx.gen.secret\r\n">>,
'__struct__' => 'Elixir.RuntimeError','__exception__' => true},
[{elixir_eval,'__FILE__',1,
[{file,"c:/dev/sonic-pi/app/server/beam/tau/_build/prod/rel/tau/releases/0.1.0/runtime.exs"},
{line,119}]},
{elixir,'-eval_external_handler/1-fun-2-',4,
[{file,"src/elixir.erl"},
{line,376},
{error_info,#{module => 'Elixir.Exception'}}]},
{erl_eval,do_apply,7,[{file,"erl_eval.erl"},{line,750}]},
{erl_eval,expr,6,[{file,"erl_eval.erl"},{line,494}]},
{erl_eval,exprs,6,[{file,"erl_eval.erl"},{line,136}]},
{elixir,eval_forms,4,[{file,"src/elixir.erl"},{line,361}]},
{'Elixir.Module.ParallelChecker',verify,1,
[{file,"lib/module/parallel_checker.ex"},
{line,112}]},
{'Elixir.Code',validated_eval_string,3,[{file,"lib/code.ex"},{line,543}]}]}
Crash dump is being written to: erl_crash.dump...done
Out of curiosity & for comparison I also tried tau start
in the SonicPi _build\...\tau\bin
folder in ProgramFiles
C:\Program Files\Sonic Pi\app\server\beam\tau\_build\prod\rel\tau\bin>
Not sure if this fails on Windows, due to path spaces, or if it’s not meant to be used here, or if not working for several other reasons!
Question one, to surmise, is what versions of things are needed?
and maybe question two, is how do I check if my secret is generated?
Can provide or check any crash logs etc if that helps?
THANKS!!!