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

Cannot install Ruby Shoes 4 #1583

Open
Dassadar2 opened this issue Jan 29, 2022 · 14 comments
Open

Cannot install Ruby Shoes 4 #1583

Dassadar2 opened this issue Jan 29, 2022 · 14 comments

Comments

@Dassadar2
Copy link

Dassadar2 commented Jan 29, 2022

Hello,
After doing all the installs written on the documentation, I have this problem:

~/Programs/shoes4$ sudo bundle install
Don't run Bundler as root. Bundler can ask for sudo if it is needed, and installing your bundle as root will
break this application for all non-root users on this machine.
Fetching https://github.com/shoes/furoshiki
Fetching gem metadata from https://rubygems.org/.........
Could not find gem 'pry-debugger-jruby x86_64-linux' in rubygems repository https://rubygems.org/ or
installed locally.

The source contains the following gems matching 'pry-debugger-jruby':
  * pry-debugger-jruby-1.0.0-java
  * pry-debugger-jruby-1.1.0-java
  * pry-debugger-jruby-1.2.0-java
  * pry-debugger-jruby-1.2.1-java
  * pry-debugger-jruby-1.2.2-java
  * pry-debugger-jruby-2.0.0-java
  * pry-debugger-jruby-2.1.0-java

Can you please help?
Thanks in advance!
David

@ccoupe
Copy link

ccoupe commented Jan 30, 2022

Lot's of possibilities but my best guess is pry wants a jruby version that doesn't match what Shoes provides. That is bad news because Shoes isn't going to be fixed - it's a dead project.

@Dassadar2
Copy link
Author

Dassadar2 commented Jan 30, 2022 via email

@ccoupe
Copy link

ccoupe commented Jan 31, 2022

So sad to hear that... what happened?

Normal things happened. People moved on. There weren't enough developers with the skill, time and interest to form a self sustaining group. The last person moved on. IMO, there aren't that many developers for desktop applications and it's Javascript when they do. Ruby's time on the desktop is over.

I would like to be able to save all the work i did on it... is there no possibility to get a past working version even if it is shoes 3 please?

Shoes3: Git clone the shoes3 repo. Then build the Shoes you need. It's not that hard for Shoes 3 and Linux. Moderately hard for OSX. Royal pain in the ass for Windows. I still have the packaged installers they just aren't on the website for download or packaging.

Shoes4: Clone the repo. Shoes4 is mostly getting the correct jruby installed which is easy with RVM. Figuring out the launch is the next step. I don't remember the details but it's java like. @PragTob might appear and tell you how.

migrate to another Ruby interface.

There is nothing like Shoes. I used Tk with Python last year and it wasn't too difficult so look at Ruby/Tk - ignore the complaints about 'old school' widgets - those are not modern comments.

@PragTob
Copy link
Member

PragTob commented Jan 31, 2022

hey, this looks like no shoes issue gut an issue with installing pry-debugger under JRuby on your side. Now quite sure what exactlyu but pry-debugger-jruby x86_64-linux looks weird but I might be wrong... ah wait you're trying to setup shoes4 itself.

It's weird. The dep might need an update or some fix. I would try throwing away the Gemfile.lock and just run a fresh bundle install. We haven't tested this with new JRuby versions in a looonnnggg while as Cecile is saying.

@alx3dev
Copy link

alx3dev commented Feb 4, 2022

Ruby Shoes 4 work with JRuby-9.3.2.0, installed with rbenv on Linux Mint 20.
Don't run bundler as root, as message tell you. Follow the steps:

  • Install rbenv
  • Install JRuby with rbenv install jruby-9.3.2.0
  • clone shoes4 repo git clone https://github.com/shoes/shoes4 && cd shoes4
  • run rbenv local jruby-9.3.2.0
  • run bundle install
  • run any of samples to try it with bin/shoes samples/simple_star.rb

@Dassadar2
Copy link
Author

Dassadar2 commented Mar 13, 2022

Hi,
Thx, I am nearly there. The sample works, however shoes does not work if I am invoking it from a different place, and I am not getting why:

~/pCloudDrive/Warhammer/TILEA2.0$ ~/shoes4/bin/shoes

/home/dassadar/shoes4/bin/shoes: 5: cd: can't cd to ./bin

/home/dassadar/shoes4/bin/shoes: 9: bin/shoes-stub: not found

Thx!
David

@alx3dev
Copy link

alx3dev commented Mar 14, 2022

@Dassadar2 when you open file bin/shoes, here is what it says:

# This is NOT the primary shoes that's installed--just a helper for local
# development purposes

So I guess you should just call shoes from anywhere on the system, if everything was installed correctly.
That will probably give you an error like this:

Ignoring jruby-launcher-1.1.19-java because its extensions are not built. Try: gem pristine jruby-launcher --version 1.1.19
Ignoring shoes-4.0.0.rc1 because its extensions are not built. Try: gem pristine shoes --version 4.0.0.rc1

Following that, install gems as it says, and you shall be able to run shoes from any directory with shoes <COMMAND>

@Dassadar2
Copy link
Author

Hi Aleksandar,

Thx. I tried but I got this:

$ gem pristine jruby-launcher --version 1.1.19
ERROR: While executing gem ... (Gem::Exception)
Failed to find gems ["jruby-launcher"] = 1.1.19

What is the issue please?

@alx3dev
Copy link

alx3dev commented Mar 15, 2022

@Dassadar2 you don't have gem jruby-launcher, so run:

gem pristine jruby-launcher --version 1.1.19
gem pristine shoes --version 4.0.0.rc1

@Dassadar2
Copy link
Author

yes, that's where I am getting this error:
Failed to find gems ["jruby-launcher"] = 1.1.19
:-/

@alx3dev
Copy link

alx3dev commented Mar 18, 2022

@Dassadar2 You probably used regular ruby, instead of jruby.
First set jruby as ruby version with:
rbenv local jruby-9.3.2.0
Now run gem install for those gems.

@Dassadar2
Copy link
Author

Dassadar2 commented Mar 26, 2022

Hello,
It worked for the jruby launcher, thanks.
But not for the second one:

$ gem pristine shoes --version 4.0.0.rc1
ERROR: While executing gem ... (Gem::Exception)
Failed to find gems ["shoes"] = 4.0.0.rc1

@Dassadar2
Copy link
Author

Hi, any idea please? ;-)

@rubyFeedback
Copy link

Perhaps you can transition into glimmer? Andy is very responsive on glimmer github - even if your use case may not be supported or possible right now, have a talk with him if you have time (or via glimmer github issue trackers). Glimmer is in many ways quite similar to shoes.

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

5 participants