Re: [shoes] require in Shoes4
- Tobias Pfeiffer
- 2013-07-10 @ 10:11
Everyone see the email below - I think it was just send to me by accidednt.
So great that it works for you with require_relative! It behaved weirdly
in the old shoes so it couldn't really be used back then :-)
Of course we still provide help with shoes3! If you find bugs they are
just unlikely to get fixed.. as we are writing a whole new thingy and
shoes3 is really hard to maintain (3 different C backends).
For now I'd recommend sticking to shoes3 until we have a release
candidate out or an alpha if you are adventurous :-)
You can contribute to shoes4! We got lots of open issues, people said it
was usually good to get started and me and the other devs are also
around to help :-) Plus if you just try out stuff with shoes4 you are
also helping us figuring out problems e.g. when you try to run your app
with a shoes4 alpha that helps us enormously to see what works and what
doesn't! That's a GREAT contribution!
I'm totally happy to read your story and see how much Shoes helped you -
thanks a lot for sharing it! :-D
On 07/10/2013 02:16 AM, KC Erb wrote:
> Thanks for the quick response Tobias!
> 1) In Shoes3 I used cd (as in change directory) to point the app to
> it's home directory where I keep the images, and other pieces of code
> it needs to work (~/.EQBuddy).
> 2) The files in the code aren't gems, they are .rb files containing
> more Shoes code. I thought that I could use require to split my code
> across multiple files. What's the preferred way to keep my code organized?
> 3) The error I get (after commenting out cd since it isn't recognized
> in Shoes4) is "no such file to load".
> 4) I switched to Shoes4 because a member of the mailing list community
> informed me that that would be the best way to get help since Shoes3
> is on its way out. Would you recommend sticking to Shoes3 until Shoes4
> becomes more firm? I wish I could contribute to Shoes4 so badly! I
> love the Shoes project. I basically went from "What is a Class? An
> Array?" to writing this project with no training outside of Why's
> Poignant Guide, Hackety Hack, Nobody Knows Shoes, and the Shoes manual
> PS. Now I just saw David's response: works like a charm thanks Dave!
> On Tue, Jul 9, 2013 at 5:55 PM, Tobias Pfeiffer
> <mailto:email@example.com>> wrote:
> Hi there,
> thanks for trying out shoes! :-D
> So no idea why it fails.. the cd method in line 3 looks like I
> don't know it. Other than this installing gems in Shoes4 doesn't
> work through Shoes.setup but rather gem install or a Gemfile like
> you're used to from other shoes projects. Also If you'de give us
> the error message that would help enormously :-)
> Lastly Shoes4 is in pre alpha (we are getting closer to an alpha
> release though) so it's a bit too early to try to move to Shoes4
> some important things are still missing (like span + some
> performance/redrawing issues I am working on these days).
> Cheers and Shoes on!
> On Wed 10 Jul 2013 01:35:43 AM CEST, KC Erb wrote:
> Hi all,
> I'm new to Shoes4 (as in I just got it up and running today) but
> mediocrely familiar with Shoes3 and basically brand spanking
> new to
> Ruby and programming.
> So now I'm trying to get a big project that's been running in
> running in Shoes4. The first problem I'm running into is that my
> require statements don't work.
> I have a bunch of files in the same directory and I used to access
> them like this:
> (This is the first few lines from a file called EQB_main.rb
> which is
> in the same directory as the files it requires)
> only now it won't work!
> What's new in Shoes4 that's making this break?
> "If there is an exception to every rule, then every rule must have at
> least one exception; the exception to this one being that it has no