Stream: beginners

Topic: yet another compilation/run problem


view this post on Zulip Artur Swiderski (Nov 11 2023 at 21:13):

I am doing this peek application to facilitate working with long logs and on my last commit 70677b9a79b10c37bb37f72754a6b2dfb747c43a
file https://github.com/salarii/peek/blob/main/regex.roc crashes compiler. I haven't isolated which line causes problem yet. I don't have much time for this today and isolating the problem, will take me quite a while anyway. Maybe by chance you have a hunch? Definitely compiler has a bug but sometimes usage of different construction can prevent crash. Any help ?

view this post on Zulip Artur Swiderski (Nov 12 2023 at 23:25):

it seems that some problem stems from fact that I am using record update { rec & .. } instead of creating entire record from scratch it seems that in some cases it does not work( for sure it is much better than it used to be like 1 month ago but still some problems). I don't have more details for now to point out specific lines in the file.

view this post on Zulip Anton (Nov 13 2023 at 10:26):

I'll try to take look later today

view this post on Zulip Artur Swiderski (Nov 13 2023 at 14:38):

maybe wait a bit I will spend some time to isolate problematic lines if I succeed I will create new commit and mark those lines with proper comments, this way you will be spared some effort, if I fail I will notify

view this post on Zulip Anton (Nov 13 2023 at 14:52):

Sure, thanks @Artur Swiderski :)

view this post on Zulip Artur Swiderski (Nov 13 2023 at 15:55):

@Anton in this commit e6e0b29fd5b715cb05d0bdfef2a16194f474d01d I indicated problems in this fashion # BUG ... # ....
So if you uncomment you will be able to reproduce right away (https://github.com/salarii/peek/blob/main/regex.roc)

view this post on Zulip Anton (Nov 13 2023 at 16:10):

:+1: I'll take a look

view this post on Zulip Artur Swiderski (Nov 13 2023 at 16:57):

@Anton let me know if you are able to reproduce those problems

view this post on Zulip Anton (Nov 13 2023 at 17:00):

Yes, I was able to reproduce all crashes, I'll check with existing issues and file new ones where necessary.

view this post on Zulip Anton (Nov 13 2023 at 19:07):

I already checked out one issue, will do the rest tomorrow

view this post on Zulip Anton (Nov 14 2023 at 14:58):

All bugs were similar to existing issues. I've added code that produces the similar bug to those issues, so once we fix the issue for the smallest code example we can check if your code is fixed is well. If not, we should minimize your code, investigate and fix it.

These are the related issues:
#5701
#5889
#5984


Last updated: Jul 05 2025 at 12:14 UTC