coffee_rotor icon indicating copy to clipboard operation
coffee_rotor copied to clipboard

Unable to compile erlang_js on osx el_capitan

Open lulu-2021 opened this issue 10 years ago • 2 comments

Hi there - I'd love to use rotor and coffee_rotor to compile coffeescript to js in my phoenix project. However when I tried to compile my project after doing mix deps.get with the rotor config - setup.. it attempted to pull down and compile erlang_js since this is a dependancy.. this failed. I then went to pull the latest from github on erlang_js and compile it and this broke as well.. :(

The important parts of the error are:

Compiled src/erlang_js.erl Compiled src/js.erl src/js_benchmark.erl:41: erlang:now/0: Deprecated BIF. See the "Time and Time Correction in Erlang" chapter of the ERTS User's Guide for more information. src/js_benchmark.erl:43: erlang:now/0: Deprecated BIF. See the "Time and Time Correction in Erlang" chapter of the ERTS User's Guide for more information. ERROR: compile failed while processing /Users/steveforkin/Work/elixir-workbench/erlang_js: rebar_abort make: *** [compile] Error 1

lulu-2021 avatar Nov 05 '15 07:11 lulu-2021

@netflakes It's been so for a while. Looks like Basho hasn't updated erlang_js to work with latest versions of erlang. The time deprecation is from Erlang 18 changes.

HashNuke avatar Nov 05 '15 11:11 HashNuke

Thanks @HashNuke, I have raised a ticket on the Erlang_JS project site as well.. would be great to see it fixed.

lulu-2021 avatar Nov 06 '15 22:11 lulu-2021