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

[Documentation] Simple/Simplistic setup? #3

Open
rubyFeedback opened this issue Feb 12, 2020 · 8 comments
Open

[Documentation] Simple/Simplistic setup? #3

rubyFeedback opened this issue Feb 12, 2020 · 8 comments

Comments

@rubyFeedback
Copy link

Hey Greg,

Do you think you could add a brief installation instruction to the main README at https://github.com/MSP-Greg/ruby-loco/blob/master/README.md ?

Nothing complicated, just really a simple/simplistic work flow, one that may work for you when you are on a fresh windows machine (no matter which windows variant, though I guess it does matter what windows variant; I am more interested in like the most simple installation scenario, ideally something that could be copy/pasted :D). Thanks!

@MSP-Greg
Copy link
Owner

I need to update a few README files...

ideally something that could be copy/pasted

Are you looking for a script to install it? A Ruby script or PowerShell?

It's zipped as a 7z file, so one would need 7-Zip. Also, I'd probably just link to the MSYS2 install page for that.

One reason I haven't developed the README is that this is a master build. For instance, if you try to install pre-compiled gems, almost none of them allow installation when using a master build.

Also, ruby-loco was started a long time ago because ruby/ruby was not fully testing on MinGW. Various repos/gems also started using it in their CI testing.

@MSP-Greg
Copy link
Owner

MSP-Greg commented Feb 12, 2020

Okay, I forgot one main question.

Do you want to use ruby-loco to build Ruby locally or do you want to download the builds it creates and saves via GitHub Actions?

The builds are done three times a day and saved in the single release here:

https://github.com/MSP-Greg/ruby-loco/releases/tag/ruby-master

@dsisnero
Copy link

I have a question - I want a ruby debug build that I can step through with vscode on windows rubyinstaller2 . Can I use this to build ruby to debug and develop ruby with?

@MSP-Greg
Copy link
Owner

Can I use this to build ruby to debug and develop ruby with?

A qualified yes. I haven't used it to build locally for quite a while. When I first started it, it was only for mingw builds, but now there's code in it for mswin builds.

Which are you wanting to build? Can you build on GitHub Actions and download the release asset, or do you prefer to build locally?

@dsisnero
Copy link

dsisnero commented Jun 18, 2020 via email

@Largo
Copy link

Largo commented Jan 14, 2023

Hello @dsisnero
I spent a few days getting into this topic. I managed to run the debugger. The current build here strips the debug symbols and thats why we couldn't debug. I wrote a blogpost explaining how to debug with VSCode and gdb. In my fork I have a changed build script that does not strip the symbols.
It would be nice if we could come up with a script that does not recompile everything each time, so it's faster to test changes.

Compile Ruby on Windows and Debug with GDB

@MSP-Greg
Copy link
Owner

@Largo @dsisnero

(The build script was renamed)

Sorry about that. A while ago, I added the mswin build, and it shared very little with the MSY2 build code. When I recently revised the mswin build code, I renamed the main build scripts...

Re the strip code, I haven't built without the 'strip' code for a very long time. Let me have a look.

I'll either remove it, or allow disabling it with an ENV setting.

It would be nice if we could come up with a script that does not recompile everything each time

Haven't looked at 'cleaning' code for a while, have you? That could also have an ENV conditional added?

JFYI, I do use ruby-loco for local building, and I'm happy to add features. Additionally, it supplies 'well tested' builds for use with GitHub Actions, which I feel is also important...

Thanks, Greg

@Largo
Copy link

Largo commented Jan 15, 2023

No worries, thanks for the useful code! In my fork, I removed the strip code and added the symbol flags and debugging worked!

I'm not that good with powershell but i agree adding conditionals would be a great idea.
Other suggestion:

  • let people know that they need the newer powershell versions (they do right?)

I don't know how cleaning the code works. I think maybe configure doesnt need to run each time.

I had the case that I needed to reset the whole git repo for ruby. That is in the official documentation too. (There is a gir command for this)

Cool project in any case. Would be great to put in the offical ruby documentation to let more people know, I think.

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

4 participants