<FromGitter>
<samueleaton> I've installed Crystal and Shards on my machine from github and put both executables in my PATH... but when trying to run a crystal app it doesn't know where to look for dependencies. Is there something I need to set in my project to tell crystal where dependencies are installed?
bjz_ has joined #crystal-lang
<FromGitter>
<jwoertink> Did you run shards install?
<FromGitter>
<samueleaton> yeah. installation works great. its just when I try to run the app, it doesn't know where to find them.
<FromGitter>
<jwoertink> You show the deps in .shards and libs folders?
<FromGitter>
<samueleaton> I figured out the problem!! I had run `make std_spec` earlier to run the specs in crystal and somewhere when running specs is resets the CRYSTAL_PATH. I just had to do `make` again and all is good. :smile:
<crystal-gh>
[crystal] tbrand opened pull request #3538: `crystal build` without spepecified program files (master...feature-build-cmd) https://git.io/vX6Gp
snsei has quit [Ping timeout: 258 seconds]
akwiatkowski has joined #crystal-lang
BlaXpirit has quit [Quit: Bye]
BlaXpirit has joined #crystal-lang
pduncan has quit [Ping timeout: 260 seconds]
akwiatkowski has quit [Quit: Konversation terminated!]
matp_ has quit [Ping timeout: 246 seconds]
matp has joined #crystal-lang
bjz_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
matp has quit [Quit: ZZzzzZz...]
bjz has joined #crystal-lang
bjz_ has joined #crystal-lang
bjz has quit [Ping timeout: 248 seconds]
bjz_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
bjz has joined #crystal-lang
bjz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
bjz has joined #crystal-lang
bjz_ has joined #crystal-lang
bjz has quit [Ping timeout: 256 seconds]
pawnbox has joined #crystal-lang
poikon has quit [Ping timeout: 240 seconds]
poikon has joined #crystal-lang
Philpax_ has joined #crystal-lang
bjz_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
poikon has quit [Ping timeout: 258 seconds]
poikon has joined #crystal-lang
jeromegn_ has quit [Ping timeout: 260 seconds]
jeromegn_ has joined #crystal-lang
poikon has quit [Ping timeout: 258 seconds]
jeromegn_ has quit [Read error: Connection reset by peer]
<FromGitter>
<maiha_twitter> 1) download `crystal_lib` 2. write scheme like above. 3. run the file by `crystal src/main.cr -- lib_xxx.cr`
<FromGitter>
<greentornado> src/main.cr is my project main.cr right ?
<FromGitter>
<greentornado> In the cheme i'll have to include the header lib name and some fun name ?
<FromGitter>
<maiha_twitter> No. `crystal_lib` repos has it!
<FromGitter>
<barisbalic> @asterite thanks, some small updates to come, and when it's stable I'll ask crystalshards.xyz about adding a link on projects, feels a bit redundant to have my own index if they already do a good job of it
soveran has joined #crystal-lang
soveran has quit [Changing host]
soveran has joined #crystal-lang
<FromGitter>
<barisbalic> @luislavena sorry for delayed response, I was trying to keep things really simple to minimise maintenance, but that is another option. I think for now having the docs rebuilt frequently will have to suffice, but please DM me with any particular thoughts or concerns
<Yxhuvud>
jots: You try adding entries to a class. You probably want to instantiate it first.
<FromGitter>
<jots_twitter> ahhh `b = Hash(String,Int32).new` works. is it possible to set default value? like `b = Hash(String,Int32=0).new` or some such?
<FromGitter>
<johnjansen> @jots_twitter Hash can take a proc for defaults
bjz has joined #crystal-lang
<FromGitter>
<jots_twitter> thank you people!
soveran has quit [Remote host closed the connection]
pawnbox has joined #crystal-lang
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #crystal-lang
transfire has left #crystal-lang [#crystal-lang]
soveran has joined #crystal-lang
pawnbox has quit [Ping timeout: 252 seconds]
bjz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
soveran has quit [Remote host closed the connection]
<crystal-gh>
[crystal] bcardiff pushed 1 new commit to master: https://git.io/vX6Ap
<crystal-gh>
crystal/master 7e37c22 Brian J. Cardiff: Playground: enforce same origin check for client websocket...
soveran has joined #crystal-lang
soveran has quit [Changing host]
soveran has joined #crystal-lang
<Papierkorb>
Can I somehow dump which fibers are running, and/or which fiber is currently running?
<Papierkorb>
My application is "hanging" for some reason
<Papierkorb>
Not a infinite loop though, the CPU's sleeping
<tilpner>
Maybe set a signal handler to print Fiber.current.name?
<Papierkorb>
tilpner: I had that idea too, but the comments say that signal handlers run in their own fiber
<tilpner>
Aww
matp_ has joined #crystal-lang
matp has quit [Ping timeout: 260 seconds]
<FromGitter>
<sdogruyol> @papierkorb log
<RX14>
Papierkorb, do you use Scheduler or Fiber in your code, or is it a crystal stdlib bug?
<Papierkorb>
I log tons of things, no exceptions are thrown, but the just spawned fibers just don't start running
<Papierkorb>
RX14: ::spawn, no direct use of Scheduler
<RX14>
huh
<FromGitter>
<sdogruyol> just don't start running* that's weird
<RX14>
so you use `sleep` to reschedule in the main fiber, or what?
<RX14>
what happens to the main fiber
<Papierkorb>
Yes, and the first fibers run just fine
<RX14>
oh
<RX14>
any shards?
<Papierkorb>
Not used there, just standard lib and my code
<RX14>
any library bindings which might be blocking?>
<RX14>
C bindings*?
<Papierkorb>
Nope. It's networking code though, with some fibers waiting for UDP packets to arrive
<RX14>
interesting
<RX14>
you could use the actual OS threading for this maybe
<Papierkorb>
Can I kindly ask (read that as "if I have to shoot at it it's fine too") libevent to tell me all waiting events, and maybe even map those to fibers?
<RX14>
well
<RX14>
i think your best bet is to spawn an OS thread to read the current fiber and use LibC.write to write it to sedout
<RX14>
as long as you don't malloc or use IO it should be fine