<< 04-11-2018 >>

00:07:26FromGitter<citycide> dom96: I'm working on a parser for glob patterns
00:08:22dom96Cool. I would just use parseutils for that :)
00:08:35dom96Well, then again, I would use parseutils for everything
00:09:35PMunchThis is super strange
00:09:42PMunchNim seems to think it has killed the process
00:09:45PMunchBut it's still around..
00:10:18FromGitter<kayabaNerve> dom96: So I shouldn't use parseutils under any circumstances?
00:11:21*def- quit (Ping timeout: 252 seconds)
00:11:29*def- joined #nim
00:12:26PMunchAha, apparently I need to call close after waitForExit..
00:13:19dom96PMunch: Please report this. Sounds way too subtle
00:14:14PMunchWould be nice if it said that in the docs for terminate and kill.. There is "You need to close the process when done." in the docstring for startProcess, but it's evidently easy to miss..
00:14:23FromGitter<citycide> dom96: that'd probably be simpler
00:14:41PMunchdom96, should I just create an issue that it should be added more prominently to the docs?
00:16:54dom96It sounds completely wrong to me
00:17:05dom96if waitForExit returns then the process should be dead
00:23:13PMunchhttps://github.com/nim-lang/Nim/issues/9616
00:28:42*wildlander quit (Ping timeout: 264 seconds)
01:02:35PMunchHot damn, LSP is now operational (sorta)
01:03:02PMunchI think the position in the file is offset a bit..
01:05:25*kapil____ joined #nim
01:15:00FromGitter<citycide> https://ptpb.pw/jlx_ : here's more of the C code causing my error "extra brace group at end of initializer". hopefully someone with some C knowledge can look at it because I'm not sure what the code structure is. if it's potentially a codegen thing I can try to get a smaller repro but won't bother going further otherwise, it's stumping me right now but I don't want to let a possible bug stick around haha.
01:15:52FromGitter<citycide> the source is just a typical enum, but putting that enum in a new file works fine. there's something else going on
01:20:18PMunchOh well, I better head to bed now. But yay, it's working!
01:21:35PMunchFixed the offset issue as well, so now it's actually giving field with type information when I use it in Sublime :)
01:21:55PMunchBut it seems to trigger a bit easy, I'll have to look into that tomorrow
01:22:00*PMunch quit (Remote host closed the connection)
01:26:26FromGitter<citycide> PMunch: well done
01:53:30FromGitter<accidentalrebel> Hi everyone. So I am currently learning Nim. And I am a bit confused about the documentation.
01:53:53FromGitter<accidentalrebel> For example, i want to know what functions are available for "File"
01:54:16FromGitter<accidentalrebel> So in the manual page i search for "File" https://nim-lang.org/docs/manual.html
01:54:59FromGitter<accidentalrebel> The results does not even show up any entries for the File class
01:55:35FromGitter<accidentalrebel> Here are the results: ⏎ search results ⏎ ⏎ ```code paste, see link``` [https://gitter.im/nim-lang/Nim?at=5bde5196995818347b9c89d7]
01:56:25FromGitter<accidentalrebel> So am i looking at the wrong place?
01:57:13FromGitter<accidentalrebel> Or am i misunderstanding "File"?
02:00:22FromGitter<citycide> @accidentalrebel that search is a bit unfortunate, I agree. when in doubt you can always go to "the index" at https://nim-lang.org/docs/theindex.html and use Ctrl/Cmd+F
02:01:05FromGitter<accidentalrebel> @citycide Yeah, i did that and I was able to find what i was looking for. Thanks!
02:01:30FromGitter<citycide> but there are a few things in `system` (which is automatically imported in all your modules) for handling files, like `readFile`
02:02:09FromGitter<accidentalrebel> So the function with dealing with files are in system and not necessarily inside the File class?
02:03:05FromGitter<citycide> only a couple. mostly you'll want to `import os` or `import asyncfile`
02:05:15FromGitter<accidentalrebel> I see. Thanks again, @citycide !
02:09:57FromGitter<citycide> np
02:16:09FromGitter<rayman22201> @accidentalrebel can you make a github issue for your bad search results. I'm in the process of fixing the search and I don't want to forget about this.
02:17:54FromGitter<accidentalrebel> Sure, no prob.
02:18:28FromGitter<rayman22201> Thanks!
02:22:08FromGitter<zacharycarter> alright - time to try to fix this godot choose nim thing
02:33:50FromGitter<zacharycarter> sweet thanks Andreas, your suggestion about the identcache fixed my issues
02:59:46*itschin joined #nim
03:01:57shashlickwhy does brew install take so long on travis? just want to install libssh2
03:04:07FromGitter<zacharycarter> it's brewing it dude
03:05:17*banc quit (Quit: ZNC - http://znc.in)
03:13:06enthus1astPMunch maybe its the shell process
03:13:16enthus1astoh he's gone
03:14:17enthus1astthat libssh2 that let you in if you ask? :) shashlick
03:19:14leorizethat's libssh, libssh is a different one
03:19:19leorizethat's libssh, libssh2 is a different one
03:20:46enthus1astif i remember correct there is also a go implementation
03:20:59enthus1astwhich did look a bit fresher
03:22:18*banc joined #nim
03:43:07shashlickwell, testing a libssh2 wrapper in travis/osx
03:43:57shashlickhttps://travis-ci.org/genotrance/nimgen/jobs/450375397 <= spent 8 minutes installing libssh2
03:44:17shashlickbut well, now nimgen and wrappers are testing on osx and with nightly builds
03:44:46shashlickso appveyor for win/lin on 0.18.0 and 0.19.0, and on lin/osx with nightlies
04:08:24*chemist69 quit (Ping timeout: 252 seconds)
04:10:12*chemist69 joined #nim
04:19:04FromGitter<citycide> damn I had a small issue repro after carefully deleting a couple hundred lines while keeping my error, then made sure to update to nim#devel... and the problem isn't there in my repro but is in my full code
04:19:09FromGitter<citycide> this is infuriating
04:29:52shashlick@kaushalmodi: nightlies builds suffer from this too - 8 extra minutes to do brew update/installs
04:42:55shashlick`HOMEBREW_NO_AUTO_UPDATE=1 brew install libssh2` worked well - now runs in 4 seconds
04:44:06*theelous3_ quit (Ping timeout: 268 seconds)
04:49:07FromGitter<zacharycarter> well - figuring out how to add new gd native nim modules to my project is totally eluding me
04:49:15FromGitter<zacharycarter> I thought I had it figured out - guess not :(
04:51:09FromGitter<kayabaNerve> @zacharycarter Black Magic
04:51:39shashlickin case anyone wants to test with nightlies - https://github.com/genotrance/nimgen/blob/master/.travis.yml
04:52:28FromGitter<zacharycarter> seems like it
04:53:26*leorize quit (Ping timeout: 250 seconds)
04:54:14*leorize joined #nim
04:54:36*dddddd quit (Read error: Connection reset by peer)
04:54:41shashlickanyone know why this fastText compilation fails? https://travis-ci.org/genotrance/nimgen/jobs/450391907
04:55:24shashlickusing gcc 4.8.4 fails even with -std=gnu++11 but works fine on gcc 5.x (on appveyor) and on local machine gcc 7.8.x
05:20:53FromGitter<zacharycarter> hellz yeah - figured it out
05:20:56FromGitter<zacharycarter> Im godot nimmmmin
05:21:08FromGitter<zacharycarter> and about to be sleeping haha
06:08:11FromGitter<zacharycarter> https://gph.is/2FbpJ6G
06:31:48*nsf joined #nim
06:36:52*narimiran joined #nim
06:43:33FromGitter<AchalaSB> Anyone plz help me solve this issue ⏎ https://github.com/Feneric/nim-wasm-helpers/issues/3
06:50:27FromDiscord_<🐍 Aareon 🐳> Streaming Nim/Python coding https://twitch.tv/Aareooon
06:52:06narimiranAareon isn't it too early for us Europeans, and too late for Americans?
06:59:34*mech422__ joined #nim
07:01:12FromDiscord_<🐍 Aareon 🐳> might be. but if anyone is interested, im here
07:02:51*mech422_ quit (Ping timeout: 268 seconds)
07:05:02FromGitter<kdheepak> @Aareon I missed the start, what are you working on?
07:12:58FromGitter<kdheepak> @Aareon, I love black too! interesting project you've got going on there.
07:13:39FromGitter<kdheepak> The github link on twitch that you pasted shows up as a <deleted link> on twitch chat for me.
07:20:43*tefter joined #nim
07:21:18FromDiscord_<🐍 Aareon 🐳> @kdheepak the link is https://github.com/Aareon/py-nim
07:21:35FromDiscord_<🐍 Aareon 🐳> If you want, I can respond better on Twitch
07:22:04FromGitter<kdheepak> @Aareon is that going to work? If you check if `msg in {TMsgKind.errUnknown.value, ..., }:` then `msg` must be a int type. However msg is likely a TMsgKind instance, right?
07:22:48FromGitter<kdheepak> @Aareon let me sign in over there.
07:22:55*Trustable joined #nim
07:23:49FromGitter<kdheepak> @Aareon no prob :)
07:35:30*vlad1777d quit (Ping timeout: 250 seconds)
07:39:57FromGitter<kdheepak> @Aareon I love chatting Python, and now Nim. I'm also learning Nim.
07:40:55FromGitter<Aareon> As do I
07:41:14FromGitter<Aareon> I'm new as well to Nim. Been studying the
07:41:33FromGitter<Aareon> compiler a lot lately
07:42:09FromGitter<kdheepak> Can tell!
07:42:21FromGitter<kdheepak> Looking forward to seeing your next stream
07:42:45FromGitter<Aareon> Thank you! If you follow me on Twitch, you'll get notified next time I'm live
08:07:00*Trustable quit (Remote host closed the connection)
08:24:17*Vladar joined #nim
08:31:24FromGitter<kaushalmodi> shashlick: thanks! I'll add that to nightlies Travis. I'd always seen osx builds to be slower than Linux by ~5mins
08:38:02*stefanos82 joined #nim
08:54:33*Vladar quit (Remote host closed the connection)
09:01:32Araqkaushalmodi: how do we make nightlies build 0.19.2?
09:09:37FromGitter<kaushalmodi> Araq: we just add one more dimension to the Travis matrix
09:10:17FromGitter<kaushalmodi> Right we have Linux/osx and now we cross that with devel/0.19.2
09:10:49FromGitter<kaushalmodi> (and if someone can take up similar on Appveyor)
09:11:15FromGitter<kaushalmodi> Can some one jump in to enable windows nightly builds on Travis?
09:11:33FromGitter<kaushalmodi> We we don't need to keep on maintaining the Appveyor config too
09:13:57Araqyeah, trying it
09:14:43*Vladar joined #nim
09:47:11*vlad1777d joined #nim
10:20:11Araqer ... travis didn't add 32bit windows support, did it?
10:27:39*stefanos82 quit (Quit: Quitting for now...)
10:34:51*stefanos82 joined #nim
10:41:22*nsf quit (Quit: WeeChat 2.3)
10:44:28*kapil____ quit (Quit: Connection closed for inactivity)
10:50:48*vlad1777d quit (Ping timeout: 252 seconds)
10:51:03FromGitter<mratsim> appveyor has windows32-bit support
10:51:14FromGitter<mratsim> Travis doesn’t work with Windows
10:51:44FromGitter<tim-st> appveyor works good with windows but as I said before the wring repo triggers the creation of the nightly builds
10:51:52FromGitter<tim-st> wrong
10:51:58Araqhttps://blog.travis-ci.com/2018-10-11-windows-early-release
10:52:19FromGitter<mratsim> oh, that’s new
10:53:05FromGitter<mratsim> hopefully they support Ubuntu 18.04 instead of 14.04 soon
10:56:42*elrood joined #nim
10:57:34Araq /home/travis/.travis/job_stages: line 104: /usr/bin/gcc: Argument list too long
12:06:18*Snircle joined #nim
12:07:12*Superjuan joined #nim
12:10:21*kapil____ joined #nim
12:16:01*Superjuan quit (Ping timeout: 256 seconds)
13:02:35*vlad1777d joined #nim
13:15:40Araqno idea what this error means
13:16:54Araqthank god travis is "declarative" with bash scripts, that makes it so easy to analyse and you don't have to debug it... give me a bucket
13:19:04*dorelix joined #nim
13:20:00FromGitter<zacharycarter> could be worse
13:20:02FromGitter<zacharycarter> it could be jenins
13:20:06FromGitter<zacharycarter> jenkins*
13:22:08FromGitter<zacharycarter> alright - time to try to figure out the best way to procedurally generate a golf course
13:32:37*nsf joined #nim
13:34:20FromGitter<kaushalmodi> finally found a workaround to get one-liner Nim code to work, the ones containing procs
13:34:29FromGitter<kaushalmodi> !eval proc foo(x: string): int; echo foo("abc"); proc foo(x: string): int = (if (x == ""): -1 else: x.len)
13:34:33NimBot3
13:34:42FromGitter<kaushalmodi> leorize: ^
13:35:17FromGitter<kaushalmodi> So the Nim one-liner limitation is that code that needs to dedent, cannot be one-lined?
14:00:14*Perkol joined #nim
14:10:49*dorelix quit (Ping timeout: 268 seconds)
14:15:04leorizekaushalmodi: doesn't braces make up for that?
14:15:57FromDiscord_<Shield> no irrlicht or ogre3d bindings hurt a lot
14:17:42FromGitter<kaushalmodi> can you show an example?
14:18:49leorize!eval for i in 0..10: (echo i); echo "hello"
14:18:51NimBot0↵hello↵1↵hello↵2↵hello↵3↵hello↵4↵hello↵5↵hello↵6↵hello↵7↵hello↵8↵hello↵9↵hello↵10↵hello
14:18:59leorizegreat :P
14:19:13leorize!eval (for i in 0..10: (echo i)); echo "hello"
14:19:16NimBot0↵1↵2↵3↵4↵5↵6↵7↵8↵9↵10↵hello
14:19:34FromGitter<kaushalmodi> doesn't work with proc
14:19:42FromGitter<kaushalmodi> I cannot paren-wrap proc defn
14:19:49leorize!eval for i in 0..10: ((echo i)); echo "hello"
14:19:52NimBot0↵hello↵1↵hello↵2↵hello↵3↵hello↵4↵hello↵5↵hello↵6↵hello↵7↵hello↵8↵hello↵9↵hello↵10↵hello
14:20:09FromGitter<kaushalmodi> leorize: I ended up with these *home-grown* rules: https://scripter.co/notes/nim/#one-liners
14:24:28*kapil____ quit (Quit: Connection closed for inactivity)
14:32:52FromGitter<kaushalmodi> to complete those one-liner notes, I had seen Araq execute them from the command line a while back
14:33:20FromGitter<kaushalmodi> it was `nim <some switches> "<one liner>"` .. I forgot what those switches were
14:35:55FromGitter<kaushalmodi> leorize: I have added your for loop examples to those one-liner notes; they are great
14:44:03*tefter quit (Remote host closed the connection)
14:50:45*wildlander joined #nim
14:52:13dom96Why is it so important for you to create one-liners?
14:53:42FromGitter<kaushalmodi> Finding a way to replace `perl -pi -e`
14:54:01FromGitter<kaushalmodi> I have seen Araq mention Nim one liner in the past.
14:54:13FromGitter<kaushalmodi> But seems like no one knows how to do it properly.
14:54:27FromGitter<kaushalmodi> So I am documenting it, whatever one-lining is possible
15:00:00FromGitter<kaushalmodi> dom96: and a practical reason: use the Nim boy here successfully at first try :)
15:00:07FromGitter<kaushalmodi> \* bot
15:00:16dom96Nim boi :D
15:19:28*seni joined #nim
15:25:06*Perkol quit (Remote host closed the connection)
15:28:01enthus1astmaybe `;` should be allowed instead of newline, then everything would be possible
15:28:25enthus1astadditional to newline
15:28:44FromGitter<citycide> semi as newline probably wouldn't work. double semi might be ok
15:29:58enthus1astdoes it has some meaning i'm not aware of?
15:31:11FromGitter<citycide> It already separates statements
15:32:36FromGitter<citycide> You'd have to special case double semi to consider it a newline otherwise it would just be an empty statement between them I think
15:33:03*citycide joined #nim
15:33:24FromGitter<citycide> though tbh this is probably too much optimization for one liners
15:40:06*edcragg quit (Quit: ZNC - http://znc.in)
15:42:22*edcragg joined #nim
15:56:47*Trustable joined #nim
16:08:15Araqkaushalmodi, I have no idea how to fix nightlies
16:09:52*citycide quit (Ping timeout: 250 seconds)
16:12:43*citycide joined #nim
17:15:39FromDiscord_<PusiteGA> i realised my problem with kodi is i setup gpu ram on boot on hd partriton insted on sdcard, now i dont have anything to do, guess can play with godot 😃
17:23:29*stefanos82 quit (Quit: Quitting for now...)
17:24:57*kapil____ joined #nim
17:25:24*theelous3_ joined #nim
17:42:37FromGitter<xmonader> I've a question, if the return type of a proc Table[string, string], shouldn't result be that? ⏎ https://github.com/xmonader/nim-loadenv/blob/master/src/loadenv.nim#L9
17:43:36FromGitter<xmonader> because when i use result i get ⏎ ⏎ ```code paste, see link``` [https://gitter.im/nim-lang/Nim?at=5bdf2fc7d3442e19728b59ca]
17:45:56narimiran@xmonader i'm not sure i understand the question, but your example (using either `var res` or `result`) compiles just fine, both in 0.19 and in devel
17:46:54FromGitter<xmonader> @narimiran it breaks here https://github.com/nim-lang/Nim/blob/devel/lib/pure/collections/tableimpl.nim#L24
17:47:51narimiranwhen/how it breaks? because the snippet you posted works for me
17:48:50FromGitter<xmonader> @narimiran whenever i run the test `nimble test` ⏎ https://github.com/xmonader/nim-loadenv/blob/master/tests/test1.nim
17:49:29FromGitter<xmonader> ```code paste, see link``` [https://gitter.im/nim-lang/Nim?at=5bdf3129cd2a6b5bdc95e76f]
17:49:43FromGitter<xmonader> if i change result to var res and return it it just works
17:53:15narimirani guess you don't have the first line: `result = initTable[string, string]()`?
17:53:38FromGitter<xmonader> isn't that done automatically?
17:53:44narimiranbecause without it, it will crash as you describe, but you need to initialize the table
17:54:28narimiranno, only seqs and strings did get that done automatically in the recent changes
17:55:08FromGitter<xmonader> Ah I see, many thanks @narimiran
17:55:19narimirannp :)
18:35:43*SenasOzys joined #nim
19:05:12*dorelix joined #nim
19:09:16itschinare checks on by default without release/quick
19:30:23dom96yes
19:31:10*seni_ joined #nim
19:32:47*seni quit (Ping timeout: 240 seconds)
19:34:52*SenasOzys quit (Remote host closed the connection)
19:46:05*Vladar quit (Remote host closed the connection)
19:57:38shashlickyay - reproduced failure by running travis locally - https://stackoverflow.com/questions/21053657/how-to-run-travis-ci-locally
19:57:52shashlickbut now wish me luck on what this issue is
20:09:52*darithorn joined #nim
20:39:19shashlickwell, beyond me - https://forum.nim-lang.org/t/4354#27119
20:47:56*PMunch joined #nim
20:49:09*narimiran quit (Remote host closed the connection)
20:56:43*itschin quit (Ping timeout: 245 seconds)
20:58:31*darithorn quit ()
21:06:43*Trustable quit (Remote host closed the connection)
21:10:49*nsf quit (Quit: WeeChat 2.3)
21:27:08PMunchHmm, is there any documentation for the rest of nimsuggests commands?
21:27:35PMunchIt lists sug|con|def|use|dus|chk|mod|highlight|outline|known as possibilities, but the integration guide only mentions sug|con|def|use
21:43:32*chemist69 quit (Ping timeout: 250 seconds)
21:43:58*chemist69 joined #nim
21:48:21*rockcavera joined #nim
21:59:03PMunchIf anyone wants to help out with nimlsp I've created some pretty easy stand-alone issues here: https://github.com/PMunch/nimlsp/issues
21:59:44PMunchI've got `sug` working, and it maps to a textDocument/completion. But to get the most out of nimsuggest I need help
22:11:09*wildlander quit (Quit: Konversation terminated!)
22:17:29*PMunch quit (Remote host closed the connection)
22:23:58*kapil____ quit (Quit: Connection closed for inactivity)
22:44:01*xet7 joined #nim
22:50:45*smitop_ quit (Quit: Connection closed for inactivity)
22:57:36FromGitter<zetashift> @PMunch this looks easy enough for a noob like me: https://github.com/PMunch/nimlsp/issues/7
23:01:15FromGitter<zetashift> So nkNone would map to Null?
23:13:48*Pisuke joined #nim
23:15:13*MyMind quit (Ping timeout: 244 seconds)
23:40:53*vlad1777d quit (Ping timeout: 245 seconds)
23:41:54*Aareon_ quit (Ping timeout: 264 seconds)
23:51:11*Aareon_ joined #nim
23:54:30dom96zetashift: pretty sure that would be nkNil
23:54:34dom96*nkNilLit