Comments (8)
This does not seem to be an issue of rebar_mix
.
Rather something to improve in rebar3 (maybe?)
so I created erlang/rebar3#2518
from rebar_mix.
Hello @Supersonido / @tsloughter , now i've been getting another crash while releasing...
Error: function_clause
[{filename,join1,
[<<"1.2.2">>,[],
"-nosaj/bil/ppaym/ler/ppaym/dliub_/ppaym/smargorP/YYYYYY/sresU/",
unix],
[{file,"filename.erl"},{line,472}]},
{filename,join,1,[{file,"filename.erl"},{line,433}]},
{rlx_assemble,copy_app,4,
[{file,"/src/_build/default/lib/relx/src/rlx_assemble.erl"},
{line,94}]},
{rlx_assemble,'-copy_app_directories_to_output/3-lc$^0/1-1-',4,
[{file,"/src/_build/default/lib/relx/src/rlx_assemble.erl"},
{line,79}]},
{rlx_assemble,copy_app_directories_to_output,3,
[{file,"/src/_build/default/lib/relx/src/rlx_assemble.erl"},
{line,79}]},
{rlx_assemble,do,2,
[{file,"/src/_build/default/lib/relx/src/rlx_assemble.erl"},
{line,18}]},
{relx,build_release_,3,
[{file,"/src/_build/default/lib/relx/src/relx.erl"},{line,171}]},
{relx,build_release,3,
[{file,"/src/_build/default/lib/relx/src/relx.erl"},{line,77}]},
{rebar_relx,do,2,[{file,"rebar_relx.erl"},{line,67}]},
{rebar_core,do,2,[{file,"rebar_core.erl"},{line,155}]},
{rebar_prv_do,do_task,5,[{file,"rebar_prv_do.erl"},{line,75}]},
{rebar_core,do,2,[{file,"rebar_core.erl"},{line,155}]},
{rebar3,run_aux,2,[{file,"rebar3.erl"},{line,181}]},
{rebar3,main,1,[{file,"rebar3.erl"},{line,66}]},
{escript,run,2,[{file,"escript.erl"},{line,758}]},
{escript,start,1,[{file,"escript.erl"},{line,277}]},
{init,start_em,1,[]},
{init,do_boot,3,[]}]
Notice the name, which has been reversed ?
"-nosaj/bil/ppaym/ler/ppaym/dliub_/ppaym/smargorP/YYYYYY/sresU/"
What could be happening here ?
Regards
from rebar_mix.
it's trying to add a version to the end of the filepath and failing because it's a binary instead of a list. I can't recall if that was patched in rebar3 (try a newer version) or judged to be a problem with the dep, or just not addressed yet
from rebar_mix.
We're checking this on rebar3 3.14.3
.
from rebar_mix.
Can you check if the jason.app file has a binary for vsn.
from rebar_mix.
@tsloughter Hmmm it's a string.
➜ cat _build/myapp/lib/jason/ebin/jason.app
{application,jason,
[{applications,[kernel,stdlib,elixir]},
{description,"A blazing fast JSON parser and generator in pure Elixir.\n"},
{modules,['Elixir.Jason','Elixir.Jason.Codegen',
'Elixir.Jason.DecodeError','Elixir.Jason.Decoder',
'Elixir.Jason.Decoder.Unescape','Elixir.Jason.Encode',
'Elixir.Jason.EncodeError','Elixir.Jason.Encoder',
'Elixir.Jason.Encoder.Any',
'Elixir.Jason.Encoder.Atom',
'Elixir.Jason.Encoder.BitString',
'Elixir.Jason.Encoder.Date',
'Elixir.Jason.Encoder.DateTime',
'Elixir.Jason.Encoder.Decimal',
'Elixir.Jason.Encoder.Float',
'Elixir.Jason.Encoder.Integer',
'Elixir.Jason.Encoder.Jason.Fragment',
'Elixir.Jason.Encoder.List',
'Elixir.Jason.Encoder.Map',
'Elixir.Jason.Encoder.NaiveDateTime',
'Elixir.Jason.Encoder.Time','Elixir.Jason.Formatter',
'Elixir.Jason.Fragment','Elixir.Jason.Helpers']},
{registered,[]},
{vsn,"1.2.2"}]}.
The vsn
s for apps are usually UTF-8 strings i believe !
from rebar_mix.
the vsn suffix is appended correctly if we revert this commit:
erlang/rebar3@80671df
from rebar_mix.
and the workaround is to run rebar3 as profile do compile,release
instead of rebar3 as profile release
from rebar_mix.
Related Issues (18)
- "rebar3 shell" fails with an error
- ... has invalid version ~> Version_1 or ~> Version_2 HOT 11
- Missing hook find_elixir_libs HOT 5
- Could not compile phoenix based application HOT 3
- rebar3 compile crash as init is expecting {error, string()} HOT 3
- Dependency in _checkouts directory does not work HOT 2
- Handling optional dependencies
- Plugin doesn't work with upcoming Elixir v1.10 HOT 2
- compile fails with {:error, :no_beam_info} with elixir 1.10 HOT 13
- not downloading deps dependencies HOT 4
- Can we remove features that rebar3 and hex_core already cover? HOT 2
- Plugin fails if Elixir lib dir contains spaces. HOT 3
- consolidate_protocols seems to be gone from 0.5 HOT 20
- Why is `deps.get` called? HOT 1
- rebar_mix_hex needed?
- [bug] rebar_mix can not load eex, iex ...
- Won't work with ` rebar3_path_deps` HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rebar_mix.