00:50:18 | * | computerquip quit (Ping timeout: 276 seconds) |
00:50:18 | * | gshumway_ quit (Ping timeout: 276 seconds) |
00:50:39 | FromDiscord | <devlop_gaming> Ok so I'm trying to get nim to find my .so files which is in the /usr directory in linux but for some reason it's unable to find it even tho it's in path and I tried everything. Anyone know why? |
00:56:41 | * | gshumway joined #nim |
01:04:20 | * | computerquip joined #nim |
01:41:12 | * | xutaxkamay_ joined #nim |
01:42:42 | * | xutaxkamay quit (Read error: Connection reset by peer) |
01:42:42 | * | xutaxkamay_ is now known as xutaxkamay |
02:01:40 | * | skippy8 quit (Quit: WeeChat 4.4.2) |
03:04:14 | FromDiscord | <aryzen> This is apparently an error that's happening a lot in the background for me? In Zed it constantly crops up, so maybe it's happinging in a loop https://media.discordapp.net/attachments/371759389889003532/1365161451396005918/image.png?ex=680c4d2d&is=680afbad&hm=8841fa0c976be43120926c4d3aea62577f4b52dead7b797883ea2667820a75e5& |
03:05:33 | FromDiscord | <aintea> Yeah the nim lsp is sometimes a drama queen and just crashes because it feels like it |
03:06:04 | FromDiscord | <aryzen> I feel like I have a screwed installation because I'm not doing anything weird and it's still failing; I also had to install it in a "funny" way because it refused to otherwise |
03:06:09 | FromDiscord | <aintea> I do feel like the 2.2.6 update fixed some problems, I don't remember having a lot of problems anymore |
03:06:27 | FromDiscord | <aintea> In reply to @aryzen "I feel like I": Also don't use the official LSP, use nimlsp |
03:06:27 | FromDiscord | <aryzen> Oh, I'm on 2.2.4 |
03:06:31 | FromDiscord | <aintea> Not Nim langserver |
03:06:33 | FromDiscord | <aryzen> nimlsp won't install |
03:06:42 | FromDiscord | <aintea> Install it with nimble |
03:06:45 | FromDiscord | <aryzen> yeah |
03:06:47 | FromDiscord | <aryzen> hold on |
03:06:59 | FromDiscord | <aryzen> https://media.discordapp.net/attachments/371759389889003532/1365162143728664597/image.png?ex=680c4dd2&is=680afc52&hm=d995e8ef64388ac6437a84158a2fd27768b2bf9c3ebd19ea99ea9948496cbf59& |
03:07:00 | FromDiscord | <aryzen> This |
03:07:07 | FromDiscord | <aintea> Then link it to /sbin/nimlangserver or whatever the "official" lsp binary name is |
03:07:25 | FromDiscord | <aintea> In reply to @aryzen "This": Your nimble is broken |
03:07:38 | FromDiscord | <aintea> Remove it and reinstall it using the curl command on Nim's website |
03:08:15 | FromDiscord | <aintea> The `curl -fsSL https://thingamajig.thing | sh` |
03:08:26 | FromDiscord | <aryzen> Nimble is installed with nim in brew |
03:08:36 | FromDiscord | <aryzen> I don't think I can remove it |
03:08:51 | FromDiscord | <aintea> Then remove it |
03:08:59 | FromDiscord | <aintea> And install Nim using the curl command on the website |
03:09:06 | FromDiscord | <aryzen> ok, I will try it |
03:09:08 | FromDiscord | <aintea> Just brew uninstall nim |
03:09:15 | FromDiscord | <aintea> Or whatever it is on brew |
03:09:20 | FromDiscord | <aryzen> ye that's it |
03:09:25 | FromDiscord | <aryzen> I'll curl from the website |
03:09:45 | FromDiscord | <aryzen> the website is 2.2.4, how do I get .6? |
03:09:51 | FromDiscord | <aryzen> Nightlies? |
03:10:11 | FromDiscord | <aintea> Install the thing on the website then follow updating instructions in the patchnote |
03:10:17 | FromDiscord | <aintea> I don't remember the exact steps |
03:10:41 | FromDiscord | <aintea> My bad it's not 2.2.4 |
03:10:46 | FromDiscord | <aintea> (edit) "2.2.4" => "2.2.6" |
03:10:49 | FromDiscord | <aintea> It's 2.2.4 |
03:11:14 | FromDiscord | <aryzen> iirc choosenim pulls the x86/64 version even if my system is arm |
03:12:18 | FromDiscord | <aryzen> OH, no it pulled arm ver, nevermind! |
03:18:51 | FromDiscord | <aryzen> In reply to @aintea "Then link it to": Sorry to be a bother, but how do I do this? |
03:19:25 | FromDiscord | <aintea> This is the dirty way to do it |
03:19:38 | FromDiscord | <aintea> The clean way is to modify the config for your Zed nim plugin |
03:19:43 | FromDiscord | <aryzen> also my nimlangserver came as a nimble package, could I just remove it? |
03:19:59 | FromDiscord | <aintea> You can |
03:20:07 | FromDiscord | <aintea> But just install nimlsp |
03:20:17 | FromDiscord | <aryzen> Yeah I just installed nimlsp, that works now |
03:20:21 | FromDiscord | <aintea> Until everything works don't delete anything |
03:20:29 | FromDiscord | <aintea> In reply to @aryzen "Yeah I just installed": So your zed works perfectly now ? |
03:20:37 | FromDiscord | <aryzen> no, the install 😅 |
03:20:44 | FromDiscord | <aintea> Oh yeah |
03:20:47 | FromDiscord | <aryzen> It failed to install before, but it succeeded this time |
03:21:12 | FromDiscord | <aintea> Then go to Zed, and modify the lsp path, no idea how to do that since I don't use Zed |
03:21:23 | FromDiscord | <aryzen> I'd prefer using vscode but I was using zed to troubleshoot |
03:21:26 | FromDiscord | <aintea> But it should be pretty easy, Zed is well indicated |
03:21:34 | FromDiscord | <aintea> In reply to @aryzen "I'd prefer using vscode": Then even better |
03:21:49 | FromDiscord | <aintea> Go to your Nim plugin, and modify the path to LSP to select nimlsp |
03:22:36 | FromDiscord | <aryzen> ~~should I use nim lang org or nimsaem?~~ |
03:22:44 | FromDiscord | <aintea> For what |
03:22:53 | FromDiscord | <aryzen> As my nim plugin, since vscode has like 50 options? |
03:22:53 | FromDiscord | <aintea> The nim plugin ? |
03:22:55 | FromDiscord | <aryzen> (edit) "options?" => "options" |
03:22:59 | FromDiscord | <aintea> Oh I have no idea |
03:23:05 | FromDiscord | <aintea> If there is an official one, take it |
03:23:14 | FromDiscord | <aintea> If not, take the one with the most downloads I guess |
03:23:30 | FromDiscord | <aryzen> nim lang org is official afaik |
03:23:36 | FromDiscord | <aintea> Then take this one |
03:24:29 | FromDiscord | <aryzen> Like so? https://media.discordapp.net/attachments/371759389889003532/1365166548679004221/image.png?ex=680c51ec&is=680b006c&hm=740f6049718e314797c076d59118e4c83182e1c95c9907a362971ebdabf06fe9& |
03:24:45 | FromDiscord | <aintea> Yep |
03:24:49 | FromDiscord | <aryzen> alright! wish me luck! |
03:24:52 | FromDiscord | <aintea> Now it should work perfectly |
03:24:58 | FromDiscord | <aintea> If not, ping me |
03:26:45 | FromDiscord | <aryzen> It doesn't look like it worked, there's no processes |
03:31:27 | FromDiscord | <aryzen> sorry for ping on short notice! @aintea |
03:31:42 | FromDiscord | <aintea> Don't be sorry I told you to ping |
03:31:57 | FromDiscord | <aintea> What happens when you `nimlsp` in a terminal |
03:32:41 | FromDiscord | <aryzen> Hangs here https://media.discordapp.net/attachments/371759389889003532/1365168611492237382/image.png?ex=680c53d8&is=680b0258&hm=995cc11fb7d3cf64c499de93e0334781f29a2389df1252aa32f8ef3608c62396& |
03:33:04 | FromDiscord | <aintea> Ok then it should be good |
03:33:14 | FromDiscord | <aintea> Is there any log file in vscode |
03:34:14 | FromDiscord | <aryzen> uhh, suddenly I'm getting these popups https://media.discordapp.net/attachments/371759389889003532/1365168998638948352/image.png?ex=680c5434&is=680b02b4&hm=90f6bdb845ad85ac8ecb2340e9294ae7e92ddad131352e49d3101d899e4efe89& |
03:34:33 | FromDiscord | <aintea> Ok so nimlsp does start |
03:34:38 | FromDiscord | <aintea> But it crashes for some reason |
03:34:53 | FromDiscord | <aintea> Try to put back nimlangserver as your LSP in the nim plugin parameters |
03:35:18 | FromDiscord | <aryzen> I cannot reinstall it, it errors out as before |
03:35:27 | FromDiscord | <aintea> What ? |
03:35:35 | FromDiscord | <aintea> How is that even possible |
03:35:40 | FromDiscord | <aryzen> 1sec, let me install it again |
03:35:42 | FromDiscord | <aintea> You have Nim 2.2.4 |
03:35:49 | FromDiscord | <aintea> `nimble install nimlangserver` |
03:36:03 | FromDiscord | <aryzen> https://media.discordapp.net/attachments/371759389889003532/1365169457449930863/image.png?ex=680c54a2&is=680b0322&hm=67d54e167d03e8db1d26cd8cdac6f4a256d28b8c8b1e775a444df1d81e66ed09& |
03:36:29 | FromDiscord | <aryzen> 2.0.8 is not even remotely relevant to anything I have so idk what that is |
03:36:33 | FromDiscord | <aintea> Ok so |
03:36:42 | FromDiscord | <aryzen> I tried nim years ago and gave up...? |
03:36:46 | FromDiscord | <aintea> Delete your ~/.nimble |
03:36:46 | FromDiscord | <aryzen> Is that a broken old install? |
03:36:56 | FromDiscord | <aintea> And redo the install with curl |
03:37:07 | FromDiscord | <aryzen> ok, anything else I should uninstall? |
03:37:12 | FromDiscord | <aintea> I don't think so |
03:38:06 | FromDiscord | <aryzen> It completed instantly https://media.discordapp.net/attachments/371759389889003532/1365169975270047875/image.png?ex=680c551d&is=680b039d&hm=d4e685f5b138022b9445a63ddc6259554e52147416a514153fc9479a16f323d4& |
03:38:38 | FromDiscord | <aintea> Now install nimlangserver |
03:38:48 | FromDiscord | <aintea> Wait |
03:39:02 | FromDiscord | <aintea> Did you remove ~/.nimble before reinstalling with curl ? |
03:39:06 | FromDiscord | <aryzen> yeah |
03:39:15 | FromDiscord | <aintea> Then that's good |
03:39:19 | FromDiscord | <aryzen> that folder was kinda huge for some reason |
03:39:20 | FromDiscord | <aintea> Install nimlangserver |
03:39:29 | FromDiscord | <aryzen> It's churning at that rn |
03:39:51 | FromDiscord | <aryzen> nope https://media.discordapp.net/attachments/371759389889003532/1365170416716480613/image.png?ex=680c5586&is=680b0406&hm=1bd35ae96c30cd22f899da031ea22d887bdb23a2af5f6f53ada8187292316226& |
03:40:07 | FromDiscord | <aintea> Interesting |
03:40:10 | FromDiscord | <aryzen> Are there other folders to wipe? |
03:40:18 | FromDiscord | <aintea> Not to my knowledge |
03:40:24 | FromDiscord | <aryzen> There must be some sort of old cache with something broken in it |
03:40:48 | FromDiscord | <aintea> Maybe delete your ~/.local/share/cache/nim` |
03:40:55 | FromDiscord | <aintea> (edit) "~/.local/share/cache/nim`" => "`~/.local/share/cache/nim`" |
03:40:59 | FromDiscord | <aintea> Or the equivalent on macos |
03:41:07 | FromDiscord | <aintea> Should be in ~/.local |
03:41:20 | FromDiscord | <aryzen> ~/.local/share has no /cache folder for me |
03:41:26 | FromDiscord | <aryzen> I have a ~/.cache though |
03:41:39 | FromDiscord | <aintea> Oh then delete the cache for Nim in that folder |
03:41:50 | FromDiscord | <aintea> If there is none then don't do anything |
03:41:59 | FromDiscord | <aryzen> There is one but I've deleted it before |
03:42:29 | FromDiscord | <aryzen> no luck deleting the cache folder |
03:42:39 | FromDiscord | <aintea> Can you install nimlangserver with brew ? |
03:42:45 | FromDiscord | <aintea> We're going to do this the dirty way |
03:42:56 | FromDiscord | <aintea> If you can't build it we're going to give you the binary |
03:42:57 | FromDiscord | <aryzen> no luck https://media.discordapp.net/attachments/371759389889003532/1365171195431092224/image.png?ex=680c5640&is=680b04c0&hm=6c12802458e85addcd6bf922784a5ea32426ba503db0ad5f93db1a7bd35a0322& |
03:43:25 | FromDiscord | <aryzen> I can "install" it with `nimble install nimlangserver --useLocalNim` (or something similar to that) |
03:43:32 | FromDiscord | <aryzen> but that gives me 500 warnings and leads to my really buggy install |
03:43:54 | FromDiscord | <aintea> Without the last flag, it should compile fine |
03:44:14 | FromDiscord | <aryzen> Yeah that's my concern, nowhere does it say I have to use that flag, so where's the issue? |
03:44:27 | FromDiscord | <aintea> Try to remove the ~/.nimble directory once more, close your terminal, reopen it and then run the curl thingy |
03:44:28 | FromDiscord | <aryzen> I must have some sort of broken old nim 2.0.8 install somewhere |
03:44:39 | FromDiscord | <aintea> You know what |
03:44:41 | FromDiscord | <aintea> Do this |
03:45:05 | FromDiscord | <aintea> `find / -name "2.0.8"` |
03:45:14 | FromDiscord | <aintea> Check in the output if you got any Nim things |
03:45:27 | FromDiscord | <aintea> And if so delete them IF YOU EXACTLY KNOW WHAT YOU ARE DOING |
03:45:42 | FromDiscord | <aryzen> Wait should I sudo that command? |
03:45:45 | FromDiscord | <aryzen> lots of access denied |
03:45:57 | FromDiscord | <aintea> No, don't |
03:45:58 | FromDiscord | <aryzen> (edit) "access" => "permission" |
03:46:05 | FromDiscord | <aryzen> kk, I'll let it cook for a while |
03:46:11 | FromDiscord | <aintea> If it's access denied then just add a `2>/dev/null` at the end |
03:46:40 | FromDiscord | <aintea> Except if you installed Nim with sudo, and even then it shouldn't be readable only by superuser |
03:46:44 | FromDiscord | <aryzen> It's denied I think because it started with system folders |
03:47:35 | FromDiscord | <aintea> Yeah |
03:47:38 | FromDiscord | <aintea> So you should be good |
03:48:06 | FromDiscord | <aryzen> oh boy, how long should this take? |
03:48:39 | FromDiscord | <aintea> sent a long message, see https://pasty.ee/ylIYGmgC |
03:48:53 | FromDiscord | <aintea> In reply to @aryzen "oh boy, how long": Depends on how many files you have on your system |
03:49:06 | FromDiscord | <aintea> Install `brew install fd` for faster search |
03:49:21 | FromDiscord | <aintea> The command will be `fd / --glob "2.0.8"` |
03:49:28 | FromDiscord | <aryzen> Is the magnitute on hours or minute? |
03:49:31 | FromDiscord | <aintea> It will use all your cpu cores, therefore faster |
03:49:40 | FromDiscord | <aintea> In reply to @aryzen "Is the magnitute on": Minutes |
03:49:48 | FromDiscord | <aintea> But with fd it should be within seconds |
03:50:04 | FromDiscord | <aintea> Except if you have a billion files on your computer (and when I say a billion I really mean a billion) |
03:50:17 | FromDiscord | <aryzen> I doubt I have billions, and it's already been minutes so I may as well let it finish |
04:05:53 | FromDiscord | <aryzen> So that is still running, I killed it and installed fd; the command failed :S |
04:07:20 | FromDiscord | <aryzen> @aintea `[fd error]: Search path '2.0.8' is not a directory.`↵↵Sorry I'm so hopless rn! |
04:10:00 | FromDiscord | <aryzen> I did `fd 2.0.8` and it didn't find anything but I don't know if that's a good search... |
04:10:58 | FromDiscord | <aintea> It's not the right syntax for the command |
04:11:03 | FromDiscord | <aintea> Use the command I gave you |
04:11:17 | FromDiscord | <aintea> `fd / --glob "2.0.8" 2>/dev/null` |
04:11:38 | FromDiscord | <aryzen> that completed instantly with no results |
04:11:54 | FromDiscord | <aintea> Then you don't have any 2.0.8 installations I guess |
04:12:05 | FromDiscord | <aintea> Let's let someone more experienced than me help you out here |
04:13:29 | FromDiscord | <aintea> Good luck |
04:13:57 | FromDiscord | <aryzen> ok... I'll try and find something about that lock file |
04:25:31 | FromDiscord | <aryzen> Thanks for all the help thus far |
04:28:54 | FromDiscord | <aryzen> ... Also it kinda feels like the IRC bridge is dead |
04:30:28 | * | Guest17 joined #nim |
04:31:21 | FromDiscord | <aryzen> nop the bridge works |
04:31:28 | * | Guest17 quit (Client Quit) |
05:11:11 | FromDiscord | <aryzen> I even installed Nim 2.0.8 but it still says checksum mismatch |
05:14:59 | FromDiscord | <lainlaylie> if you have nim 2.0.8 then you don't need nimble to clone and build another copy of it |
05:15:10 | FromDiscord | <lainlaylie> there should be a flag that tells nimble to use the system nim |
05:15:36 | FromDiscord | <lainlaylie> problems with git configuration can cause checksum mismatch: https://github.com/nim-lang/nimble/issues/1188 |
05:18:02 | FromDiscord | <aryzen> I want to use nim 2.2.4 (latest?) but nimlangserver seems to require 2.0.8 of a particular checksum |
05:18:06 | FromDiscord | <aryzen> @lainlaylie |
05:18:46 | FromDiscord | <lainlaylie> langserver requires to be built by nim 2.0.8 |
05:19:12 | FromDiscord | <lainlaylie> that doesn't restrict the nim version of your project or your nimsuggest |
05:20:23 | FromDiscord | <aryzen> lets say I come from a completely fresh nim install from choosenim at 2.2.4, following the instructions from the website↵↵what are my next steps to get nimlangserver to work? |
05:20:39 | FromDiscord | <aryzen> (edit) "2.2.4," => "2.2.4 (which is what you get by default)," |
05:22:00 | FromDiscord | <lainlaylie> normally just nimble install nimlangserver (allegedly; i never do this)↵but since theres something going wrong at the git checksum match, i dont know |
05:22:50 | FromDiscord | <aryzen> the checksums were recently changed in the nimble.lock on the git but neither the old or the new checksums match what mine claims to be |
05:23:22 | FromDiscord | <aryzen> How is yours set up if you don't use nimble? |
05:24:58 | FromDiscord | <lainlaylie> i do use nimble but i git clone the repository then do nimble build↵that won't help you here because it'll still need to clone nim 2.0.8 |
05:25:41 | FromDiscord | <lainlaylie> you might try getting a nim 2.0.8 elsewhere (choosenim since you're already using it) and tell nimble to use the system nim instead of building one |
05:27:13 | FromDiscord | <lainlaylie> is your git up to date? maybe it's not correctly supporting the options that nimble uses to clone stuff (https://github.com/nim-lang/nimble/blob/d4aa18b18b6126171ea5ec5adbede8ed2cb401bf/src/nimblepkg/download.nim#L43) |
05:29:14 | FromDiscord | <aryzen> My git is 2.23.0 where the latest appears to be 2.49.0 |
05:29:29 | FromDiscord | <aryzen> So... It's a little older? |
05:29:38 | FromDiscord | <aryzen> But I don't think that's missing features |
05:30:03 | FromDiscord | <lainlaylie> it's half a decade old, i would try upgrading it first if thats not hard to do |
05:30:14 | FromDiscord | <aryzen> It... might be? Since that's what came with macos |
05:30:25 | FromDiscord | <aryzen> brew doesn't seem to have a git package... for some odd reason? |
05:30:54 | FromDiscord | <aryzen> oh oops, didn't scroll up |
05:33:21 | FromDiscord | <aryzen> ~~brew casually updating literally every package on my system instead of doing what I asked for~~ |
05:43:54 | FromDiscord | <aryzen> OH WOW Was that really it?! https://media.discordapp.net/attachments/371759389889003532/1365201633587363841/image.png?ex=680c7299&is=680b2119&hm=82963dcaf902a1f062cb4bbe808d3a62394a0e3ca4ed8198c4d8edd9ca7fa088& |
05:44:28 | FromDiscord | <aryzen> ~~IS THIS WHY HALF MY PACKAGES DON'T WORK FOR ME??~~ |
05:44:53 | FromDiscord | <lainlaylie> lol, nice |
05:45:23 | FromDiscord | <lainlaylie> if that was really it, nimble probably needs to add some note somewhere about git version/configuration requirements |
05:51:49 | FromDiscord | <aryzen> I didn't use any scientific method or testing here but I wanna say with 99% confidence it was my outdated git version |
05:52:25 | FromDiscord | <aryzen> So yeah I think for the sake of mac users, who really are the only ones who would suffer from this, there should be a note |
05:53:41 | FromDiscord | <aryzen> maybe installing via choosenim should ask users to select a newer git version if the detected one is insufficient |
05:54:12 | FromDiscord | <aryzen> ... And maybe have a requirement on the brew package |
06:25:56 | FromDiscord | <aryzen> Aaaargh...!!!↵↵`DBG Nimsuggest is not working, returning empty result` |
06:31:53 | FromDiscord | <aryzen> ~~ok maybe its working actually, it's still a touch slow but fingers crossed it stays working~~ |
06:46:37 | FromDiscord | <aryzen> So it appears to loop on something like "Timeout on if file is known, assuming file is unknown" (not verbatim, from memory), so it reloads the file and seems to spawn a new nimsuggest; This pegs the cpu at 100% causing it to timeout again and start reading the file over again |
08:57:12 | * | ntat joined #nim |
09:10:04 | * | ntat quit (Quit: leaving) |
09:18:49 | * | ntat joined #nim |
11:05:12 | FromDiscord | <nocturn9x> can someone with more experience debugging Nim code help me out here? |
11:05:18 | FromDiscord | <nocturn9x> I've been trying to use gdb, to no avail |
11:05:27 | FromDiscord | <nocturn9x> Getting completely random segfaults and I can't identify the source |
11:05:43 | FromDiscord | <nocturn9x> compiling with `-d:debug` prints no exception and no traceback, with or without `--panics:on` |
11:06:27 | FromDiscord | <nocturn9x> I have a known working commit where this doesn't happen and then one where it does happen but nothing else seems to have changed |
11:07:30 | FromDiscord | <nnsee> In reply to @nocturn9x "I have a known": could do a git bisect to identify the exact commit that introduced the segfaults |
11:07:35 | FromDiscord | <nocturn9x> oh I have tried |
11:07:40 | FromDiscord | <nocturn9x> git bisect is what got me the known working commit |
11:07:45 | FromDiscord | <nnsee> ah i see |
11:07:48 | FromDiscord | <nocturn9x> `7efd176beaba00a615f61abe16472d9ce0e253d0` is the last one where the crash doesn't occur |
11:07:57 | FromDiscord | <nocturn9x> the commit right after that already crashes |
11:08:01 | FromDiscord | <nocturn9x> _but reverting it changes nothing_ |
11:08:05 | FromDiscord | <nocturn9x> I am so fucking confused rn |
11:08:26 | FromDiscord | <nnsee> it could be symptomatic, not the cause |
11:08:29 | FromDiscord | <nocturn9x> and all the tools I usually employ to debug this are utterly unhelpful |
11:08:35 | FromDiscord | <nnsee> ie that commit changed something in the memory layout that made the bug easy to trigger |
11:08:50 | FromDiscord | <nocturn9x> perhaps, but I've had datagen runs go on for days on end without problems |
11:08:56 | FromDiscord | <nocturn9x> after that commit they crash within minutes |
11:09:10 | FromDiscord | <nnsee> can you link the commit |
11:09:13 | FromDiscord | <nocturn9x> yes |
11:10:54 | FromDiscord | <nocturn9x> <https://git.nocturn9x.space/heimdall-engine/heimdall/commit/f1b7366235e49ea54dae9009804c2eea5d2ec289> |
11:11:09 | FromDiscord | <nocturn9x> the code has changed a lot since then |
11:11:18 | FromDiscord | <nocturn9x> I can give you a way to reproduce the issue, if you can build the project |
11:15:48 | FromDiscord | <nocturn9x> all you really need is nim and clang, then `make native DBG_SYMBOLS=1`, run `./bin/heimdall datagen --workers=16 --seed=5892452553848641876` and wait a few minutes (2-3 usually) |
11:16:14 | FromDiscord | <nocturn9x> it'll choke and die and segfault and there seems to be no way of catching this as an exception or anything |
11:16:33 | FromDiscord | <nocturn9x> I have inspected the near objects via GDB when it crashes |
11:16:35 | FromDiscord | <nocturn9x> they all look fine |
11:16:39 | FromDiscord | <nocturn9x> so I am truly at a loss here |
11:18:09 | FromDiscord | <nocturn9x> In reply to @nocturn9x "<https://git.nocturn9x.space/heimdall-engine/heimda": the thing is I know this is not the culprit because if I disable repetition detection, the code insta-crashes |
11:18:15 | FromDiscord | <nocturn9x> so wtf is going on 😠|
11:56:03 | * | ntat quit (Quit: leaving) |
12:05:52 | * | andy-turner_ joined #nim |
13:00:07 | * | ntat joined #nim |
13:14:46 | * | skippy8 joined #nim |
15:42:32 | * | skippy8 quit (Quit: WeeChat 4.4.2) |
16:28:04 | * | derpydoo joined #nim |
17:33:58 | FromDiscord | <Phil> I'm basically overhauling nim's smtp at the moment |
17:34:01 | FromDiscord | <Phil> (edit) "I'm basically overhauling nim's smtp ... at" added "module" |
17:35:48 | FromDiscord | <Phil> sent a code paste, see https://play.nim-lang.org/#pasty=tnuaJWym |
17:36:14 | FromDiscord | <Phil> (edit) "https://play.nim-lang.org/#pasty=kcMLagPD" => "https://play.nim-lang.org/#pasty=vKRZqlQv" |
17:36:46 | FromDiscord | <Phil> (edit) "https://play.nim-lang.org/#pasty=EKRRcbnx" => "https://play.nim-lang.org/#pasty=TBAViXMV" |
17:41:13 | FromDiscord | <Robyn [She/Her]> In reply to @isofruit "I've got a proc": just overload it? |
17:41:29 | FromDiscord | <Phil> I don't want ot write about a thousand overloads, or do you mean just for the sender? |
17:43:31 | FromDiscord | <microwave3607> nimllo |
17:43:35 | FromDiscord | <microwave3607> I have a nimquestion |
17:43:47 | FromDiscord | <microwave3607> https://github.com/nim-lang/RFCs/issues/548 |
17:43:58 | FromDiscord | <microwave3607> I didn't nimderstood this, was this nimplemented? |
17:44:46 | FromDiscord | <griffith1deadly> In reply to @microwave3607 "I didn't nimderstood this,": dont implemented |
17:44:48 | FromDiscord | <griffith1deadly> https://github.com/nim-lang/RFCs/issues/559 |
17:44:57 | FromDiscord | <griffith1deadly> this is accepted rfc |
17:45:02 | FromDiscord | <griffith1deadly> that will be implemented |
17:46:34 | FromDiscord | <microwave3607> thanks |
17:46:57 | FromDiscord | <microwave3607> I'm waiting for years, it would be great |
17:48:50 | FromDiscord | <griffith1deadly> In reply to @microwave3607 "I'm waiting for years,": have you seen nimony? |
17:49:34 | FromDiscord | <microwave3607> In reply to @griffith1deadly "have you seen nimony?": no |
17:49:57 | FromDiscord | <griffith1deadly> In reply to @microwave3607 "no": https://github.com/nim-lang/nimony/blob/master/doc/design.md |
17:50:05 | FromDiscord | <griffith1deadly> :nim1: |
17:51:51 | FromDiscord | <microwave3607> In reply to @griffith1deadly "https://github.com/nim-lang/nimony/blob/master/doc/": :O |
17:53:23 | FromDiscord | <griffith1deadly> now we need waiting for years for nim 3 as full nim 2 replacement |
17:57:47 | FromDiscord | <microwave3607> I'll wait for sum times, for now. |
17:57:56 | FromDiscord | <microwave3607> I didn't learned much of the language |
18:36:13 | FromDiscord | <Robyn [She/Her]> In reply to @isofruit "I don't want ot": yep |
18:46:28 | FromDiscord | <Phil> Solved the problem differently, thus this issue disappeared ^^ |
19:00:55 | FromDiscord | <ElegantBeef> In reply to @isofruit "I've got a proc": Wait what's teh actual issue? |
19:01:57 | FromDiscord | <ElegantBeef> Like you want all `Email`s to be `string | Email`? |
19:02:31 | FromDiscord | <ElegantBeef> Cause that's probably doable just doing `[T: distinct Email | String]` |
19:02:36 | FromDiscord | <ElegantBeef> (edit) "String]`" => "string]`" |
19:02:44 | FromDiscord | <Elegantbeef> ping |
19:02:55 | FromDiscord | <ElegantBeef> Pong |
19:03:19 | FromDiscord | <Elegantbeef> Still down Discord -\> Matrix need to selfhost bridge |
19:16:15 | FromDiscord | <Phil> In reply to @elegantbeef "Wait what's teh actual": The issue is mostly I want a generic and a default value |
19:16:26 | FromDiscord | <Phil> And wanting both at the same time is a problematic desire |
19:17:02 | FromDiscord | <Phil> sent a code paste, see https://play.nim-lang.org/#pasty=mJelwEjW |
19:18:37 | * | skippy8 joined #nim |
19:28:31 | FromDiscord | <ElegantBeef> Jesus you hate yourself 😄 |
19:29:07 | FromDiscord | <ElegantBeef> You want to mix and match all of these? |
19:30:58 | FromDiscord | <Phil> I don't, I'd like to give users the flexibility |
19:31:42 | Amun-Ra | why not just add methods .add_cc, .add_bcc, .add_fooshmoo to the Message object itself? |
19:31:47 | FromDiscord | <Phil> I can live with forcing my users that if one is Email, they all must be.↵However, if possible I'd need want to enforce arbitrary limitations |
19:32:22 | FromDiscord | <Phil> Because the smtp module currently works with createMessage and I didn't want to refactor so hard that I include the builder pattern suddenly |
19:45:15 | FromDiscord | <ElegantBeef> seems like a `createMessage(subject, body, Message(additionalSenders: @["a", "b"].toEmails, ...))` would be the most sensible approach |
19:45:28 | FromDiscord | <ElegantBeef> Cause yea generics are poo poo heads |
19:47:04 | FromDiscord | <ElegantBeef> Even doing everything properly it doesn't compile https://play.nim-lang.org/#pasty=wNDignoY |
19:56:19 | FromDiscord | <microwave3607> what it means to write `A | B` on the type part |
19:56:25 | FromDiscord | <microwave3607> (edit) "part" => "part?" |
20:00:40 | FromDiscord | <Phil> It turns the proc into a generic (which means its a fancy template, aka a piece of code that gets copy pasted as it gets used for the specific type). |
20:00:51 | FromDiscord | <Phil> (edit) "It turns the proc into a generic ... (which" added "for those types" |
20:01:58 | FromDiscord | <Phil> sent a code paste, see https://play.nim-lang.org/#pasty=fgxSeLZN |
20:13:23 | * | Ekho quit (Quit: CORE ERROR, SYSTEM HALTED.) |
20:21:35 | * | Ekho joined #nim |
20:38:13 | FromDiscord | <microwave3607> got it |
20:38:15 | FromDiscord | <microwave3607> thanks |
20:51:34 | * | andy-turner_ quit (Quit: Leaving) |
21:09:26 | * | ntat quit (Quit: leaving) |
21:20:32 | FromDiscord | <choltreppe> sent a code paste, see https://play.nim-lang.org/#pasty=wboRLNOv |
22:18:07 | Amun-Ra | it does work |
22:36:36 | FromDiscord | <Elegantbeef> Oh shit bridge is back both ways?! |
22:36:38 | FromDiscord | <ElegantBeef> Ping |
22:36:43 | FromDiscord | <Elegantbeef> Indeed |
22:36:53 | FromDiscord | <Elegantbeef> `{.all.}` does not bring in fields @choltreppe |
22:42:14 | Amun-Ra | green beef is back (the other one is purple in my client) |
22:44:07 | FromDiscord | <Elegantbeef> Green beef the best flavour |
22:44:13 | Amun-Ra | :> |
23:01:21 | FromDiscord | <choltreppe> In reply to @Amun-Ra "it does work": I did some tests, seems like it imports the private defs but not private fields of objects 😦 |
23:01:23 | * | skippy8 quit (Quit: WeeChat 4.4.2) |
23:01:57 | FromDiscord | <Elegantbeef> If only someone said that |
23:02:12 | FromDiscord | <Elegantbeef> use `std/importutils` if you are attempting to break code |
23:14:16 | FromDiscord | <choltreppe> oh sorry missed that message. thanks |
23:14:33 | FromDiscord | <Elegantbeef> Inexcusable! |
23:15:02 | FromDiscord | <choltreppe> 😂 |
23:45:54 | * | anddam quit (Ping timeout: 260 seconds) |