-
Notifications
You must be signed in to change notification settings - Fork 19
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
Error loading r18n-desktop: uninitialized constant Psych::Syck::PrivateType #443
Comments
Same error under Shoes 3.3.8 beta r3350. |
Hi, @apjanke . Native gems are troublesome. Shoes has it's own Ruby and doesn't use the one installed by Apple or one you might have installed with homebrew or with RVM/RbEnv. Shoes also has it's own gem repository on disk AND Shoes has it's own gem code (borrowed of course). From the command line (OSX): Start shoes -> Maintain shoes -> Gems->Manage->Show Local. There is a Cobbler menu item to create the `cshoes' bash script for your installation of Shoes. |
Seems OK. Note the version is much different from yours.
|
Hmm. I'm afraid that it's not working for me. This is with Shoes 3.3.8 beta r3371 on macOS 10.14.5 with Xcode 10.2.1. I created a
Seems like it's looking for the wrong MacOSX SDK, and looking for Xcode in the wrong place.
I have Xcode installed as
Moving Xcode back to its default installation location didn't fix it. Same issue. I suspect this time it's just the SDK version that's wrong.
That Maybe Shoes is getting built so it has a dependency on the specific MacOSX SDK version in the Xcode installed on the machine it is built on? |
Sad but true. Shoes is built against 10.10 (or 10.11) SDK. (and darwin-14) I have to build against some version of the SDK and that choice will be wrong for some folks. Sigh. You can get a copy of the SDK and symlink it into where Xcode wants them - that's what I do - I'm running 10.13.5 (I think). Beware - new update versions of xcode will wipe out older SDK so use a symlink inside xcode. I don't have a handy link to where the 10.10 SDK can be found. I know you can find them in the Vagrant image |
I've uploaded a tar ball with jaro-winkler, r18n-desktop and rmagick built by and for shoes 3.3.8. That will get you going but doesn't solve the real issue. To use, copy the tgz to your home dir .shoes and untar it. Of course you can look inside before untaring with a
|
I think the native gem issue might be a red herring here. I've found that I'm getting the same problem if I require just
Under Shoes 3.3.7: Under Shoes 3.3.8 beta r3371: This is with a fresh I've also reported it to the It's rather confusing to me that it's looking for |
Okay, here's another weird thing. I got rid of the Now, the "uninitialized constant Psych::Syck::PrivateType" error is only happening on the first run of my app after doing |
More likely is Shoes gem handling is getting confused about gem locations. This (was?) a problem with rvm installed rubies - or possibly any ruby in it's PATH but really the setting of GEM_HOME could be bleeding into Shoes. I thought 3.3.8 fixed that but ? For the manual->furthermore->samples - run simple info.rb which displays the ENV vars and load paths. I've got a better fix for the gem building if you want to try it out. Edit Shoes.app/Contents/MacOS/lib/setup.rb line 22 so it looks like: mf = mf.gsub(/^ARCH_FLAG =/, "ARCH_FLAG = #{RbConfig::CONFIG['ARCH_FLAG']}")
mf = mf.gsub(/MacOSX10\.\d+\.sdk/, 'MacOSX.sdk')
#mf = mf.gsub(/^INSTALL\s*=\s*.*$/, "INSTALL = $(RUBY) -run -e install -- -vp") |
I tried your patch against 3.3.8 r3371 beta, and it's happy installing stuff with native extensions now:
Thanks! I ran the shoes-info-3.3.8_r3371-angharad.txt I don't see a |
the macosx-minver of 10.10. Not perfect but better.
I see a couple of things to with your environment. (1) zsh - may be important. maybe not. You do not have rvm so it's quite possible cache.rb is not rewriting it or creating it. Gem code does use that env var. You might try setting it before running Shoes. |
I'm running Shoes 3.3.7 r3301 on macOS 10.14.5. I'm trying to use the
r18n-desktop
gem in my Shoes app.My app:
But I get an error when it does that
require "r18n-desktop"
.The
r18n-desktop
gem installs and loads fine on my system and Homebrewed Rubys.Any idea what's going on here? Googling hasn't helped me.
The text was updated successfully, but these errors were encountered: