-
Notifications
You must be signed in to change notification settings - Fork 112
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
PhantomJS 2.0 Landed #175
Comments
I try to replace phantomjs binary from 1.x to 2.x |
I downloaded the mac OS X binary and it would just die. Yes they expliclity removed coffeescript so it won't work at all as is. We either need to just use JavaScript or compile to JavaScript as part of a distribution - I prefer the former. Some other things to consider for a major release:
|
Same here.
That's cool with me. |
FYI, known issue for Mac download. I found this on their issues and am downloading it now. |
Yup I got that too and ran our tests and found a bug and filed it already - ariya/phantomjs#12973. Could be some more too as there were about 5-7 failing tests. 2.1 is already being prepared. |
I want to talk more about splitting out the console and core parts here. For end users it doesn't matter, but it matters a lot for integrators, namely build plugin authors. Pinging all the ones I could find:
Integrators: would you be interested in moving over to a Thoughts? |
👍 |
thanks @nathanboktae for taking the initiative agree that cli/ghoul and grunt/gulp plugins are just different interfaces/frontends of core library. for example the gulp plugin only depends on using phantomjs as peer dependency seems to be a reasonable compromise of many cases/concerns |
Is there a timeline or task list for mocha-phantomjs to support phantomjs 2.0? |
Would it be possible for this core to support driving multiple versions of PhantomJS? I actually find it useful that PhantomJS 1.9 is missing a few web platform APIs, so it would be terrific if I could run tests against both PhantomJS 1.9 and 2.x (and 3.x, etc). |
I found that by transpiling the .coffee script to JS, and adjusting the launcher to use it, PhantomJS 2 runs my test suite without difficulty. 1.9 also works fine with that change. I'd suggest adjusting the build to use this technique short-term to fix the compatibility problem. |
Well a) we have no build as |
That sounds fine - I'm a fan of good planning too. Meanwhile, it's borked :( ... Any way to include a .js version and probe PJS2 users can always choose to use the .js version if they want direct Your call. |
What is? From your previous comment, sounds like you're fine.
I had done this too, but a lot of tests were failing. |
I'd also like to remove the if (window.mochaPhantomJS) {
mochaPhantomJS.run()
} else {
mocha.run()
} |
subscribing. i need phantomjs v2 for the performance api |
I started work on this in the v4 branch. It's not pointing at phantomjs2 yet. |
For my purposes, I've created a shim executable for #!/bin/bash
set -e
phantomjs="$(which phantomjs)"
coffee-convert() {
local file="${1?}"
local dest="${file%.coffee}.js"
[ "$dest" -nt "$file" ] || coffee -c "$file"
echo "$dest"
}
if [[ $("$phantomjs" -v) != 1.* ]]; then
args=()
for arg; do
if [[ $arg == *.coffee ]]; then
arg="$(coffee-convert "$arg")"
fi
args[${#args[@]}]="$arg"
done
set -- "${args[@]}"
fi
exec "$phantomjs" "$@" Use it like:
|
Awesome that'll be great for people migrating or people wanting to keep writing tests in CoffeeScript. |
I have published I need to update the readme in the
Issues:
|
So what functionality does this project now add on top of |
The CLI. |
I unplublished Anyone who was using 4.0.0-beta1 can use the git tag |
Seems v4 has been merged to master now |
Yes, |
Medium/phantomjs#288 |
Oh that's nice. I am actually planning on moving away from depending on the npm package |
The current version of PhantomJS is [having issues](Medium/phantomjs#522) with Bitbucket, which serves the archive for the main executable. Without attempting a major version bump (already discussed and apparently stagnating in nathanboktae#175), this bumps from 1.9.7-15 to 1.9.20 as the goal is to prevent all CI tools to fail on projects using `mocha-phantomjs`.
PhantomJS v2.1.7 is out now. Any updates here? |
Support was added in v3.0 jdcataldo/grunt-mocha-phantomjs@63b7ff3 |
just ran into the |
Hi Mike, most likely no. This project was more an experiment in how it
|
Don't speak on behalfof this project if your not a contributor, because that is not true at all.
Long term plans are to incorporate the client functionality into core which will then eclipse this project.
|
Complete apologies. I had a similar repo with the same name at one point
|
Ah ok thanks for the explanation |
@nathanboktae does that mean this issue doesn't need to stay open anymore? As for my particular usecase, one of our files used ES6 syntax functions, i.e.:
but mocha-phantom was only able to state the SyntaxError, not in which file it found it, or the line of code that triggered it; If that's a fixable thing that's probably worth fixing. |
It's not fixable. PhantomJS is based on QT3 for 1.x, and QT5 for 2.x and neither supports ES6. The JavaScriptCore, the JavaScript runtime that phantomjs uses has to be upgraded. |
I'm using fixable loosely - seeing the line in question and the file it was signalled in is just as good of course. The problem I had was seeing the equivalent of "something went wrong" without any additional information, so if phantom generates more data (file+line number for instance) but mocha-phantom right now doesn't proxy that to the console, that would be quite valueable to fix |
just noticed that phantomjs is deprecated and was renamed to phantomjs-prebuilt. annoying to update dependencies and I noticed it's still at 1.9.x in the package.json. |
Hi, can someone give an update on this one? This module is still using phantomjs 1.9.x, It is hard to upgrade it to version 2? |
Nevermind, just read the above comments, it works with |
Yeah I need to move the command line parsing over to |
@nathanboktae good idea to put that information prominently at the top of the README.md (probably in a short section after "Usage" titled "Using with Phantom 2.x" and then maybe even refer to that section already all the way at the start of the README.md doc?) rather than having it only as a comment in a closed issue. This information deserves some permanence, at least until the CLI parsing's been switched over. |
Good idea @Pomax I'll add it to the README. |
Just gonna drop this here:
https://github.com/ariya/phantomjs/wiki/PhantomJS-2
The text was updated successfully, but these errors were encountered: