Stream: beginners

Topic: Importing unicode.Grapheme causes language server to crash


view this post on Zulip Ian McLerran (Feb 05 2025 at 17:33):

The title pretty much says it all. Even so much as importing unicode.Grapheme (without using it) causes the roc language server to crash. This is roc built from main on todays latest commit, and unicode 0.3.0.

view this post on Zulip Ian McLerran (Feb 05 2025 at 17:36):

Minimum repro:
main.roc

package [Module] {
    unicode: "https://github.com/roc-lang/unicode/releases/download/0.3.0/9KKFsA4CdOz0JIOL7iBSI_2jGIXQ6TsFBXgd086idpY.tar.br"
}

Module.roc

module []

import unicode.Grapheme

view this post on Zulip Ian McLerran (Feb 05 2025 at 17:37):

Note that importing unicode.CodePoint does not cause this crash, and I can run roc check and roc test on code written with Grapheme.split without issue.

view this post on Zulip Anton (Feb 05 2025 at 18:12):

I was able to reproduce this, output is:

thread 'tokio-runtime-worker' has overflowed its stack
fatal runtime error: stack overflow
Aborted (core dumped)

I'll make a high priority issue

view this post on Zulip Anton (Feb 05 2025 at 18:15):

#7583


Last updated: Jul 06 2025 at 12:14 UTC