Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Get it working for JRuby and Rubinius #31

Closed
JoshCheek opened this issue Jun 29, 2014 · 7 comments
Closed

Get it working for JRuby and Rubinius #31

JoshCheek opened this issue Jun 29, 2014 · 7 comments

Comments

@JoshCheek
Copy link
Owner

They're close! Actually, Rubinius should work, it just doesn't pass all the tests. JRuby is broken, though, interface to IO.popen seems different.

JoshCheek added a commit that referenced this issue Jun 29, 2014
It's not guaranteeed to be in stdlib, and Syck fucks up the
SeeingIsBelieving::Line serialization (turns it into an array)

Missing Psych was causing rbx to fail, but now depending on it
is causing JRuby to fail. Not sure what to do here.

This is part of #31
JoshCheek added a commit that referenced this issue Jun 29, 2014
JoshCheek added a commit that referenced this issue Jun 29, 2014
Rbx passes all specs, and looks like feature issues are
due to different presentation style of backtrace

JRuby has one failing spec, but gets totally destroyed
in the cukes b/c it's interface to Open3.capture3 is
apparently different (looks like it ultimately delegates
to IO.popen, but haven't tracked that code down yet

This is part of #31
@JoshCheek
Copy link
Owner Author

I think to get it passing on Rbx, I need to update Haiti to allow for more permissive matching in the backtrace. Might also need to deal with #32

JoshCheek added a commit that referenced this issue Jan 16, 2015
No need to waste Travis's computers on these since I know I expect them to fail for now.
And I'm not working on them as I'm putting #31 on hold for a bit.
Also removing it from things to do for #47.

JRuby has an IO bug at the moment, it's causing EventStream tests to lock up.
jruby/jruby#2461
I could probably get around it by commenting them out, it's not for a case that I actually expect anyway.
But 9k Fixes this anyway, so wait for that to be common.

Rbx had a bug with how it was handling mass assignment.
The "rest" variable on this line https://github.com/JoshCheek/seeing_is_believing/blob/2ddca5d42c693e3028d574dcb74bcc1f654b068c/lib/seeing_is_believing/binary/remove_annotations.rb#L79
is nil when thre is only one subarray.
I had started to open a bug report, but realized m Rbx was a bit older.
So was going to upgrade and see if its still there, maybe try and fix it.
But I couldn't get it to install. Couldn't find llvm-config.
I'm on an older OS (Lion) since everyone had issues going to Yosemite, and don't feel like
going through the headache of upgrading just to get a newer llvm, just to get Rbx.
Plus apparently Apple is now tracking a lot more data, and you have to run some Python script
to turn it off or something, and IDK, this one is working sufficiently fine for me.
Oh, but I wound up uninstalling Rbx while attempting to upgrade, so now I don't
even have one that I can test against.

I'll probably come back to these when I have more time and it takes less effort.
@JoshCheek JoshCheek removed the ready label Jan 17, 2015
@JoshCheek
Copy link
Owner Author

sigh still a PITA :/

@headius
Copy link

headius commented Aug 1, 2016

What's the problem on JRuby? I'd like to help. popen and spawn should behave like MRI now, with only a few behavioral differences.

@headius
Copy link

headius commented Aug 1, 2016

I attempted to bundle install, but you appear to have binding_of_caller as a dev dependency, and it did not appear to install on JRuby (C ext).

@JoshCheek
Copy link
Owner Author

Aye, that's a dep of what_weve_got_here_is_an_error_to_communicate, which is a dep of mrspec, which I'm willing to remove. I like to use my own gems b/c it helps me see their flaws, but getting it working on JRuby is more important. I'll give it a shot tomorrow and find the real error (pre 9k, I had some, IDK if they are still there).

@JoshCheek
Copy link
Owner Author

I think these were the issues I had the last time I put a relatively serious amount of effort into getting it working: https://github.com/jruby/jruby/issues?utf8=%E2%9C%93&q=is%3Aissue%20author%3AJoshCheek but don't trouble yourself with it, I'll take a look

Note that I just tried, and it looks like I may have to remove the vendored Bundler (cuts the runtime significantly since I'm running a lot of subrocesses). Anyway, I'll check it out further tomorrow.

ruby --disable-gem -I /Users/josh/code/seeing_is_believing/bundle/jruby/2.3.0/gems/rake-11.2.2/lib -I /Users/josh/code/seeing_is_believing/bundle/jruby/2.3.0/gems/ast-2.3.0/lib -I /Users/josh/code/seeing_is_believing/bundle/jruby/2.3.0/gems/builder-3.2.2/lib -I /Users/josh/code/seeing_is_believing/bundle/jruby/2.3.0/gems/gherkin-4.0.0/lib -I /Users/josh/code/seeing_is_believing/bundle/jruby/2.3.0/gems/cucumber-core-1.5.0/lib -I /Users/josh/code/seeing_is_believing/bundle/jruby/2.3.0/gems/cucumber-wire-0.0.1/lib -I /Users/josh/code/seeing_is_believing/bundle/jruby/2.3.0/gems/diff-lcs-1.2.5/lib -I /Users/josh/code/seeing_is_believing/bundle/jruby/2.3.0/gems/multi_json-1.12.1/lib -I /Users/josh/code/seeing_is_believing/bundle/jruby/2.3.0/gems/multi_test-0.1.2/lib -I /Users/josh/code/seeing_is_believing/bundle/jruby/2.3.0/gems/cucumber-2.4.0/lib -I /Users/josh/code/seeing_is_believing/bundle/jruby/2.3.0/gems/rspec-support-3.5.0/lib -I /Users/josh/code/seeing_is_believing/bundle/jruby/2.3.0/gems/rspec-core-3.5.2/lib -I /Users/josh/code/seeing_is_believing/bundle/jruby/2.3.0/gems/rspec-expectations-3.5.0/lib -I /Users/josh/code/seeing_is_believing/bundle/jruby/2.3.0/gems/rspec-mocks-3.5.0/lib -I /Users/josh/code/seeing_is_believing/bundle/jruby/2.3.0/gems/rspec-3.5.0/lib -I /Users/josh/code/seeing_is_believing/bundle/jruby/2.3.0/gems/haiti-0.2.2/lib -I /Users/josh/code/seeing_is_believing/bundle/jruby/2.3.0/gems/ichannel-8.1.0/lib -I /Users/josh/code/seeing_is_believing/bundle/jruby/2.3.0/gems/parser-2.3.1.2/lib -I /Users/josh/code/seeing_is_believing/lib -I /Users/josh/.gem/jruby/2.3.0/gems/bundler-1.12.5/lib/gems/bundler-1.12.5/lib -S bundle/bin/mrspec
warning: unknown argument for --disable: `gem'
jruby: No such file or directory -- bundle (LoadError)
rake aborted!
Command failed with status (1): [ruby --disable-gem -I /Users/josh/code/see...]
/Users/josh/code/seeing_is_believing/Rakefile:27:in `block in (root)'
/Users/josh/code/seeing_is_believing/bundle/jruby/2.3.0/gems/rake-11.2.2/exe/rake:27:in `<top>'
Tasks: TOP => spec
(See full trace by running task with --trace)

JoshCheek added a commit that referenced this issue Aug 1, 2016
Plus some other changes while exploring issues blocking #31
Current issue looks like the file isn't there when it goes to delete it.
There's about a hundred, many are different, but all could feasible be caused by this
@ckib16
Copy link
Collaborator

ckib16 commented Jan 29, 2017

@ckib16 ckib16 closed this as completed Jan 29, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants