Skip to content
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

Uninitialized constant RubyMotionQuery::Stylesheet when upgrading from 0.5.8 to 0.6.0 #71

Closed
trestrantham opened this issue Jun 22, 2014 · 5 comments · Fixed by #72
Closed

Comments

@trestrantham
Copy link

When upgrading a working RMQ app from 0.5.8 to 0.6.0 I am receiving an uninitialized constant error for RubyMotionQuery::Stylesheet. I haven't changed any code so I'm not sure what could be causing this. I have tried rake clean and recompiling without luck.

@twerth
Copy link
Member

twerth commented Jun 22, 2014

Hmm, that's odd. May I see your gemfile and the top of your rake file also please.

Did you update both the gem and in your gemfile?

@trestrantham
Copy link
Author

I agree it's odd. RubyMotionQuery::Stylesheet is only referenced directly in ApplicationStylesheet and nowhere else in the application. I'm hoping it's something simple I've overlooked!

My Gemfile is:

source "https://rubygems.org"

gem "bubble-wrap"
gem "formotion"
gem "motion-resource"
gem "motion-testflight"
gem "ruby_motion_query", "~> 0.6.0"

And Rakefile:

# -*- coding: utf-8 -*-
$:.unshift("/Library/RubyMotion/lib")
require "motion/project/template/ios"
require "bundler"
Bundler.require

require "bubble-wrap/core"
require "bubble-wrap/camera"
require "bubble-wrap/media"

Motion::Project::App.setup do |app|

@twerth
Copy link
Member

twerth commented Jun 22, 2014

Nothing wrong there.

First, try the nuclear option:

  • rake clean:all
  • Delete app in simulator (or reset simulator)
  • bundle
  • rake pod:install (if you're using CocoaPods)
  • rake

I know your project is probably secret, but if I could have a copy of the source code I could figure it out. todd@infinitered.com

@trestrantham
Copy link
Author

I created a test project to share with you (https://github.com/trestrantham/rmq-debug) but in the process I figured out the issue occurs when app.detect_dependencies is set to false in Rakefile.

@twerth
Copy link
Member

twerth commented Jun 22, 2014

Cool, thanks. I'll fix it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants