Giter Site home page Giter Site logo

Comments (17)

eregon avatar eregon commented on September 14, 2024 2

@dentarg That's something else.

I think the issue is JRuby seems to fail to find executables without arguments on Windows ( bundle exec rake default works, but bundle exec rake doesn't).

from setup-ruby.

eregon avatar eregon commented on September 14, 2024 2

I reported the bug to JRuby as well, since I think it might be a JRuby bug: jruby/jruby#6053

from setup-ruby.

slonopotamus avatar slonopotamus commented on September 14, 2024 1

I reported this bug to Bundler some time ago: rubygems/bundler#7602. It can be reproduced on any Windows machine with JRuby, it isn't specific to GitHub Actions.

from setup-ruby.

eregon avatar eregon commented on September 14, 2024

I'm unsure what's going on.
Could you try if first installing latest bundler (gem install bundler) helps? Shouldn't be necessary, but at least would rule out a Bundler bug already fixed.

from setup-ruby.

eregon avatar eregon commented on September 14, 2024

I assume JRuby on Windows should work out-of-the-box, right?

That's the aim but my impression is very few people run JRuby in Windows CI in general.
I know little about Windows, even less so about JRuby on Windows.

For instance, I had to figure out myself which launchers to keep and how to get a ruby alias for jruby (jruby/jruby#6042).

from setup-ruby.

eregon avatar eregon commented on September 14, 2024

One issue I noticed is ruby -v picks up the system ruby when run with shell: bash:
https://github.com/eregon/setup-ruby-test/runs/433744376
That's not good.

from setup-ruby.

eregon avatar eregon commented on September 14, 2024

Various issues here, once again with how to provide a ruby alias for jruby that works in both PowerShell and Bash:

from setup-ruby.

eregon avatar eregon commented on September 14, 2024

from setup-ruby.

eregon avatar eregon commented on September 14, 2024

Here is a final run:
https://github.com/eregon/setup-ruby-test/runs/433804429?check_suite_focus=true

Still bundler: command not found: rake.
This must be a JRuby bug, since it works fine on MRI, and installing rake via bundle install generate very similar rake.bat and rake files for both MRI and JRuby.
Could you report it to https://github.com/jruby/jruby/issues ?

I'll fix the PATH issue, but long story short it doesn't seem the cause here.

from setup-ruby.

eregon avatar eregon commented on September 14, 2024

OK, this is fun bundle exec rake --version and bundle exec rake default work, but bundle exec rake doesn't!
https://github.com/eregon/setup-ruby-test/runs/433859430

Run bundle exec rake --version
rake, version 13.0.1
Run bundle exec rake default
OK
Run bundle exec rake
bundler: command not found: rake
Install missing gem executables with `bundle install`
##[error]Process completed with exit code 1.

from setup-ruby.

eregon avatar eregon commented on September 14, 2024

I released 1.41.1 which fixes the PATH so there is no default MRI in PATH, just JRuby.
Now ruby --version and bundle exec rake --version works in both PwSh and Bash.

The rest (bundle exec rake broken) is I believe a JRuby bug, please report it there, I don't think I can do anything about it.

from setup-ruby.

dentarg avatar dentarg commented on September 14, 2024

@eregon thanks for debugging the issue, I saw your comment at jruby/jruby-launcher#29 (comment), is that something else so I should file another jruby issue about this?

from setup-ruby.

eregon avatar eregon commented on September 14, 2024

@slonopotamus Thanks!
I would guess a JRuby issue since it works fine on MRI, and I would think the code for bundle exec doesn't really rely on the interpreter name. But one never knows.

from setup-ruby.

slonopotamus avatar slonopotamus commented on September 14, 2024

This was fixed on Bundler side: rubygems/rubygems#3256 (comment)

from setup-ruby.

eregon avatar eregon commented on September 14, 2024

Seems to be an issue again: jruby/jruby#6053 (comment)

from setup-ruby.

dentarg avatar dentarg commented on September 14, 2024

Seems to be an issue again: jruby/jruby#6053 (comment)
This was fixed on Bundler side: rubygems/rubygems#3256 (comment)

Just an update for anyone finding this thread via search or something, it was concluded that the issue is still with Bundler, rubygems/rubygems#3256 is still open at the time of writing this.

from setup-ruby.

eregon avatar eregon commented on September 14, 2024

Another update, it is a bug in JRuby, fixed on master but not yet released: jruby/jruby#6745

from setup-ruby.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.