-
Notifications
You must be signed in to change notification settings - Fork 241
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
ceedling command throws LoadError on Windows #84
Comments
Also seeing this issue on Win 7 with Ruby 2.2.0. Bit of a pain as the eclipse integration doesn't work (while ceedling can fake being Google Test, rake can't). |
Before the Thanks for finding the first bug, btw. I'll submit both fixes together when we work this one out. :) |
Upon further inspection, it appears this is a result of POpen4 requiring win32-open3, which is not available for Ruby >1.9. |
Curious. It seems fine on my Win7 box running Ruby 2.2. I'll keep digging. Thanks for the extra info! |
Ah, I see. I installed my version of Ruby originally using the SDK version, so when I installed POpen4, it downloaded the source version and built it for me. That appears to not be an option otherwise. Well, clearly I'll have to build in a backup to the backup. ;) |
I'm seeing the same issue with Ruby 2.3.1 on Windows 10. Is there an ETA for a fix for this? Thanks! |
I have this same error. Is there a fix for this? |
I have the same issue on Windows 10. ceedling (0.21.0) |
@DarkEnergy9 and @plinnie , it appears neither of you actually installed the popen4 gem? You might want to try this. If that doesn't work, another option might be to try the popen4-mingw gem. If the latter works better for you, I'd love to know that. I'll update bundler to install that instead. |
installing Popen4 does not resolve it. I can't install Popen4-Mingw: I do see it on rubygems.org. Maybe it is because I have a 64 bit version of Ruby, and this gem is 32 bit? |
Hmm.. tried it with Ruby 32 bits:
So, it seems I will need to revert to an old version of Ruby. :-( And even then success is not guaranteed. Is there any way we can resolve this? I'm not against getting my hands dirty, but I am not very familiar with Ruby yet (though I am doing the tutorial). How hard would it be to fix this issue? |
Hey @plinnie, maybe you can try some experiments for me? You can find your Ruby gem somewhere like this (the details will vary based on the versions installed):
In there you will find a Somewhere near line 150, is this what you see? In particular, I want to verify that there are 4 sets of begin...rescue...end blocks in your codebase. (It's good to make sure we're at the same starting point).
Thanks! |
I've checked. It is identical. Not a single character is different I actually change the and that seems to work. Now I get:
(never mind -> by tinkering with the ruby install I got the wrong devkit) |
Well, that was not so simple to fix. I can not install cursus on Windows. DevKit does not contain it, and there is no pacman in the msys2 environment. |
…kind of Exception. This should fix Issue #84
I'll have to check into what to do about Curses :( I believe everything else in this thread should be fixed at this point. |
@plinnie, are you able to install from source instead of the gem? If so, can you grab the master and see if it works for you? If not, can you grab the latest gem and then apply the last commit's changes (it's only a few lines). I'd like to know if this makes Ceedling happy without curses. |
Okay, I grabbed the latest master. I tried to build it. I had to remove the " curses" dependency from the ceedling.gemspec in order for it to install. Now however, I get:
When executing ceedling test:all on the temp_sensor example. I don't know if I actually made a valid gem. Since the description in the readme did not produce one. I actually executed 'gem build ceedling.gemspec' , and then installed that gem. So maybe I did something wrong. |
In addition, if I run 'bundle exec rake' (wrongly named 'execute' in the readme), I get this result:
|
I had the same |
Thanks Matt. Does this work for everyone who reported a problem now? |
It works!!! However, I still had to comment the following line:
from the ceedling.gemspec Otherwise it would not install the gem created with |
This was addressed in #76 but still doesn't work. On Windows we get the following:
This is because the
rescue
is looking for aStandardError
. When I change lines 167 and 183 to this:Then the
rescue
statements work, but even withpopen4 (0.1.2)
installed, the following error still occurs:The text was updated successfully, but these errors were encountered: