havenwood changed the topic of #ruby to: Rules: https://ruby-community.com | Ruby 3.2.0, 3.1.3, 3.0.5, 2.7.7: https://www.ruby-lang.org | Paste 4+ lines to: https://gist.github.com | Books: https://t.ly/9ua4 | Logs: https://libera.irclog.whitequark.org/ruby/
drainpipe has quit [Ping timeout: 268 seconds]
ur5us has joined #ruby
drainpipe has joined #ruby
cartdrige has joined #ruby
drainpipe has quit [Ping timeout: 256 seconds]
drainpipe has joined #ruby
drainpipe has quit [Ping timeout: 246 seconds]
drainpipe has joined #ruby
drainpipe has quit [Ping timeout: 246 seconds]
matoro- has quit [Quit: ZNC 1.8.2 - https://znc.in]
drainpipe has joined #ruby
drainpipe has quit [Ping timeout: 272 seconds]
drainpipe has joined #ruby
drainpipe has quit [Ping timeout: 260 seconds]
drainpipe has joined #ruby
drainpipe has quit [Ping timeout: 272 seconds]
eddof13 has joined #ruby
drainpipe has joined #ruby
drainpipe has quit [Ping timeout: 256 seconds]
matoro- has joined #ruby
desnudopenguino1 has joined #ruby
desnudopenguino has quit [Ping timeout: 260 seconds]
desnudopenguino1 is now known as desnudopenguino
moldorcoder7 has quit [Ping timeout: 256 seconds]
eddof13 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jhass has quit [Ping timeout: 256 seconds]
cartdrige has quit [Ping timeout: 252 seconds]
jhass has joined #ruby
jhass has quit [Ping timeout: 265 seconds]
jhass has joined #ruby
razetime has joined #ruby
razetime has quit [Ping timeout: 260 seconds]
stirl has quit [Read error: Connection reset by peer]
stirl has joined #ruby
ur5us has quit [Ping timeout: 260 seconds]
cartdrige has joined #ruby
stirl has quit [Ping timeout: 260 seconds]
d1esel has joined #ruby
d1esel has quit [Remote host closed the connection]
razetime has joined #ruby
c10l7 has joined #ruby
c10l has quit [Ping timeout: 264 seconds]
c10l7 is now known as c10l
cartdrige has quit [Remote host closed the connection]
Mo has joined #ruby
neshpion has quit [Quit: neshpion]
_ht has joined #ruby
Linux_Kerio has joined #ruby
cartdrige has joined #ruby
shokohsc6 has quit [Quit: The Lounge - https://thelounge.chat]
shokohsc6 has joined #ruby
razetime has quit [Quit: See You Space Cowboy]
teclator has joined #ruby
tomtmym has joined #ruby
tomtmym has quit [Changing host]
tomtmym has joined #ruby
otisolsen70 has joined #ruby
otisolsen70 has quit [Read error: Connection reset by peer]
otisolsen70 has joined #ruby
ralu1 has quit [Quit: The Lounge - https://thelounge.chat]
ralu1 has joined #ruby
cryptkeeper has joined #ruby
jvalleroy has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
jvalleroy has joined #ruby
dionysus69 has joined #ruby
Linux_Kerio has quit [Ping timeout: 256 seconds]
ur5us has joined #ruby
ur5us has quit [Ping timeout: 252 seconds]
perrierjouet has quit [Quit: WeeChat 3.8]
FullMetalStacker has joined #ruby
FullMetalStacker has quit [Client Quit]
perrierjouet has joined #ruby
mynameisdebian has joined #ruby
CrazyEddy has joined #ruby
CrazyEddy has quit [Remote host closed the connection]
cryptkeeper has quit [Quit: Connection closed for inactivity]
dionysus69 has quit [Ping timeout: 255 seconds]
<Momentum> can anyone help? when i try to build some project using `bundle exec rake` my computer freezes forever and it seems like it running out of memory
<Momentum> anything i can do?
<Momentum> well, not really build i guess but just running tests
<ox1eef_> Momentum: What project is that ?
<ox1eef_> You are running 'bundle exec rake' from the root of that repository ?
<Momentum> yes
<ox1eef_> Is there any output ? Did you try 'rake test' instead ?
<Momentum> just normal output the test reaches 97% before it all freezes indefinitely, and no i didn't try rake test
<ox1eef_> The default task will run 'rake test' followed by 'rake rubocop'. I thought rubocop might be the issue. I suggest tweaking the 'packages' array to see if that can narrow it down.
<Momentum> i tried `rake test` but it returns with rake aborted!
<ox1eef_> Maybe guard-nanoc might be the issue.
<ox1eef_> Prefix 'bundle exec'.
<Momentum> oh well that pretty much does the same thing i tried it before
<Momentum> should i try commenting guard-nanoc?
<ox1eef_> 'rake aborted' is not useful debugging information, there should be an error and a backtrace that helps make sense of the problem.
<ox1eef_> You can try, if it can get to 97%, maybe that's the issue
<Momentum> yeah sorry it says "NameError: uninitialized constant Bundler"
<Momentum> rake test that is
<ox1eef_> 'bundle exec rake test' should fix that.
<Momentum> trying it now without guard-nanoc
<ox1eef_> Alright
<Momentum> same thing. it just hangs
<ox1eef_> Any idea which spec hangs?
<ox1eef_> And which package?
<ox1eef_> If you are trying to contribute, you might have better success limiting the scope to only the package you are changing.
<Momentum> no idea, but i actually added something. i'm going to try building the master branch
<Momentum> or testing i should say
<ox1eef_> Try run the tests for the component you changed (nanoc-core, etc) rather than running the whole suite.
<ox1eef_> The flow is the same, 'bundle exec rake test' but from inside nanoc-core, or whatever subpackage that changed.
<Momentum> oh okay
<Momentum> it just seems very abnormal to consume all this memory and hang
<Momentum> feels like an issue with bundle?
<ox1eef_> Yeah. It is abnormal. And no, I think it has something to do with the number of gems being tested (I count 11), or a specific package. nanoc-dart-sass might be an issue. I think it has an external dependency.
<Momentum> okay partial runs of rake test pass i guess
<Momentum> for the nanoc subpackage
<Momentum> that's where my contrib is
<ox1eef_> Cool. Then open a pull request, and CI will run. That should catch any impact it might have had on other subpackages.
<Momentum> oh yeah! i forgot CI will actually run on my own fork
<leah2> isnt it amazing how we made a rocket science out of building static html pages
<Momentum> ox1eef_: i really appreciate the help, thank you
<ox1eef_> No worries
<Momentum> leah2: tbf this is probably the best i've seen so far
<ox1eef_> Agreed. I love nanoc.
<Momentum> i literally was using pandoc to build my site and it was painful
<ox1eef_> Only place it is sort of lacking is when it comes to webpack integration. I wrote a custom filter for that, but it has quirks I've learnt to live with.
moldorcoder7 has joined #ruby
<leah2> idk my site is generated by a <100loc ruby script i probably didnt touch the last 5 years :p
<ox1eef_> :)
<Momentum> also hi leah2 are you the same leah all over the internet? :D
<Momentum> the void contributor
<leah2> yes
<Momentum> nice
<Momentum> good to see you
<leah2> not the coreboot one :p
<Momentum> not sure about that one
crax23 has joined #ruby
<leah2> we just get confused for each other occasionally
cartdrige has quit [Ping timeout: 246 seconds]
<ox1eef_> Void Linux is the best Linux I tried. The only Linux that seems worth it at this stage.
<ox1eef_> systemd ruined most Linux distributions, or at least played a big part.
<Momentum> i hated systemd for a while and switch to void because of it, but then all of a sudden moved back to archlinux because i decided to love systemd again
<Momentum> complicated
<Momentum> switched*
<ox1eef_> I use Arch Linux for $work. Of all the systemd distributions, it is the best of a bad bunch for me. I've left Linux altogether on my personal machines, and a run mixture of BSDs instead. The simplicity that Linux has lost (via systemd, and other tech) becomes very clear on after using BSD.
<Momentum> is there an easy way to sort gems and imports alphabetically? rubocop is probably complaining about this
<ox1eef_> Sort in the source code ?
<Momentum> yes
<ox1eef_> You can sometimes auto-correct those errors, did you try that ? bundle exec rubocop -A
<Momentum> no
<Momentum> imma try
<ox1eef_> +1
<Momentum> oh there we go! thanks
<ox1eef_> No worries
dionysus69 has joined #ruby
CrazyEddy has joined #ruby
CrazyEddy has quit [Remote host closed the connection]
___nick___ has joined #ruby
razetime has joined #ruby
CrazyEddy has joined #ruby
razetime has quit [Remote host closed the connection]
mynameisdebian has quit [Ping timeout: 260 seconds]
eddof13 has joined #ruby
teclator has quit [Ping timeout: 260 seconds]
Mo has quit [Quit: Leaving]
Linux_Kerio has joined #ruby
dionysus70 has joined #ruby
dionysus69 has quit [Read error: Connection reset by peer]
dionysus70 is now known as dionysus69
<Momentum> ox1eef_: idk if this will be merged but doesn't hurt to try :D https://github.com/nanoc/nanoc/pull/1643
<Momentum> i could add a test file for completeness
drainpipe has joined #ruby
<ox1eef_> Best of luck ! If it isn't merged, you can always make it a gem.
<Momentum> that's a good idea
<ox1eef_> That's been my approach so far.
<ox1eef_> nanoc-orgmode.rb, or something like that.
<Momentum> i think org-mode is very essential to many emacs users, and to be able to write your static site through your org-mode is really nice
<ox1eef_> I agree, but there are advantages (and disadvantages) to being independent of nanoc proper.
<Momentum> yeah haha i see it's already crowded with many filters :D
<ox1eef_> I have two nanoc filters living independently: github.com/0x1eef/nanoc-webpack.rb & github.com/0x1eef/nanoc-gunzip.rb (and a third in mind).
<Momentum> nice
<Momentum> gunzip seems pretty useful
<ox1eef_> Yeah, for static websites it definitely is.
<ox1eef_> Good to take advantage of that. Dynamic content has to do it on the fly.
<Momentum> i just discovered nanoc last night lol and i thought i'd give this a shot before even working on my site
<ox1eef_> It is my favorite (Ruby) static generator.
<Momentum> i found it mentioned in john mcfarlane's yst static site generator
<Momentum> was looking at yst but it was very heavy and written in haskell
<Momentum> also hasn't been maintained in a while
<Momentum> not that an SSG needs a lot of maintenance but still
<ox1eef_> JavaScript has some good offerings in that space as well, but as someone who loves Ruby I was always biased towards nanoc.
<Momentum> yeah idk i have never been so much attracted to the js alternatives
drainpipe has quit [Ping timeout: 256 seconds]
razetime has joined #ruby
<ox1eef_> They usually carry a bit of weight. For plain HTML / CSS, probably not the best option.
dionysus69 has quit [Ping timeout: 265 seconds]
<isene> I added OpenAI support for RTFM - you can now press 'I' and get OpenAI's description on the item selected (whether it is a directory or file) it will send the content of any non-binary file and retrieve OpenAI's take on what this is. Anyone up for trying this? It's pushed as a gem (gem install rtfm-filemanager). Just add `@ai = "your-secret-openai-key"` to `.rtfm.conf` (replacing it with your actual
<isene> openai key [but you got that])
<isene> Could this be the first filemanager with AI integrated? (It actually does give valuable information and summaries on files and directories)
<ox1eef_> I have close to no clue what you're talking about.
<ox1eef_> Unless it runs locally I'm usually into it. I try to avoid all cloud services as much as possible.
teclator has joined #ruby
crax23 has quit [Ping timeout: 268 seconds]
<Momentum> what kind of information is it expected to give?
crax23 has joined #ruby
<isene> It will give a description of the type of file/directory and a summary of its content.
crax23 has quit [Ping timeout: 248 seconds]
drainpipe has joined #ruby
dionysus69 has joined #ruby
drainpipe has quit [Ping timeout: 264 seconds]
teclator has quit [Ping timeout: 272 seconds]
drainpipe has joined #ruby
drainpipe has quit [Client Quit]
hrberg has quit [Ping timeout: 260 seconds]
Linux_Kerio has quit [Ping timeout: 265 seconds]
teclator has joined #ruby
dionysus69 has quit [Ping timeout: 268 seconds]
Linux_Kerio has joined #ruby
teclator has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
_73 has joined #ruby
<_73> Is it safe to assume that if I have a ruby executable there will be a gem executable in the same directory?
<_73> (assuming somebody didn't manually delete gem)
eddof13 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<ox1eef_> Usually, yep.
<_73> ok thanks
eddof13 has joined #ruby
cartdrige has joined #ruby
razetime has quit [Remote host closed the connection]
crax23 has joined #ruby
cartdrige has quit [Ping timeout: 252 seconds]
plantman2 has joined #ruby
desnudopenguino has quit [Quit: desnudopenguino]
plantman2 has quit [Ping timeout: 255 seconds]
Michaela has quit [Remote host closed the connection]
Michaela has joined #ruby
desnudopenguino has joined #ruby
eddof13 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
___nick___ has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
stirl has joined #ruby
___nick___ has joined #ruby
___nick___ has quit [Client Quit]
___nick___ has joined #ruby
cek has joined #ruby
_73 has quit [Quit: ERC 5.4 (IRC client for GNU Emacs 28.2)]
Vonter has quit [Quit: WeeChat 3.7.1]
eddof13 has joined #ruby
vinay has joined #ruby
vinay is now known as mahi
<mahi> Hello
<adam12> mahi: Hi
<mahi> i wanted some help on gitlab-fog-azure-rm this test fails
<mahi> i usually build gems on debian
<mahi> TestCredentials#test_get_token_method_with_china_environment:
<mahi> NameError: uninitialized constant TestCredentials::ENVIRONMENT_AZURE_CHINA_CLOUD
<mahi> Fog::Credentials::AzureRM.get_credentials(@creds[:tenant_id], @creds[:client_id], @creds[:client_secret], ENVIRONMENT_AZURE_CHINA_CLOUD)
<mahi> have less knowledge on ruby
<adam12> mahi: Does ENVIRONMENT_AZURE_CHINA_CLOUD exist in code base? ie. grep -R ENVIRONMENT_AZURE_CHINA_CLOUD
<mahi> yes it does exist in lib/fog/azurerm/constants.rb
<mahi> adam12 ^
<adam12> mahi: Can you take the contents of that file and put it in a paste service, like gist.github.com or similar?
<adam12> (or link me to it on github)
<mahi> adam12^
<adam12> Interesting.
<mahi> here is the full log of the error
<mahi> adam12^
<adam12> mahi: Inside test/test_credentials.rb, change ENVIRONMENT_AZURE_CHINA_CLOUD to Fog::AzureRM::ENVIRONMENT_AZURE_CHINA_CLOUD
<adam12> mahi: What ruby version?
<mahi> 3.1.2
<mahi> adam12 : alright will try it
<adam12> mahi: You could also add to the top of lib/fog/azurerm/credentials.rb `require_relative "constants"`.
<adam12> I think there's something deeper going on here tho. Ruby did change some lookup stuff a while back, but I'm surprised if this ever worked correctly.
<mahi> yes the issue was opened by debian package maintainers
vinay has joined #ruby
vinay has quit [Remote host closed the connection]
vinay has joined #ruby
<adam12> mahi: How are you running tests? I can get master to pass fine on 3.2, tho maybe i should try 3.1.2.
<adam12> 3.1.2 works for me too. Strange.
mahi has quit [Ping timeout: 272 seconds]
___nick___ has quit [Ping timeout: 252 seconds]
<vinay> running test like this
<vinay> adam12 ^
havenwood has quit [Quit: The Lounge - https://thelounge.chat]
havenwood has joined #ruby
hightower3 has joined #ruby
<adam12> vinay: Unfortunately it looks like some sort of indeterministic loading.
<adam12> vinay: I'm not sure the solution. It's kinda meh.
vinay has quit [Read error: Connection reset by peer]
<adam12> vinay: Running their tests directly using their task makes the tests pass. But if I run it directly with `ruby -rbundler/setup -Itest test/test_credentials.rb` it fails. Which I think is similar to how you're running it. Maybe you can figure out what it's loading beforehand.
hightower4 has quit [Ping timeout: 265 seconds]
vinay[m] has joined #ruby
vinay has joined #ruby
ur5us has joined #ruby
<adam12> vinay: Running their tests directly using their task makes the tests pass. But if I run it directly with `ruby -rbundler/setup -Itest test/test_credentials.rb` it fails. Which I think is similar to how you're running it. Maybe you can figure out what it's loading beforehand.
<vinay> adam12: running test using this .rake file
vinay is now known as mahi
vinay has joined #ruby
vinay has quit [Client Quit]
Sankalp- has joined #ruby
Sankalp has quit [Ping timeout: 268 seconds]
Sankalp- is now known as Sankalp
mahi has quit [Ping timeout: 260 seconds]
_ht has quit [Quit: _ht]
ur5us has quit [Ping timeout: 260 seconds]
ur5us has joined #ruby
<adam12> vinay[m]: Sorry, I'm not sure what to suggest other than seeing if you can find out how the files loaded differ. If you look at rakefile in the project, it shows the test task. You can output the files it's requiring, and then compare it to your filelist in _your_ rakefile. Maybe it will give a hint.
<adam12> vinay[m]: You could also try requiring the test_helper.rb file first, inside your rakefile. Maybe that will help. I'm not sure.
Linux_Kerio has quit [Ping timeout: 260 seconds]
FullMetalStacker has joined #ruby
FullMetalStacker has quit [Client Quit]
r3m has quit [Quit: WeeChat 3.9-dev]
r3m has joined #ruby
FullMetalStacker has joined #ruby
FullMetalStacker has quit [Client Quit]
rockzx_ has joined #ruby
ur5us has quit [Ping timeout: 256 seconds]
otisolsen70 has quit [Quit: Leaving]
<adam12> (rdbg) p response.body.to_s # command
<adam12> => "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<Error><Code>AccessDenied</Code><Message>Access Denied</Message><RequestId>1JHV6ZERP0MV5GP0</RequestId><HostId>LG5fs+FcuE0vo1RMWG0f+wAzFixO8KOYDAqPcxChSdPyxBPYUQvFAsqOs58fZtYXsLxO1e+fMiQ=</HostId></Error>"
<adam12> bingo
rockzx_ has left #ruby [Leaving]
<adam12> Yanking like this is very bizarre. https://rubygems.org/gems/rcfiles/versions
ur5us has joined #ruby
ur5us has quit [Ping timeout: 260 seconds]
cek has quit [Quit: Connection closed for inactivity]
<weaksauce> what the heck is that
ruby[bot] has quit [Remote host closed the connection]
ruby[bot] has joined #ruby
eddof13 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
tomtmym has quit [Quit: Gone.]