-
-
Notifications
You must be signed in to change notification settings - Fork 428
Conversation
rack (1.3.2) | ||
rack-test (0.6.1) | ||
rack (>= 1.0) | ||
rake (0.9.2) |
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.
Why did you downgrade rake?
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.
Oh well, I had the Rake::DSL not found problem on my machine with 0.9.2.
I then forgot to fix that before commit, now I restored 0.9.2 and merged with master.
Conflicts: lib/capybara/driver/webkit/browser.rb
end | ||
end | ||
end | ||
|
||
def kill_process(pid) | ||
if RUBY_PLATFORM =~ /mingw32/ | ||
Process.kill(9, pid) |
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.
Just for our edification, why 9 for mingw32 instead of the 2 (INT) we use elsewhere?
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.
see comment below
If I try Process.kill(2, pid) on Windows (Vista) it says: Invalid argument (Errno::EINVAL) just as the string version of the signal. |
It'd be nice if we could get some input from another Windows user here. Does this work? Do the tests pass? |
The first commits had all green specs. With the additions of some specs, these 3 now fail: Failures:
for the first one, it is impossibile to get it work on Windows since it doesn't have fork. For the other two, I can hack on and see what's going wrong. I think that if the Windows compilation compatibility gets into mainstream, the chance to have feedback from other Windows users will be higher. |
An update on the set_proxy specs. It appears to be a race condition, in fact if I add a sleep(5) after line 140, all specs pass. |
I'd like to get his merged if possible. In order to do so I'll need a couple of things to happen. The forking test should be disabled using rspec metadata via checking the host os instead of wrapping it with the conditional, that way any additional tests that will need to be disabled can be. Also the race condition will need a better solution than sleep(5) :D. |
Ok for rspec metadata I'll check how that works (I am not a rspec expert, using Test-unit most of the times). For the race condition: I think the problem is not windows-related, and is certainly a test-related issue and not production-code-related issue. I was not able to really 'solve' the problem without reinventing the way the test is layed out. |
Moving this discussion from Issue #148 where it was somewhat off-topic. I could not compile with the latest QT 4.8.0 libraries (also ruby 1.9.3p0 (2011-10-30) [i386-mingw32], and the latest DevKit 4.5.2-20111229-1559). I backed down Qt to version 4.7.4 per Moreno's instructions and it compiled with no problems. For your info, the 4.8.0 error was as follows: WebPage.cpp: In member function 'void WebPage::ignoreSslErrors(QNetworkReply*, const QList&)': |
Thanks @mtjhax for your report. I didn't tried QT 4.8.0, and in fact I don't know if this is really Windows-specific. Otherwise we could update capybara-webkit's wiki to suggest the 4.7.x version for now. |
Ok, now we can skip any kind of test with the :skip_on_windows => true metadata (@halogenandtoast, did you meant something different?). The race condition I was noticing on Windows with Ruby 1.9.2 is no longer there with 1.9.3.p0: tried many many times -- beforewards it appeared almost every run. |
@morenocarullo Yeah that's what I meant with the meta data. If possible I'd like a few other windows users to chime in on this and confirm it compiles and passes the tests. |
Just confirming, I was able to compile on Windows with Qt 4.7.4 (and actually, capybara-webkit's wiki already says to use Qt 4.7.x -- I missed that when I was rushing headlong to try this out). One problem though -- I can compile but I can't seem to get the gem to install. We could cycle on what stupid thing I am doing, but it might be faster if someone could post a brief set of compile and install steps (assuming Qt is already installed). |
Here is some feedback.
Hope it helps. |
Oh perfect @elestrade. In my machine I use Windows Vista Professional, Ruby 1.9.3-p0 from RubyInstaller and QT 4.7.4. QT bin path is in PATH. Using the devkit from RubyInstaller the only thing to do manually before rake install is to launch the devkitvars.bat from devkit's root path. |
@morenocarullo: Thanks for creating your fork, I was able to get capybara-webkit installed properly using it. For any windows users who happen upon this and keep getting an error like:
Check your path for anything being used in the build ( |
@morenocarullo: Perhaps I spoke too soon. I'm new to capybara-webkit, so I have no idea if this is something specific to your fork or the gem in general... anyway, switching things over to run using the
If I switch back to the |
@mewdriller, which version of QT did you install? Did you add the QT bin directory to system PATH? And, moreover, which Windows version and arch (32/64 bit) are you using? |
@morenocarullo, I have Qt 4.7.4 installed and on my PATH. I'm on Windows 7 64bit. |
@mewdriller, I'm sorry but I don't have a 64bit Windows 7 to try the thing. However, maybe you can create here on github a minimal app & test project that hangs on your machine so we can see if it is something capybara-webkit related or windows7@64-bit specific. |
ping? |
I'm going to close this pull request, since it's been a long time since the code has been updated and the build script has changed significantly. If there are general questions or discussion of compiler issues, please raise them on the mailing list: https://groups.google.com/forum/?fromgroups#!forum/capybara-webkit |
Dear @jferris, the problem is not about compilation. As you can see in the code, the problem is also related to os-specific functionalities. I'm a little disappointed, and maybe all the other users working on Windows. |
@morenocarullo Based on the comments, it seems like it's still not functioning on Windows with this pull request. Is that not the case? |
"I'm a little disappointed, and maybe all the other users working on Windows." Indeed. Even if it is not perfect, it seems better that the situation of the master branch which can not be used at all on Windows (unless I missed a point?). [all this beeing an humble remark as I am new to capyraba-webkit and also new to github] |
yes, exactly @elestrade. If needed, I can sync my branch with capybara-webkit's master, with little effort. |
@morenocarullo I've merged this in. I squashed your commits and removed some of the whitespace changed you made in order to make the diff more clear as to what was happening. I've also added a note about window support in the README stating that only 32bit Windows is currently supported. |
@morenocarullo, @elestrade, @mtjhax: Could you let me know if master works correctly for you so when I release the next version of the gem I can have some additional confidence in the Windows changes - especially since I needed to alter some of the binary checking to match what we're currently doing. |
See #300 for a small fix, thanks! |
It now compiles on Windows using its QT SDK:
http://qt.nokia.com/downloads/windows-cpp
There are 7 failing specs due to ImageMagick on Windows, and I'm looking into solving them.