Conversation
|
Unfortunately, I won't be able to test this in the same environment I was using until Monday. However, I have made a small test project on my personal Windows 8.1. When I attempt to require the plugin in my |
|
Confirmed same error on a Ubuntu 16.04 machine. |
|
Looked into the issue and two changes have needed to be changed before the plugin could run. The name of the function on line 33 should be With these changes, tests were run successfully on the Ubuntu 16.04 machine. However, the tests would not run on the Windows 8.1 machine unless line 35 was changed to use I am using the |
|
@MNR1 pushed up a fix. I forgot to rename the function after I had fixed it. My mistake 🙈 |
|
I gave this a try and I still get the same Also Maybe the correct solution is to have a configuration option for the caller to override the phantomjs path (so that they could use |
|
I can definitely modify those functions to do a quick check for both Doing a quick check for either I'll try and patch that up sometime today and move all of this "what version/where is Phantom" stuff to a different file for sanities sake. |
|
So I looked into it a bit more and the I think the simple check for the existence of |
@dflynn15 it's because if you download phantomjs from http://phantomjs.org/, then you only get the .exe, but if you install it via |
This should fix the Windows specific path issues that @MNR1 was seeing after #66 was merged in. Also, this is the alternative to #70 that does not require us to explicitly download and install
phantomjsduringnpm installbut opts to allow user configuration. Explanation here.@gwynjudd and @MNR1 would you mind double checking to ensure this does not break either of your environments? Thanks!