-
Notifications
You must be signed in to change notification settings - Fork 83
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
"No implicit conversion of nil into string" #72
Comments
I'm getting this as well on Xubuntu 14.04. Ruby 2.0.0-p481
|
I get the same error as @mover96. My script is very simple:
|
I also am receiving this error |
I also am receiving this error. |
This problem is coming about due to File::ALT_SEPARATOR having a value of nil. This seems to be the case on cygwin/msys2 systems despite them being in windows. This is just supposed to fill out some information as to why its happening and some possible directions someone could look in to deal with it. I think other issues will arise after these simple changes and it may take some effort to get it working in cygwin/msys. @jesse1983 and @deanperry in Problems and Bug Reporting it does say Windows Support only |
Only the Ruby from rubyinstaller.org are tested, and only native windows builds of Ruby is known to work. I have not made any effort to get Ocra working with any other platform than the rubyinstaller.org installers, so I don't even know if it is feasible. |
@larsch My latest update, if it doesn't break anything from the rubyinstaller side, allows a full run through/creation of a .exe under msys2. At least with the project I've been working with. Given, this .exe gives an Application error(0xc0000013) if run from an explorer folder, and has pathing issues for non-system requires when run from the terminal in msys2. I'm not saying you should accept the pull request, but its there if anyone else uses msys2 and has some good ideas for how to fix these pathing issues. P.S. I would assume this holds for cygwin as well. |
I don't think it's a cygwin issue since I'm getting the same error under ubuntu 14.04, with a helloWorld file. |
@tille cygwin/msys2 do not register as windows in ruby, so they don't have the File::ALT_SEPARATOR constant defined out of the box. This is also the case with Unix/Linux/OSX. I believe File::ALT_SEPARATOR is only defined in Windows because Windows uses the reverse slash as a path separator. This combined with ocra only having support for Windows made me reference it as an issue in cygwin/msys2 being linux-like environments that run on windows. edit: "No implicit conversion of nil into string" fix is in the repo's code but may not necessarily build an executable that runs when built from a non-windows platform. It may have to do with my usage of gems in non-typical locations. Could be due to some other implicit nature of the build environment. Could be I grabbed the exe stub from a different version because I couldn't get it to compile. I'm not really sure. Sorry for such an off-topic edit. |
@jgleesawn to be explicit, you can only run Ocra on Windows, right? I, like @tille, developed my script on Ubuntu and expected it to build a Windows EXE. I see how that doesn't make sense. |
@ashes999 well there is an option to build over linux using ruby wrappers however seems doesn't work |
I receive this error simply when i type in Ocra into Cygwin
any ideas?
The text was updated successfully, but these errors were encountered: