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 ?
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.
I'll try to take look later today
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
Sure, thanks @Artur Swiderski :)
@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)
:+1: I'll take a look
@Anton let me know if you are able to reproduce those problems
Yes, I was able to reproduce all crashes, I'll check with existing issues and file new ones where necessary.
I already checked out one issue, will do the rest tomorrow
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