lock-o-motion icon indicating copy to clipboard operation
lock-o-motion copied to clipboard

parslet causes stack level too deep during rake

Open DougPuchalski opened this issue 11 years ago • 9 comments

I've installed lock-o-motion and MocRuby as git submodules as of today's date. Rake works fine until I add in the parslet gem.

git://github.com/kschiess/parslet.git

$ rake
     Build ./build/iPhoneSimulator-6.1-Development
rake aborted!
stack level too deep

https://gist.github.com/aceofspades/5252002

DougPuchalski avatar Mar 27 '13 05:03 DougPuchalski

Hi Doug,

I will look into it during the coming days. Please mind that LockOMotion and MocRuby are still in development. I am developing static libraries / C extensions support at the moment. I have put both on the roadmap.

Greets, Paul.

archan937 avatar Mar 27 '13 06:03 archan937

Hi Paul,

I am building a rather significant app, and could benefit from these greatly. I'm happy to help out if I can, please let me know.

One other concern is that I would not only want to use gems, but also point to local libraries in vendor or lib or whatever, I wasn't sure if you were supporting that. I realize it's in dev, I'm pointing at the repos and not the gems for this reason.

Extensions sounds very ambitious.

DougPuchalski avatar Mar 27 '13 16:03 DougPuchalski

Looks like a circular dependency is being generated between parset/source/line_cache.rb and source.rb

DougPuchalski avatar Mar 27 '13 16:03 DougPuchalski

The more I look at this, it seems it's an issue with RM's file_dependencies method in project/config.rb.

DougPuchalski avatar Mar 28 '13 17:03 DougPuchalski

I have successfully compiled parslet after some hard-core debug work. It involves some changes to parslet itself and also to RubyMotion.

RubyMotion/lib/motion/project/config.rb: https://gist.github.com/aceofspades/5268201

Parslet modified for RubyMotion https://github.com/aceofspades/parslet/tree/rubymotion

MocRuby with strscan enabled: https://github.com/aceofspades/MocRuby/tree/dev

Minor for to lock-o-motion https://github.com/aceofspades/lock-o-motion/commit/775b8e7d916e2c5fa67fe33bf3e917faccda29c0

DougPuchalski avatar Mar 29 '13 01:03 DougPuchalski

Hi Doug,

I haven't managed to get Parslet working with the above as I keep getting this error :S

(main)> 2013-04-08 22:05:50.024 Just Awesome[37458:c07] uninitialized constant Parslet (NameError)
2013-04-08 22:05:50.027 Just Awesome[37458:c07] *** Terminating app due to uncaught exception 'NameError', reason: 'uninitialized constant Parslet (NameError)

Does it sound familiar?

archan937 avatar Apr 08 '13 20:04 archan937

Are you using https://github.com/aceofspades/parslet/tree/rubymotion ?

DougPuchalski avatar Apr 08 '13 20:04 DougPuchalski

Yes, I am.

archan937 avatar Apr 09 '13 06:04 archan937

Check out my working example here: https://github.com/aceofspades/parslet_test

DougPuchalski avatar Apr 09 '13 18:04 DougPuchalski