<FromGitter>
<Blacksmoke16> my as well port it to the v2 plugin system as too. Guess I know what ill be doing this weekend :P
notzmv is now known as [deleted]
ur5us has quit [Ping timeout: 240 seconds]
<straight-shoota>
It seems there's no v2 plugin for Crystal yet...
<yxhuvud>
Hmm. So why do I get errors? It'd be nice to figure it out :(
<f1refly>
Is work currently going on to support crystal on the m1 mac with homebrew? I introduced one of my colleagues to it about a year ago and he can't use his scripts any more since changing his work computer
<mps>
f1refly: unstall alpine linux in qemu and then you can run crystal in VM
<mps>
it works pretty fast
<straight-shoota>
On our side aarch64_darwin is completely supported. It's just that an LLVM bug prevented upgrading to LLVM 11.
<straight-shoota>
I hear crystal runs very well with Rosetta on M1 chips
<f1refly>
neat, i'll tell him
<yxhuvud>
oh, I might have found my issue. I didn't initialize one of the fields I sent into things and apparently it wasn't set to 0 by default. :x
postmodern has quit [Quit: Leaving]
<FromGitter>
<Blacksmoke16> @straight-shoota yea planning on taking a stab at porting it to v2 this weekend prob
<FromGitter>
<Blacksmoke16> shouldn't be too bad. In the meantime ill replace `--production` with `--without-development` to get the v1 working again at least
<FromGitter>
<Blacksmoke16> is it expected that `shards build --production` works without a `shard.lock`?
<straight-shoota>
No, in 0.15.0 --production implies --frozen. Prior to that it was intended to work like this, but it was not enforced.
<FromGitter>
<Blacksmoke16> gotcha. and is there a point in doing an install before a build. couldn't we simplify the build process to just like `shards build --without-development`, iirc the catch is that doesn't run post install hooks or something?
<FromGitter>
<Blacksmoke16> nvm, tested it and it did
deavmi has quit [Ping timeout: 256 seconds]
deavmi has joined #crystal-lang
<FromGitter>
<alexherbo2> Is there an alternative to partition but with find?
<FromGitter>
<Blacksmoke16> use `.index` and then `idx -1` `idx + 1`?
<FromGitter>
<alexherbo2> I think to delete, which get the element and remove from the array
<FromGitter>
<alexherbo2> In a directory list, I need to get a yaml file
<FromGitter>
<Blacksmoke16> something like that maybe?
<FromGitter>
<alexherbo2> And other files are snippets
<FromGitter>
<Blacksmoke16> not sure i follow
<FromGitter>
<alexherbo2> I have an array of paths, where I need to get the `scope.yml`, it can be present or not, and evaluate its content, I need to separate it from the snippets files in the file list
<FromGitter>
<Blacksmoke16> returns the value if found, otherwise `nil`
<FromGitter>
<alexherbo2> Yep, I think delete is close to partition for a single element and with mutation
<FromGitter>
<wyhaines> @alexherbo2 I am still not completely clear on what you are doing, but maybe my little `find` shard might make it easier? https://github.com/wyhaines/find.cr It lets you traverse a path, acting on what you find, with a really simple API. So you could handle your `scope.yml` files separately from the rest of the files pretty easily.
ur5us has joined #crystal-lang
ur5us has quit [Ping timeout: 256 seconds]
fifr[m] has quit [Remote host closed the connection]
jhass[m] has quit [Remote host closed the connection]
jhass[m] has joined #crystal-lang
fifr[m] has joined #crystal-lang
ur5us has joined #crystal-lang
oprypin has quit [Quit: Bye]
oprypin has joined #crystal-lang
[deleted] has quit [Ping timeout: 272 seconds]
<FromGitter>
<didactic-drunk> `file.pos` returns 0 after `write`. Is this a bug? (https://carc.in/#/r/bgjv)
<FromGitter>
<Blacksmoke16> Probably just need to flush
<FromGitter>
<didactic-drunk> Is this by design or leaky abstraction?