e_dub has quit [Remote host closed the connection]
e_dub has joined #opal
<ryanstout>
so here’s a really strange question. I’m trying to run volt tests in capybara. Using chromedriver, it doesn’t work with a maxium stack size exceeded issue. The weird part is it happens if opal is the only thing on the page. Has anyone run into this issue?
<ryanstout>
ok, so commenting out: bridge_class('Array', Array); makes it work again
<ryanstout>
adambeynon: you around?
<ryanstout>
ok, maybe thats not the cause
<ryanstout>
ok, definately is something to do with a bridge class
e_dub has quit [Read error: Connection reset by peer]
e_dub has joined #opal
elia has joined #opal
<elia>
adambeynon, finally I figured it out, there's no way to change the prototype chain once it's in place without resorting to .__proto__ =
<elia>
adambeynon, and at that moment I understood that it just needs to be fixed in the find_super_* functions
<adambeynon>
ahhh, and I assume __proto__ doesnt work on quite a few older browsers?
<elia>
adambeynon, I'm sure it's deprecated, with no really available replacement
<elia>
adambeynon, but what stopped me is that it defeats jit
<elia>
at this point I'm more keen to keep the current architecture and document the hell out of it
<adambeynon>
elia: ah I see. Yes. I think my time will be better spent trying to add docs to what is there now. Same with some of the compiler stuff
<adambeynon>
Although that is a lot better than it used to be
<elia>
yeh, I saw there are some really good intros to some of the functions
<elia>
adambeynon, also I'd like to normalize assignment vs. named functions vs. exposed api and eventually publish the runtime.js docs along with API docs
Thijsc has joined #opal
professor_soap has joined #opal
elia has quit [Quit: Computer has gone to sleep.]
meh` has joined #opal
professor_soap has quit []
elia has joined #opal
elia has quit [Quit: Computer has gone to sleep.]
elia has joined #opal
_0txt has joined #opal
<_0txt>
Hi! Where do I put my Opal (haml) templates in a Rails 4.1.x project?
<_0txt>
(I can't seem to find no matter where I put them)
<adambeynon>
_0txt: I usually put them in app/assets/javascripts/templates
<_0txt>
adambeynon: alright, I'll give it another try. Thanks!
<_0txt>
adambeynon: Yet again, I failed. Seem like I fail to understand some basic concept here: http://pastie.org/9584298
<elia>
_0txt, try requiring opal as the first thing
e_dub has quit [Quit: ZZZzzz…]
_elia has joined #opal
<_0txt>
elia: Opal is required in another file (applicaton.js)
<_elia>
_0txt, sorry, misread the error, Template['foobar'] works?
elia has quit [Ping timeout: 272 seconds]
<_0txt>
_elia: nope :(
<_elia>
_0txt, k, well, try inspecting Template, e.g. `console.log(#{Template})`
Thijsc has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<_0txt>
hmm.. now i get "Uncaught NoMethodError: undefined method `buffer' for #<Template::OutputBuffer:77> "
<_0txt>
when I call #render
ylluminate has joined #opal
e_dub has joined #opal
<adambeynon>
_0txt: strange. Give me 30 mins until I'm home and I'll check it out for you
_0txt has quit [Ping timeout: 260 seconds]
j_mcnally has joined #opal
ylluminate has quit [Quit: Bye!]
e_dub has quit [Quit: It's a hard knock life]
e_dub has joined #opal
f-3r has joined #opal
ryanstout has joined #opal
<ryanstout>
adambeynon: how are you?
<ryanstout>
adambeynon: did you see my comments yesterday about the chromedriver issue?
<_elia>
(ryanstout, I think he's on his way home)
<ryanstout>
_elia: thanks
<ryanstout>
_elia: have you guys run into that issue before?
<_elia>
I think meh` did with opal-browser, not sure tho
<ryanstout>
I looked and the one above was the only report of it I could find
<ryanstout>
thanks
Thijsc has joined #opal
<ryanstout>
what is chromedriver written in?
<meh`>
ryanstout, no idea
<meh`>
C++ I assume
<meh`>
ryanstout, use any other driver
<meh`>
firefox and whatnot
<ryanstout>
yea, just trying to cover all browsers
<meh`>
ryanstout, I know, it's a pain
<ryanstout>
ah, “chromedriver lives in the chromium repo.”
<ryanstout>
man, chromedriver doesn’t work, and phantom doesn’t support .textContent (which volt uses) I guess we’ll know if it works in Firefox :-)
<adambeynon>
ryanstout: doesn't innerText work for some browsers instead? I seem to remember having to use innerText first, and then falling back to textContent for something or other
<ryanstout>
adambeynon: yea, it doesn’t do either on comments, which is how I’m using it at the moment
fkchang has joined #opal
_0txt has joined #opal
fkchang has quit [Ping timeout: 245 seconds]
e_dub has quit [Quit: ZZZzzz…]
Thijsc has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
_elia has quit [Remote host closed the connection]
elia has joined #opal
e_dub has joined #opal
Thijsc has joined #opal
elia has quit [Ping timeout: 240 seconds]
f-3r has quit [Remote host closed the connection]
elia has joined #opal
_0txt has quit [Ping timeout: 240 seconds]
f-3r has joined #opal
Thijsc has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Thijsc has joined #opal
Thijsc has quit [Client Quit]
_0txt has joined #opal
Thijsc has joined #opal
f-3r has quit [Ping timeout: 260 seconds]
ryanstout has quit [Quit: ryanstout]
ryanstout has joined #opal
f-3r has joined #opal
f-3r has quit [Ping timeout: 258 seconds]
boberetezeke has joined #opal
j_mcnally has quit [Ping timeout: 244 seconds]
e_dub has quit [Quit: ZZZzzz…]
<ryanstout>
question. Did I see you guys use browserstack for automated test running?
j_mcnally has joined #opal
<adambeynon>
ryanstout: I think meh` added it for opal-browser
<adambeynon>
dont think we've set it up for opal yet
<ryanstout>
ok
<meh`>
ryanstout, ye, it's on opal-browser
<ryanstout>
I’ll check out that repo, thanks
<meh`>
it's been a huge pain to set it up
<ryanstout>
meh`: was just going to ask if it was a pain
<ryanstout>
is it using capybara?
<meh`>
it was, but all the work has already been done, by me