These are chat archives for opal/opal

26th
Mar 2015
Kurtis Rainbolt-Greene
@krainboltgreene
Mar 26 2015 11:35
@elia: It seems like a lot of the opal projects have pretty weird dependencies.
Elia Schito
@elia
Mar 26 2015 11:35
what do you mean?
@krainboltgreene ^
Kurtis Rainbolt-Greene
@krainboltgreene
Mar 26 2015 11:45
Like, why does opal/opal need tilt?
Adam Beynon
@adambeynon
Mar 26 2015 11:46
@krainboltgreene I think Sprockets depends on it
and Opal uses sprockets for easier building with rails/sinatra/other-rack-framework
Kurtis Rainbolt-Greene
@krainboltgreene
Mar 26 2015 11:47
It's specified as an explicit dependency in opal, but yes sprockets does apparently explicitly require tilt. Weird.
And opal/opal-browser has paggio as an explicit dependency.
Adam Beynon
@adambeynon
Mar 26 2015 11:50
That I do find strange. Pagio relies on opal-browser, but Im not sure why the dependencies are that way around
Kurtis Rainbolt-Greene
@krainboltgreene
Mar 26 2015 11:51
It also looks like I was seeing a "lot" of weird dependencies because of middleman. Somehow my eyes missed the divide.
Kurtis Rainbolt-Greene
@krainboltgreene
Mar 26 2015 11:56
What's you all's prefered way to handle stand alone opal apps? I tried jekyll, with a pure opal thing, and now attempting middleman for this vienna.
Elia Schito
@elia
Mar 26 2015 11:58
@krainboltgreene @adambeynon tilt is there because it's going to be removed from deps in sprockets 3, the same goes with hike
that's the reason for keeping them explicit, because we're using them directly and don't want to break when sprockets 3 will be out (soon)
Kurtis Rainbolt-Greene
@krainboltgreene
Mar 26 2015 11:59
Ahhh.
Kurtis Rainbolt-Greene
@krainboltgreene
Mar 26 2015 12:22
Bleh, gave up middleman. Stasis uses an old version of tilt. Nanoc uses a directory called "lib".
Adam Beynon
@adambeynon
Mar 26 2015 12:34
@krainboltgreene We use middleman + opal for the website, opalrb.org
I think they have a sprockets plugin which we just tag onto
Elia Schito
@elia
Mar 26 2015 16:38
@adambeynon so you haven't been interviewed at bath ruby… :D https://www.youtube.com/watch?v=Em49QAJF-7Q
George Plymale II
@ylluminarious
Mar 26 2015 18:03

hey everyone, i was using 0.7.1 on a project of mine and it looks like something went wrong with loading some files. i was attempting to load files in the following way (which was working fine when i used 0.6.3):

require './file1'
require './file2'
require './file3'

i got an error that said: Error: Opal::Builder::MissingRequire: A file required by "main" wasn't found. and then it had a bunch of other information after it that said where it was getting messed up in requiring the files. i scratched my head for a bit after i saw this and then i decided to switch back to 0.6.3 and the error disappeared. i figured i should let you folks know about this in case someone accidentally broke something in 0.7.1

Kurtis Rainbolt-Greene
@krainboltgreene
Mar 26 2015 19:48
@elia So with the availability of opal-react and my copy of React.js Native, I guess I can do ruby development on iPhone ;)
Elia Schito
@elia
Mar 26 2015 19:49
:+1:
George Plymale II
@ylluminarious
Mar 26 2015 21:12
@elia concerning that problem that i reported above earlier: opal/opal#778