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

fix elixir mix #88

Merged
merged 1 commit into from
Jan 15, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions wandbox/__elixir__.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,14 +52,15 @@ def setup_runner(self, args, enable_options, disable_options, runner):
#!/bin/bash
export LC_ALL=en_US.UTF-8
export PATH=/opt/wandbox/{}/bin:$PATH
ERLANG=`cat /opt/wandbox/{}/bin/run-elixir.sh | grep -oe 'erlang-[0-9\\.]*'`
ELIXIR_PATH=$(find /opt/wandbox -name '{}*' -maxdepth 1)
export PATH=$ELIXIR_PATH/bin:$PATH
ERLANG=$(echo $ELIXIR_PATH | grep -oe 'erlang-[0-9\\.]*')
export PATH=/opt/wandbox/$ERLANG/bin:$PATH
{} || echo Unsolved: \"erts_mmap: Failed to create super carrier of size 1024 MB\", Please tell me the solution.
'''
command = 'mix ' + ' '.join(args.sources + args.compile_options)
code = StringIO(shell.format(args.compiler, args.compiler, command))
code = StringIO(shell.format(args.compiler, command))
sys.stdin = code

args.sources[:] = ['-']
Expand Down