00:07:26 | FromGitter | <citycide> dom96: I'm working on a parser for glob patterns |
00:08:22 | dom96 | Cool. I would just use parseutils for that :) |
00:08:35 | dom96 | Well, then again, I would use parseutils for everything |
00:09:35 | PMunch | This is super strange |
00:09:42 | PMunch | Nim seems to think it has killed the process |
00:09:45 | PMunch | But it's still around.. |
00:10:18 | FromGitter | <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:26 | PMunch | Aha, apparently I need to call close after waitForExit.. |
00:13:19 | dom96 | PMunch: Please report this. Sounds way too subtle |
00:14:14 | PMunch | Would 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:23 | FromGitter | <citycide> dom96: that'd probably be simpler |
00:14:41 | PMunch | dom96, should I just create an issue that it should be added more prominently to the docs? |
00:16:54 | dom96 | It sounds completely wrong to me |
00:17:05 | dom96 | if waitForExit returns then the process should be dead |
00:23:13 | PMunch | https://github.com/nim-lang/Nim/issues/9616 |
00:28:42 | * | wildlander quit (Ping timeout: 264 seconds) |
01:02:35 | PMunch | Hot damn, LSP is now operational (sorta) |
01:03:02 | PMunch | I think the position in the file is offset a bit.. |
01:05:25 | * | kapil____ joined #nim |
01:15:00 | FromGitter | <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:52 | FromGitter | <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:18 | PMunch | Oh well, I better head to bed now. But yay, it's working! |
01:21:35 | PMunch | Fixed the offset issue as well, so now it's actually giving field with type information when I use it in Sublime :) |
01:21:55 | PMunch | But 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:26 | FromGitter | <citycide> PMunch: well done |
01:53:30 | FromGitter | <accidentalrebel> Hi everyone. So I am currently learning Nim. And I am a bit confused about the documentation. |
01:53:53 | FromGitter | <accidentalrebel> For example, i want to know what functions are available for "File" |
01:54:16 | FromGitter | <accidentalrebel> So in the manual page i search for "File" https://nim-lang.org/docs/manual.html |
01:54:59 | FromGitter | <accidentalrebel> The results does not even show up any entries for the File class |
01:55:35 | FromGitter | <accidentalrebel> Here are the results: ⏎ search results ⏎ ⏎ ```code paste, see link``` [https://gitter.im/nim-lang/Nim?at=5bde5196995818347b9c89d7] |
01:56:25 | FromGitter | <accidentalrebel> So am i looking at the wrong place? |
01:57:13 | FromGitter | <accidentalrebel> Or am i misunderstanding "File"? |
02:00:22 | FromGitter | <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:05 | FromGitter | <accidentalrebel> @citycide Yeah, i did that and I was able to find what i was looking for. Thanks! |
02:01:30 | FromGitter | <citycide> but there are a few things in `system` (which is automatically imported in all your modules) for handling files, like `readFile` |
02:02:09 | FromGitter | <accidentalrebel> So the function with dealing with files are in system and not necessarily inside the File class? |
02:03:05 | FromGitter | <citycide> only a couple. mostly you'll want to `import os` or `import asyncfile` |
02:05:15 | FromGitter | <accidentalrebel> I see. Thanks again, @citycide ! |
02:09:57 | FromGitter | <citycide> np |
02:16:09 | FromGitter | <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:54 | FromGitter | <accidentalrebel> Sure, no prob. |
02:18:28 | FromGitter | <rayman22201> Thanks! |
02:22:08 | FromGitter | <zacharycarter> alright - time to try to fix this godot choose nim thing |
02:33:50 | FromGitter | <zacharycarter> sweet thanks Andreas, your suggestion about the identcache fixed my issues |
02:59:46 | * | itschin joined #nim |
03:01:57 | shashlick | why does brew install take so long on travis? just want to install libssh2 |
03:04:07 | FromGitter | <zacharycarter> it's brewing it dude |
03:05:17 | * | banc quit (Quit: ZNC - http://znc.in) |
03:13:06 | enthus1ast | PMunch maybe its the shell process |
03:13:16 | enthus1ast | oh he's gone |
03:14:17 | enthus1ast | that libssh2 that let you in if you ask? :) shashlick |
03:19:14 | leorize | that's libssh, libssh is a different one |
03:19:19 | leorize | that's libssh, libssh2 is a different one |
03:20:46 | enthus1ast | if i remember correct there is also a go implementation |
03:20:59 | enthus1ast | which did look a bit fresher |
03:22:18 | * | banc joined #nim |
03:43:07 | shashlick | well, testing a libssh2 wrapper in travis/osx |
03:43:57 | shashlick | https://travis-ci.org/genotrance/nimgen/jobs/450375397 <= spent 8 minutes installing libssh2 |
03:44:17 | shashlick | but well, now nimgen and wrappers are testing on osx and with nightly builds |
03:44:46 | shashlick | so 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:04 | FromGitter | <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:09 | FromGitter | <citycide> this is infuriating |
04:29:52 | shashlick | @kaushalmodi: nightlies builds suffer from this too - 8 extra minutes to do brew update/installs |
04:42:55 | shashlick | `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:07 | FromGitter | <zacharycarter> well - figuring out how to add new gd native nim modules to my project is totally eluding me |
04:49:15 | FromGitter | <zacharycarter> I thought I had it figured out - guess not :( |
04:51:09 | FromGitter | <kayabaNerve> @zacharycarter Black Magic |
04:51:39 | shashlick | in case anyone wants to test with nightlies - https://github.com/genotrance/nimgen/blob/master/.travis.yml |
04:52:28 | FromGitter | <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:41 | shashlick | anyone know why this fastText compilation fails? https://travis-ci.org/genotrance/nimgen/jobs/450391907 |
04:55:24 | shashlick | using 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:53 | FromGitter | <zacharycarter> hellz yeah - figured it out |
05:20:56 | FromGitter | <zacharycarter> Im godot nimmmmin |
05:21:08 | FromGitter | <zacharycarter> and about to be sleeping haha |
06:08:11 | FromGitter | <zacharycarter> https://gph.is/2FbpJ6G |
06:31:48 | * | nsf joined #nim |
06:36:52 | * | narimiran joined #nim |
06:43:33 | FromGitter | <AchalaSB> Anyone plz help me solve this issue ⏎ https://github.com/Feneric/nim-wasm-helpers/issues/3 |
06:50:27 | FromDiscord_ | <🐍 Aareon 🐳> Streaming Nim/Python coding https://twitch.tv/Aareooon |
06:52:06 | narimiran | Aareon isn't it too early for us Europeans, and too late for Americans? |
06:59:34 | * | mech422__ joined #nim |
07:01:12 | FromDiscord_ | <🐍 Aareon 🐳> might be. but if anyone is interested, im here |
07:02:51 | * | mech422_ quit (Ping timeout: 268 seconds) |
07:05:02 | FromGitter | <kdheepak> @Aareon I missed the start, what are you working on? |
07:12:58 | FromGitter | <kdheepak> @Aareon, I love black too! interesting project you've got going on there. |
07:13:39 | FromGitter | <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:18 | FromDiscord_ | <🐍 Aareon 🐳> @kdheepak the link is https://github.com/Aareon/py-nim |
07:21:35 | FromDiscord_ | <🐍 Aareon 🐳> If you want, I can respond better on Twitch |
07:22:04 | FromGitter | <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:48 | FromGitter | <kdheepak> @Aareon let me sign in over there. |
07:22:55 | * | Trustable joined #nim |
07:23:49 | FromGitter | <kdheepak> @Aareon no prob :) |
07:35:30 | * | vlad1777d quit (Ping timeout: 250 seconds) |
07:39:57 | FromGitter | <kdheepak> @Aareon I love chatting Python, and now Nim. I'm also learning Nim. |
07:40:55 | FromGitter | <Aareon> As do I |
07:41:14 | FromGitter | <Aareon> I'm new as well to Nim. Been studying the |
07:41:33 | FromGitter | <Aareon> compiler a lot lately |
07:42:09 | FromGitter | <kdheepak> Can tell! |
07:42:21 | FromGitter | <kdheepak> Looking forward to seeing your next stream |
07:42:45 | FromGitter | <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:24 | FromGitter | <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:32 | Araq | kaushalmodi: how do we make nightlies build 0.19.2? |
09:09:37 | FromGitter | <kaushalmodi> Araq: we just add one more dimension to the Travis matrix |
09:10:17 | FromGitter | <kaushalmodi> Right we have Linux/osx and now we cross that with devel/0.19.2 |
09:10:49 | FromGitter | <kaushalmodi> (and if someone can take up similar on Appveyor) |
09:11:15 | FromGitter | <kaushalmodi> Can some one jump in to enable windows nightly builds on Travis? |
09:11:33 | FromGitter | <kaushalmodi> We we don't need to keep on maintaining the Appveyor config too |
09:13:57 | Araq | yeah, trying it |
09:14:43 | * | Vladar joined #nim |
09:47:11 | * | vlad1777d joined #nim |
10:20:11 | Araq | er ... 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:03 | FromGitter | <mratsim> appveyor has windows32-bit support |
10:51:14 | FromGitter | <mratsim> Travis doesn’t work with Windows |
10:51:44 | FromGitter | <tim-st> appveyor works good with windows but as I said before the wring repo triggers the creation of the nightly builds |
10:51:52 | FromGitter | <tim-st> wrong |
10:51:58 | Araq | https://blog.travis-ci.com/2018-10-11-windows-early-release |
10:52:19 | FromGitter | <mratsim> oh, that’s new |
10:53:05 | FromGitter | <mratsim> hopefully they support Ubuntu 18.04 instead of 14.04 soon |
10:56:42 | * | elrood joined #nim |
10:57:34 | Araq | /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:40 | Araq | no idea what this error means |
13:16:54 | Araq | thank 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:00 | FromGitter | <zacharycarter> could be worse |
13:20:02 | FromGitter | <zacharycarter> it could be jenins |
13:20:06 | FromGitter | <zacharycarter> jenkins* |
13:22:08 | FromGitter | <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:20 | FromGitter | <kaushalmodi> finally found a workaround to get one-liner Nim code to work, the ones containing procs |
13:34:29 | FromGitter | <kaushalmodi> !eval proc foo(x: string): int; echo foo("abc"); proc foo(x: string): int = (if (x == ""): -1 else: x.len) |
13:34:33 | NimBot | 3 |
13:34:42 | FromGitter | <kaushalmodi> leorize: ^ |
13:35:17 | FromGitter | <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:04 | leorize | kaushalmodi: doesn't braces make up for that? |
14:15:57 | FromDiscord_ | <Shield> no irrlicht or ogre3d bindings hurt a lot |
14:17:42 | FromGitter | <kaushalmodi> can you show an example? |
14:18:49 | leorize | !eval for i in 0..10: (echo i); echo "hello" |
14:18:51 | NimBot | 0↵hello↵1↵hello↵2↵hello↵3↵hello↵4↵hello↵5↵hello↵6↵hello↵7↵hello↵8↵hello↵9↵hello↵10↵hello |
14:18:59 | leorize | great :P |
14:19:13 | leorize | !eval (for i in 0..10: (echo i)); echo "hello" |
14:19:16 | NimBot | 0↵1↵2↵3↵4↵5↵6↵7↵8↵9↵10↵hello |
14:19:34 | FromGitter | <kaushalmodi> doesn't work with proc |
14:19:42 | FromGitter | <kaushalmodi> I cannot paren-wrap proc defn |
14:19:49 | leorize | !eval for i in 0..10: ((echo i)); echo "hello" |
14:19:52 | NimBot | 0↵hello↵1↵hello↵2↵hello↵3↵hello↵4↵hello↵5↵hello↵6↵hello↵7↵hello↵8↵hello↵9↵hello↵10↵hello |
14:20:09 | FromGitter | <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:52 | FromGitter | <kaushalmodi> to complete those one-liner notes, I had seen Araq execute them from the command line a while back |
14:33:20 | FromGitter | <kaushalmodi> it was `nim <some switches> "<one liner>"` .. I forgot what those switches were |
14:35:55 | FromGitter | <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:13 | dom96 | Why is it so important for you to create one-liners? |
14:53:42 | FromGitter | <kaushalmodi> Finding a way to replace `perl -pi -e` |
14:54:01 | FromGitter | <kaushalmodi> I have seen Araq mention Nim one liner in the past. |
14:54:13 | FromGitter | <kaushalmodi> But seems like no one knows how to do it properly. |
14:54:27 | FromGitter | <kaushalmodi> So I am documenting it, whatever one-lining is possible |
15:00:00 | FromGitter | <kaushalmodi> dom96: and a practical reason: use the Nim boy here successfully at first try :) |
15:00:07 | FromGitter | <kaushalmodi> \* bot |
15:00:16 | dom96 | Nim boi :D |
15:19:28 | * | seni joined #nim |
15:25:06 | * | Perkol quit (Remote host closed the connection) |
15:28:01 | enthus1ast | maybe `;` should be allowed instead of newline, then everything would be possible |
15:28:25 | enthus1ast | additional to newline |
15:28:44 | FromGitter | <citycide> semi as newline probably wouldn't work. double semi might be ok |
15:29:58 | enthus1ast | does it has some meaning i'm not aware of? |
15:31:11 | FromGitter | <citycide> It already separates statements |
15:32:36 | FromGitter | <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:24 | FromGitter | <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:15 | Araq | kaushalmodi, 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:39 | FromDiscord_ | <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:37 | FromGitter | <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:36 | FromGitter | <xmonader> because when i use result i get ⏎ ⏎ ```code paste, see link``` [https://gitter.im/nim-lang/Nim?at=5bdf2fc7d3442e19728b59ca] |
17:45:56 | narimiran | @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:54 | FromGitter | <xmonader> @narimiran it breaks here https://github.com/nim-lang/Nim/blob/devel/lib/pure/collections/tableimpl.nim#L24 |
17:47:51 | narimiran | when/how it breaks? because the snippet you posted works for me |
17:48:50 | FromGitter | <xmonader> @narimiran whenever i run the test `nimble test` ⏎ https://github.com/xmonader/nim-loadenv/blob/master/tests/test1.nim |
17:49:29 | FromGitter | <xmonader> ```code paste, see link``` [https://gitter.im/nim-lang/Nim?at=5bdf3129cd2a6b5bdc95e76f] |
17:49:43 | FromGitter | <xmonader> if i change result to var res and return it it just works |
17:53:15 | narimiran | i guess you don't have the first line: `result = initTable[string, string]()`? |
17:53:38 | FromGitter | <xmonader> isn't that done automatically? |
17:53:44 | narimiran | because without it, it will crash as you describe, but you need to initialize the table |
17:54:28 | narimiran | no, only seqs and strings did get that done automatically in the recent changes |
17:55:08 | FromGitter | <xmonader> Ah I see, many thanks @narimiran |
17:55:19 | narimiran | np :) |
18:35:43 | * | SenasOzys joined #nim |
19:05:12 | * | dorelix joined #nim |
19:09:16 | itschin | are checks on by default without release/quick |
19:30:23 | dom96 | yes |
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:38 | shashlick | yay - reproduced failure by running travis locally - https://stackoverflow.com/questions/21053657/how-to-run-travis-ci-locally |
19:57:52 | shashlick | but now wish me luck on what this issue is |
20:09:52 | * | darithorn joined #nim |
20:39:19 | shashlick | well, 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:08 | PMunch | Hmm, is there any documentation for the rest of nimsuggests commands? |
21:27:35 | PMunch | It 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:03 | PMunch | If 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:44 | PMunch | I'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:36 | FromGitter | <zetashift> @PMunch this looks easy enough for a noob like me: https://github.com/PMunch/nimlsp/issues/7 |
23:01:15 | FromGitter | <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:30 | dom96 | zetashift: pretty sure that would be nkNil |
23:54:34 | dom96 | *nkNilLit |