infinitered / ProMotion-menu

RubyMotion gem allowing you to easily setup a facebook or Path style hidden slide menu easily with the ProMotion gem.
74 stars 29 forks source link

app crashing unexpectedly #44

Closed folivi closed 9 years ago

folivi commented 9 years ago

Hi guys, I just started a new rm project with PM and PM-Menu and my app crashes with the following message: Terminating app due to uncaught exception 'NameError', reason: 'uninitialized constant ProMotion::Menu::Gestures::MMOpenDrawerGestureModePanningNavigationBar (NameError)

I'm using rubymotion 2.38

my gemfile:

source "https://rubygems.org"

gem "rake"

# ProMotion
gem "ProMotion", "~> 2.0"
gem "ProMotion-push", "~> 0.2" # Push Notifications
gem 'ProMotion-menu'
gem 'motion-cocoapods'
 #gem "ProMotion-map", "~> 0.3"  # PM::MapScreen

# Awesome gem that adds a ton of helpers.
 gem "sugarcube", require: [ "sugarcube-common" ]

# Layout and styling gem
# gem "motion-kit", "~> 0.10"

# Front end toolkit
# gem "ruby_motion_query", "~> 0.6"

# CoreData
# gem "cdq", "~> 0.1"

# Networking
 gem "afmotion", "~> 2.1"

# Screenshot acceptance comparison tool
# gem "motion-juxtapose", "~> 0.1"

# Awesome Print
# gem "awesome_print_motion", "~> 0.1"

Any help would be highly appreciated

jamonholmgren commented 9 years ago

Hi @folivi , thanks for using PM! Could you post your Rakefile?

folivi commented 9 years ago

Here it goes:

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

begin
  require 'bundler'
  Bundler.require
rescue LoadError
end

Motion::Project::App.setup do |app|
  # Use `rake config' to see complete project settings.
  app.name = 'menu-temp'

  app.frameworks += ['CoreFoundation','QuartzCore']  
  app.pods do
    pod 'MMDrawerController', '~> 0.5.7'
  end
end

Note: I managed to get the control working without PM

jamonholmgren commented 9 years ago

@ryanlntn Can you look into this?

ryanlntn commented 9 years ago

@jamonholmgren Sure thing.

@folivi I wasn't able to reproduce this in the minimal PM app I spun up with the Gemfile and Rakefile you provided. How are you instantiating the menu? I'm doing this in on_load of AppDelegate:

open_menu HomeScreen.new(nav_bar: true), left: MenuScreen, to_show: :pan_nav_bar, to_hide: :pan_nav_bar

You can clone and build my minimal PM app to rule out environment issues. You might also try running rake clean:all and rebuilding from scratch if you haven't already.

folivi commented 9 years ago

Hey guys,

cleaning up and rebuilding worked.

Sorry for raising a fake problem.

Cheers

2014-12-06 20:53 GMT+01:00 Ryan Linton notifications@github.com:

@jamonholmgren https://github.com/jamonholmgren Sure thing.

@folivi https://github.com/folivi I wasn't able to reproduce this in the minimal PM app I spun up with the Gemfile and Rakefile you provided. How are you instantiating the menu? I'm doing this in on_load of AppDelegate:

open_menu HomeScreen.new(nav_bar: true), left: MenuScreen, to_show: :pan_nav_bar, to_hide: :pan_nav_bar

You can clone and build my minimal PM app https://github.com/ryanlntn/pm-menu-issue-44 to rule out environment issues. You might also try running rake clean:all and rebuilding from scratch if you haven't already.

— Reply to this email directly or view it on GitHub https://github.com/clearsightstudio/ProMotion-menu/issues/44#issuecomment-65911233 .

ryanlntn commented 9 years ago

@folivi No problem. Glad I could help. :smile:

jamonholmgren commented 9 years ago

Sweet!