Code Monkey home page Code Monkey logo

modest_ex's People

Contributors

f34nk avatar klarnafrank avatar richmorin avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

modest_ex's Issues

Target tests fail on APPLE OSX

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

Compilation error on OTP >= 23

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 of erl_interface(erl_interface.h and essentially all C functions with prefix erl_)

Failed to compile on OSX Sierra 10.12

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

Unable to use in two simultaneous instances

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.

Some target tests fail for html with "input" tag on Apple OSX

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

Configure travis to test linux and osx

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 .

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.