f34nk / modest_ex Goto Github PK
View Code? Open in Web Editor NEWElixir library to do pipeable transformations on html strings (with CSS selectors)
License: GNU Lesser General Public License v2.1
Elixir library to do pipeable transformations on html strings (with CSS selectors)
License: GNU Lesser General Public License v2.1
Running mix test
succeeds.
Running mix test.target
all tests fail.
Test ModestEx target from /Users/frank/dev/modest_ex
Test modest_worker...
Running tests...
0% tests passed, 17 tests failed out of 17
Total Test time (real) = 0.27 sec
The following tests FAILED:
1 - bench_test (SEGFAULT)
...
Errors while running CTest
Installation fails on OTP 24/Elixir 1.11.3.
[ 1%] Building C object CMakeFiles/modest_worker.dir/utils/eterm_vec.c.o
In file included from .../deps/modest_ex/target/modest_worker/utils/eterm_vec.c
:1:
.../deps/modest_ex/target/modest_worker/utils/eterm_vec.h:22:10: fatal error: e
rl_interface.h: No such file or directory
22 | #include "erl_interface.h"
| ^~~~~~~~~~~~~~~~~
compilation terminated.
As stated in OTP 23 release under Potential Incompatibilities
erl_interface
: Removed the deprecated parts oferl_interface
(erl_interface.h
and essentially all C functions with prefixerl_
)
ModestEx failes to compile on OSX Sierra 10.12 because of missing open_memstream
.
[ 19%] Linking C executable modest_worker
Undefined symbols for architecture x86_64:
"_open_memstream", referenced from:
_eterm_vec_join in eterm_vec.c.o
_eterm_to_string in eterm_vec.c.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [modest_worker] Error 1
make[1]: *** [CMakeFiles/modest_worker.dir/all] Error 2
make: *** [all] Error 2
Hey, thanks for this library, I chose to start a new application in Elixir without ensuring something like this existed, so I’m glad it does!
I feel like a comparative neophyte when it comes to Elixir/Erlang and Phoenix so it may be that I’m missing something obvious, but I’ve found that I can’t use modest_ex
when it’s already running in another process. For instance, if I’m running mix phx.server
so I can interact with the live application, when I run mix test
to execute the tests, I get this error:
** (Mix) Could not start application modest_ex: exited in: ModestEx.Safe.start(:normal, [])
** (EXIT) exited in: :gen_server.call(:boot_server, {:add, {{255, 255, 255, 255}, {127, 0, 0, 1}}})
** (EXIT) no process: the process is not alive or there's no process currently associated with the given name, possibly because its application isn't started
If I kill the server process and run mix test
, then the tests pass with no problem.
I’ve tried a few things:
runtime: false
in mix.exs#deps
:modest_ex
in mix.exs#application extra_applications
Application.ensure_all_started(:modest_ex)
in test_helper.exs
I’m running this with Elixir 1.9.0 and Phoenix 1.4.7.
mix test.target
...
82% tests passed, 3 tests failed out of 17
Total Test time (real) = 1.12 sec
The following tests FAILED:
3 - handle_append_test (Failed)
5 - handle_find_test (Failed)
9 - handle_prepend_test (Failed)
test/handle_append_test
-> <html><head></head><body><div><input type="radio">Radio Button</div></body></html>
[ERROR] main()
/Users/frank/dev/modest_ex/target/modest_worker/test/handle_append_test.c:111
test/handle_prepend_test
-> <div><input type="radio">Radio Button</div>
[ERROR] main()
/Users/frank/dev/modest_ex/target/modest_worker/test/handle_prepend_test.c:71
test/handle_find_test
-> <input type="radio">
[ERROR] main()
/Users/frank/dev/modest_ex/target/modest_worker/test/handle_find_test.c:89
Travis runs build on linux
per default.
The setting language: elixir
expects erlang
to be available.
Adding osx
to the list shows that travis is lacking support for elixir/erlang projects on osx.
Travis console:
0.04s$ wget -o ${TRAVIS_HOME}/erlang.tar.bz2 ${archive_url}
The command "wget -o ${TRAVIS_HOME}/erlang.tar.bz2 ${archive_url}" failed and exited with 8 during .
From here:
f34nk/modest_html#4 (comment)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.