-
Notifications
You must be signed in to change notification settings - Fork 93
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
suggestion for fixing how to deal with symbols in merge of two specs #220
suggestion for fixing how to deal with symbols in merge of two specs #220
Conversation
This is weird, I can't see what is wrong with the implementation for clojurescript. I rolledback every change and run the tests to see if something was broken before in my build and everything works fine, however if I add a simple ;; ======================================================================
;; Testing with Phantom:
Testing spec-tools.core-test
ERROR: Exception outside tests:
ERROR: #object[TypeError TypeError: undefined is not an object (evaluating 'spec_tools.core_test.get_spec_test')]
ERROR: Stacktrace:
ERROR: file:///home/wand/spec-tools/target/out/spec_tools/doo_runner.js:376:1188
file:///home/wand/spec-tools/target/out/spec_tools/doo_runner.js:385:3
cljs$test$run_block@file:///home/wand/spec-tools/target/out/cljs/test.js:374:17
file:///home/wand/spec-tools/target/out/spec_tools/doo_runner.js:357:32
doo$runner$run_BANG_@file:///home/wand/spec-tools/target/out/doo/runner.js:60:50
global code
evaluateJavaScript@[native code]
evaluate@phantomjs://platform/webpage.js:390:39
phantomjs://code/phantom3043986299397057157.js:127:19
_onPageOpenFinished@phantomjs://platform/webpage.js:286:27
Subprocess failed Which seems like I need to do something to test setup of phantomjs to rebuild or something. I'm not confortable with cljs yet so I would like some help to figure this out. Thanks! |
I'll ask if someone understands what's going on here. |
I completely misunderstood the problem here. The real problem is that I was already confused because I saw the |
I just changed |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the test only runs with clojure, on clojurescript it still fails. Is there any way to get it working?
@ikitommi I can't reproduce any failure in the test suite now. I am running both Can you send the error message? |
Oh! I see at travis CI, can you fire a new build? That error was due to other merge fixed by #224 . It should be ok now. |
If you enable the new test for cljs too, you should see the error. |
I didn't notice the reader macro there :x .. anyway, I got more information about the problem, in fact cljs is not very friendly and this error has many implications. I was talking to Mike Fikes about this issue and he pointed out to this SO about resolving symbols dynamically in cljs. I can get from symbol I don't like this solution that much because we cannot antecipate the size of the namespaces spec-tools users are going to load while using this. |
well, it didn't work on clj & cljs, now it works on clj. So I think it's better than before. Happy to merge if you think it's done. |
I would merge and at least this PR has documenting some steps towards cljs as well if needed in future. |
Thanks! |
A proposed fix for issue #201 , this was the best attempt so far without using
eval
to accomplish the task.