Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Commented includes are still parsed #33

Closed
mikeogezi opened this issue Dec 5, 2023 · 4 comments
Closed

Commented includes are still parsed #33

mikeogezi opened this issue Dec 5, 2023 · 4 comments
Assignees
Labels
bug Something isn't working

Comments

@mikeogezi
Copy link
Contributor

mikeogezi commented Dec 5, 2023

Describe the bug
When an include is commented the Cherri compiler still parses it.

To Reproduce

// #include "not_in_existence.cherri"

alert("Hello, world!")

Debug output

Parsing includes...
runtime: goroutine stack exceeds 1000000000-byte limit
runtime: sp=0x14020160370 stack=[0x14020160000, 0x14040160000]
fatal error: stack overflow

runtime stack:
runtime.throw({0x100f372df?, 0x100e20a18?})
        /opt/homebrew/opt/go/libexec/src/runtime/panic.go:1077 +0x40 fp=0x17203ed50 sp=0x17203ed20 pc=0x100e28140
runtime.newstack()
        /opt/homebrew/opt/go/libexec/src/runtime/stack.go:1107 +0x458 fp=0x17203ef00 sp=0x17203ed50 pc=0x100e423c8
traceback: unexpected SPWRITE function runtime.morestack
runtime.morestack()
        /opt/homebrew/opt/go/libexec/src/runtime/asm_arm64.s:316 +0x70 fp=0x17203ef00 sp=0x17203ef00 pc=0x100e57870

goroutine 1 [running]:
runtime.deductAssistCredit(0x40?)
        /opt/homebrew/opt/go/libexec/src/runtime/malloc.go:1271 +0x7c fp=0x14020160370 sp=0x14020160370 pc=0x100e00bcc
runtime.mallocgc(0x40, 0x100f7d600, 0x1)
        /opt/homebrew/opt/go/libexec/src/runtime/malloc.go:1002 +0xe4 fp=0x140201603e0 sp=0x14020160370 pc=0x100e003c4
runtime.makeslice(0x14003e7fbc0?, 0x0?, 0x100f6af20?)
        /opt/homebrew/opt/go/libexec/src/runtime/slice.go:103 +0x50 fp=0x14020160410 sp=0x140201603e0 pc=0x100e400d0
strings.genSplit({0x14003e7fbc0, 0x3e}, {0x100f6af20, 0x1}, 0x0, 0x0?)
        /opt/homebrew/opt/go/libexec/src/strings/strings.go:254 +0x6c fp=0x14020160470 sp=0x14020160410 pc=0x100ea99dc
strings.Split(...)
        /opt/homebrew/opt/go/libexec/src/strings/strings.go:312
main.parseIncludes()
        /Users/michaelogezi/go/pkg/mod/github.com/electrikmilk/cherri@v0.1.11-beta.0.20231203021550-d1a03f308510/includes.go:66 +0x48 fp=0x14020160700 sp=0x14020160470 pc=0x100f05c48
main.parseIncludes()
        /Users/michaelogezi/go/pkg/mod/github.com/electrikmilk/cherri@v0.1.11-beta.0.20231203021550-d1a03f308510/includes.go:130 +0x6a8 fp=0x14020160990 sp=0x14020160700 pc=0x100f062a8
main.parseIncludes()
        /Users/michaelogezi/go/pkg/mod/github.com/electrikmilk/cherri@v0.1.11-beta.0.20231203021550-d1a03f308510/includes.go:130 +0x6a8 fp=0x14020160c20 sp=0x14020160990 pc=0x100f062a8
main.parseIncludes()
        /Users/michaelogezi/go/pkg/mod/github.com/electrikmilk/cherri@v0.1.11-beta.0.20231203021550-d1a03f308510/includes.go:130 +0x6a8 fp=0x14020160eb0 sp=0x14020160c20 pc=0x100f062a8
main.parseIncludes()
        /Users/michaelogezi/go/pkg/mod/github.com/electrikmilk/cherri@v0.1.11-beta.0.20231203021550-d1a03f308510/includes.go:130 +0x6a8 fp=0x14020161140 sp=0x14020160eb0 pc=0x100f062a8
main.parseIncludes()
        /Users/michaelogezi/go/pkg/mod/github.com/electrikmilk/cherri@v0.1.11-beta.0.20231203021550-d1a03f308510/includes.go:130 +0x6a8 fp=0x140201613d0 sp=0x14020161140 pc=0x100f062a8
main.parseIncludes()
        /Users/michaelogezi/go/pkg/mod/github.com/electrikmilk/cherri@v0.1.11-beta.0.20231203021550-d1a03f308510/includes.go:130 +0x6a8 fp=0x14020161660 sp=0x140201613d0 pc=0x100f062a8
main.parseIncludes()
        /Users/michaelogezi/go/pkg/mod/github.com/electrikmilk/cherri@v0.1.11-beta.0.20231203021550-d1a03f308510/includes.go:130 +0x6a8 fp=0x140201618f0 sp=0x14020161660 pc=0x100f062a8
main.parseIncludes()
        /Users/michaelogezi/go/pkg/mod/github.com/electrikmilk/cherri@v0.1.11-beta.0.20231203021550-d1a03f308510/includes.go:130 +0x6a8 fp=0x14020161b80 sp=0x140201618f0 pc=0x100f062a8
main.parseIncludes()
        /Users/michaelogezi/go/pkg/mod/github.com/electrikmilk/cherri@v0.1.11-beta.0.20231203021550-d1a03f308510/includes.go:130 +0x6a8 fp=0x14020161e10 sp=0x14020161b80 pc=0x100f062a8
main.parseIncludes()
        /Users/michaelogezi/go/pkg/mod/github.com/electrikmilk/cherri@v0.1.11-beta.0.20231203021550-d1a03f308510/includes.go:130 +0x6a8 fp=0x140201620a0 sp=0x14020161e10 pc=0x100f062a8
main.parseIncludes()
        /Users/michaelogezi/go/pkg/mod/github.com/electrikmilk/cherri@v0.1.11-beta.0.20231203021550-d1a03f308510/includes.go:130 +0x6a8 fp=0x14020162330 sp=0x140201620a0 pc=0x100f062a8
main.parseIncludes()
        /Users/michaelogezi/go/pkg/mod/github.com/electrikmilk/cherri@v0.1.11-beta.0.20231203021550-d1a03f308510/includes.go:130 +0x6a8 fp=0x140201625c0 sp=0x14020162330 pc=0x100f062a8
main.parseIncludes()
        /Users/michaelogezi/go/pkg/mod/github.com/electrikmilk/cherri@v0.1.11-beta.0.20231203021550-d1a03f308510/includes.go:130 +0x6a8 fp=0x14020162850 sp=0x140201625c0 pc=0x100f062a8
main.parseIncludes()
        /Users/michaelogezi/go/pkg/mod/github.com/electrikmilk/cherri@v0.1.11-beta.0.20231203021550-d1a03f308510/includes.go:130 +0x6a8 fp=0x14020162ae0 sp=0x14020162850 pc=0x100f062a8
main.parseIncludes()
        /Users/michaelogezi/go/pkg/mod/github.com/electrikmilk/cherri@v0.1.11-beta.0.20231203021550-d1a03f308510/includes.go:130 +0x6a8 fp=0x14020162d70 sp=0x14020162ae0 pc=0x100f062a8
main.parseIncludes()
        /Users/michaelogezi/go/pkg/mod/github.com/electrikmilk/cherri@v0.1.11-beta.0.20231203021550-d1a03f308510/includes.go:130 +0x6a8 fp=0x14020163000 sp=0x14020162d70 pc=0x100f062a8
main.parseIncludes()
        /Users/michaelogezi/go/pkg/mod/github.com/electrikmilk/cherri@v0.1.11-beta.0.20231203021550-d1a03f308510/includes.go:130 +0x6a8 fp=0x14020163290 sp=0x14020163000 pc=0x100f062a8
main.parseIncludes()
        /Users/michaelogezi/go/pkg/mod/github.com/electrikmilk/cherri@v0.1.11-beta.0.20231203021550-d1a03f308510/includes.go:130 +0x6a8 fp=0x14020163520 sp=0x14020163290 pc=0x100f062a8
main.parseIncludes()
        /Users/michaelogezi/go/pkg/mod/github.com/electrikmilk/cherri@v0.1.11-beta.0.20231203021550-d1a03f308510/includes.go:130 +0x6a8 fp=0x140201637b0 sp=0x14020163520 pc=0x100f062a8
main.parseIncludes()
        /Users/michaelogezi/go/pkg/mod/github.com/electrikmilk/cherri@v0.1.11-beta.0.20231203021550-d1a03f308510/includes.go:130 +0x6a8 fp=0x14020163a40 sp=0x140201637b0 pc=0x100f062a8
main.parseIncludes()
        /Users/michaelogezi/go/pkg/mod/github.com/electrikmilk/cherri@v0.1.11-beta.0.20231203021550-d1a03f308510/includes.go:130 +0x6a8 fp=0x14020163cd0 sp=0x14020163a40 pc=0x100f062a8
main.parseIncludes()
        /Users/michaelogezi/go/pkg/mod/github.com/electrikmilk/cherri@v0.1.11-beta.0.20231203021550-d1a03f308510/includes.go:130 +0x6a8 fp=0x14020163f60 sp=0x14020163cd0 pc=0x100f062a8
main.parseIncludes()
        /Users/michaelogezi/go/pkg/mod/github.com/electrikmilk/cherri@v0.1.11-beta.0.20231203021550-d1a03f308510/includes.go:130 +0x6a8 fp=0x140201641f0 sp=0x14020163f60 pc=0x100f062a8
main.parseIncludes()
        /Users/michaelogezi/go/pkg/mod/github.com/electrikmilk/cherri@v0.1.11-beta.0.20231203021550-d1a03f308510/includes.go:130 +0x6a8 fp=0x14020164480 sp=0x140201641f0 pc=0x100f062a8
main.parseIncludes()
        /Users/michaelogezi/go/pkg/mod/github.com/electrikmilk/cherri@v0.1.11-beta.0.20231203021550-d1a03f308510/includes.go:130 +0x6a8 fp=0x14020164710 sp=0x14020164480 pc=0x100f062a8
main.parseIncludes()
        /Users/michaelogezi/go/pkg/mod/github.com/electrikmilk/cherri@v0.1.11-beta.0.20231203021550-d1a03f308510/includes.go:130 +0x6a8 fp=0x140201649a0 sp=0x14020164710 pc=0x100f062a8
main.parseIncludes()
        /Users/michaelogezi/go/pkg/mod/github.com/electrikmilk/cherri@v0.1.11-beta.0.20231203021550-d1a03f308510/includes.go:130 +0x6a8 fp=0x14020164c30 sp=0x140201649a0 pc=0x100f062a8
main.parseIncludes()
        /Users/michaelogezi/go/pkg/mod/github.com/electrikmilk/cherri@v0.1.11-beta.0.20231203021550-d1a03f308510/includes.go:130 +0x6a8 fp=0x14020164ec0 sp=0x14020164c30 pc=0x100f062a8
main.parseIncludes()
        /Users/michaelogezi/go/pkg/mod/github.com/electrikmilk/cherri@v0.1.11-beta.0.20231203021550-d1a03f308510/includes.go:130 +0x6a8 fp=0x14020165150 sp=0x14020164ec0 pc=0x100f062a8
main.parseIncludes()
        /Users/michaelogezi/go/pkg/mod/github.com/electrikmilk/cherri@v0.1.11-beta.0.20231203021550-d1a03f308510/includes.go:130 +0x6a8 fp=0x140201653e0 sp=0x14020165150 pc=0x100f062a8
main.parseIncludes()
        /Users/michaelogezi/go/pkg/mod/github.com/electrikmilk/cherri@v0.1.11-beta.0.20231203021550-d1a03f308510/includes.go:130 +0x6a8 fp=0x14020165670 sp=0x140201653e0 pc=0x100f062a8
main.parseIncludes()
        /Users/michaelogezi/go/pkg/mod/github.com/electrikmilk/cherri@v0.1.11-beta.0.20231203021550-d1a03f308510/includes.go:130 +0x6a8 fp=0x14020165900 sp=0x14020165670 pc=0x100f062a8
main.parseIncludes()
        /Users/michaelogezi/go/pkg/mod/github.com/electrikmilk/cherri@v0.1.11-beta.0.20231203021550-d1a03f308510/includes.go:130 +0x6a8 fp=0x14020165b90 sp=0x14020165900 pc=0x100f062a8
main.parseIncludes()
        /Users/michaelogezi/go/pkg/mod/github.com/electrikmilk/cherri@v0.1.11-beta.0.20231203021550-d1a03f308510/includes.go:130 +0x6a8 fp=0x14020165e20 sp=0x14020165b90 pc=0x100f062a8
main.parseIncludes()
        /Users/michaelogezi/go/pkg/mod/github.com/electrikmilk/cherri@v0.1.11-beta.0.20231203021550-d1a03f308510/includes.go:130 +0x6a8 fp=0x140201660b0 sp=0x14020165e20 pc=0x100f062a8
main.parseIncludes()
        /Users/michaelogezi/go/pkg/mod/github.com/electrikmilk/cherri@v0.1.11-beta.0.20231203021550-d1a03f308510/includes.go:130 +0x6a8 fp=0x14020166340 sp=0x140201660b0 pc=0x100f062a8
main.parseIncludes()
        /Users/michaelogezi/go/pkg/mod/github.com/electrikmilk/cherri@v0.1.11-beta.0.20231203021550-d1a03f308510/includes.go:130 +0x6a8 fp=0x140201665d0 sp=0x14020166340 pc=0x100f062a8
main.parseIncludes()
        /Users/michaelogezi/go/pkg/mod/github.com/electrikmilk/cherri@v0.1.11-beta.0.20231203021550-d1a03f308510/includes.go:130 +0x6a8 fp=0x14020166860 sp=0x140201665d0 pc=0x100f062a8
main.parseIncludes()
        /Users/michaelogezi/go/pkg/mod/github.com/electrikmilk/cherri@v0.1.11-beta.0.20231203021550-d1a03f308510/includes.go:130 +0x6a8 fp=0x14020166af0 sp=0x14020166860 pc=0x100f062a8
main.parseIncludes()
        /Users/michaelogezi/go/pkg/mod/github.com/electrikmilk/cherri@v0.1.11-beta.0.20231203021550-d1a03f308510/includes.go:130 +0x6a8 fp=0x14020166d80 sp=0x14020166af0 pc=0x100f062a8
main.parseIncludes()
        /Users/michaelogezi/go/pkg/mod/github.com/electrikmilk/cherri@v0.1.11-beta.0.20231203021550-d1a03f308510/includes.go:130 +0x6a8 fp=0x14020167010 sp=0x14020166d80 pc=0x100f062a8
main.parseIncludes()
        /Users/michaelogezi/go/pkg/mod/github.com/electrikmilk/cherri@v0.1.11-beta.0.20231203021550-d1a03f308510/includes.go:130 +0x6a8 fp=0x140201672a0 sp=0x14020167010 pc=0x100f062a8
main.parseIncludes()
        /Users/michaelogezi/go/pkg/mod/github.com/electrikmilk/cherri@v0.1.11-beta.0.20231203021550-d1a03f308510/includes.go:130 +0x6a8 fp=0x14020167530 sp=0x140201672a0 pc=0x100f062a8
main.parseIncludes()
        /Users/michaelogezi/go/pkg/mod/github.com/electrikmilk/cherri@v0.1.11-beta.0.20231203021550-d1a03f308510/includes.go:130 +0x6a8 fp=0x140201677c0 sp=0x14020167530 pc=0x100f062a8
...818306 frames elided...
main.parseIncludes()
        /Users/michaelogezi/go/pkg/mod/github.com/electrikmilk/cherri@v0.1.11-beta.0.20231203021550-d1a03f308510/includes.go:130 +0x6a8 fp=0x14040158770 sp=0x140401584e0 pc=0x100f062a8
main.parseIncludes()
        /Users/michaelogezi/go/pkg/mod/github.com/electrikmilk/cherri@v0.1.11-beta.0.20231203021550-d1a03f308510/includes.go:130 +0x6a8 fp=0x14040158a00 sp=0x14040158770 pc=0x100f062a8
main.parseIncludes()
        /Users/michaelogezi/go/pkg/mod/github.com/electrikmilk/cherri@v0.1.11-beta.0.20231203021550-d1a03f308510/includes.go:130 +0x6a8 fp=0x14040158c90 sp=0x14040158a00 pc=0x100f062a8
main.parseIncludes()
        /Users/michaelogezi/go/pkg/mod/github.com/electrikmilk/cherri@v0.1.11-beta.0.20231203021550-d1a03f308510/includes.go:130 +0x6a8 fp=0x14040158f20 sp=0x14040158c90 pc=0x100f062a8
main.parseIncludes()
        /Users/michaelogezi/go/pkg/mod/github.com/electrikmilk/cherri@v0.1.11-beta.0.20231203021550-d1a03f308510/includes.go:130 +0x6a8 fp=0x140401591b0 sp=0x14040158f20 pc=0x100f062a8
main.parseIncludes()
        /Users/michaelogezi/go/pkg/mod/github.com/electrikmilk/cherri@v0.1.11-beta.0.20231203021550-d1a03f308510/includes.go:130 +0x6a8 fp=0x14040159440 sp=0x140401591b0 pc=0x100f062a8
main.parseIncludes()
        /Users/michaelogezi/go/pkg/mod/github.com/electrikmilk/cherri@v0.1.11-beta.0.20231203021550-d1a03f308510/includes.go:130 +0x6a8 fp=0x140401596d0 sp=0x14040159440 pc=0x100f062a8
main.parseIncludes()
        /Users/michaelogezi/go/pkg/mod/github.com/electrikmilk/cherri@v0.1.11-beta.0.20231203021550-d1a03f308510/includes.go:130 +0x6a8 fp=0x14040159960 sp=0x140401596d0 pc=0x100f062a8
main.parseIncludes()
        /Users/michaelogezi/go/pkg/mod/github.com/electrikmilk/cherri@v0.1.11-beta.0.20231203021550-d1a03f308510/includes.go:130 +0x6a8 fp=0x14040159bf0 sp=0x14040159960 pc=0x100f062a8
main.parseIncludes()
        /Users/michaelogezi/go/pkg/mod/github.com/electrikmilk/cherri@v0.1.11-beta.0.20231203021550-d1a03f308510/includes.go:130 +0x6a8 fp=0x14040159e80 sp=0x14040159bf0 pc=0x100f062a8
main.parseIncludes()
        /Users/michaelogezi/go/pkg/mod/github.com/electrikmilk/cherri@v0.1.11-beta.0.20231203021550-d1a03f308510/includes.go:130 +0x6a8 fp=0x1404015a110 sp=0x14040159e80 pc=0x100f062a8
main.parseIncludes()
        /Users/michaelogezi/go/pkg/mod/github.com/electrikmilk/cherri@v0.1.11-beta.0.20231203021550-d1a03f308510/includes.go:130 +0x6a8 fp=0x1404015a3a0 sp=0x1404015a110 pc=0x100f062a8
main.parseIncludes()
        /Users/michaelogezi/go/pkg/mod/github.com/electrikmilk/cherri@v0.1.11-beta.0.20231203021550-d1a03f308510/includes.go:130 +0x6a8 fp=0x1404015a630 sp=0x1404015a3a0 pc=0x100f062a8
main.parseIncludes()
        /Users/michaelogezi/go/pkg/mod/github.com/electrikmilk/cherri@v0.1.11-beta.0.20231203021550-d1a03f308510/includes.go:130 +0x6a8 fp=0x1404015a8c0 sp=0x1404015a630 pc=0x100f062a8
main.parseIncludes()
        /Users/michaelogezi/go/pkg/mod/github.com/electrikmilk/cherri@v0.1.11-beta.0.20231203021550-d1a03f308510/includes.go:130 +0x6a8 fp=0x1404015ab50 sp=0x1404015a8c0 pc=0x100f062a8
main.parseIncludes()
        /Users/michaelogezi/go/pkg/mod/github.com/electrikmilk/cherri@v0.1.11-beta.0.20231203021550-d1a03f308510/includes.go:130 +0x6a8 fp=0x1404015ade0 sp=0x1404015ab50 pc=0x100f062a8
main.parseIncludes()
        /Users/michaelogezi/go/pkg/mod/github.com/electrikmilk/cherri@v0.1.11-beta.0.20231203021550-d1a03f308510/includes.go:130 +0x6a8 fp=0x1404015b070 sp=0x1404015ade0 pc=0x100f062a8
main.parseIncludes()
        /Users/michaelogezi/go/pkg/mod/github.com/electrikmilk/cherri@v0.1.11-beta.0.20231203021550-d1a03f308510/includes.go:130 +0x6a8 fp=0x1404015b300 sp=0x1404015b070 pc=0x100f062a8
main.parseIncludes()
        /Users/michaelogezi/go/pkg/mod/github.com/electrikmilk/cherri@v0.1.11-beta.0.20231203021550-d1a03f308510/includes.go:130 +0x6a8 fp=0x1404015b590 sp=0x1404015b300 pc=0x100f062a8
main.parseIncludes()
        /Users/michaelogezi/go/pkg/mod/github.com/electrikmilk/cherri@v0.1.11-beta.0.20231203021550-d1a03f308510/includes.go:130 +0x6a8 fp=0x1404015b820 sp=0x1404015b590 pc=0x100f062a8
main.parseIncludes()
        /Users/michaelogezi/go/pkg/mod/github.com/electrikmilk/cherri@v0.1.11-beta.0.20231203021550-d1a03f308510/includes.go:130 +0x6a8 fp=0x1404015bab0 sp=0x1404015b820 pc=0x100f062a8
main.parseIncludes()
        /Users/michaelogezi/go/pkg/mod/github.com/electrikmilk/cherri@v0.1.11-beta.0.20231203021550-d1a03f308510/includes.go:130 +0x6a8 fp=0x1404015bd40 sp=0x1404015bab0 pc=0x100f062a8
main.parseIncludes()
        /Users/michaelogezi/go/pkg/mod/github.com/electrikmilk/cherri@v0.1.11-beta.0.20231203021550-d1a03f308510/includes.go:130 +0x6a8 fp=0x1404015bfd0 sp=0x1404015bd40 pc=0x100f062a8
main.parseIncludes()
        /Users/michaelogezi/go/pkg/mod/github.com/electrikmilk/cherri@v0.1.11-beta.0.20231203021550-d1a03f308510/includes.go:130 +0x6a8 fp=0x1404015c260 sp=0x1404015bfd0 pc=0x100f062a8
main.parseIncludes()
        /Users/michaelogezi/go/pkg/mod/github.com/electrikmilk/cherri@v0.1.11-beta.0.20231203021550-d1a03f308510/includes.go:130 +0x6a8 fp=0x1404015c4f0 sp=0x1404015c260 pc=0x100f062a8
main.parseIncludes()
        /Users/michaelogezi/go/pkg/mod/github.com/electrikmilk/cherri@v0.1.11-beta.0.20231203021550-d1a03f308510/includes.go:130 +0x6a8 fp=0x1404015c780 sp=0x1404015c4f0 pc=0x100f062a8
main.parseIncludes()
        /Users/michaelogezi/go/pkg/mod/github.com/electrikmilk/cherri@v0.1.11-beta.0.20231203021550-d1a03f308510/includes.go:130 +0x6a8 fp=0x1404015ca10 sp=0x1404015c780 pc=0x100f062a8
main.parseIncludes()
        /Users/michaelogezi/go/pkg/mod/github.com/electrikmilk/cherri@v0.1.11-beta.0.20231203021550-d1a03f308510/includes.go:130 +0x6a8 fp=0x1404015cca0 sp=0x1404015ca10 pc=0x100f062a8
main.parseIncludes()
        /Users/michaelogezi/go/pkg/mod/github.com/electrikmilk/cherri@v0.1.11-beta.0.20231203021550-d1a03f308510/includes.go:130 +0x6a8 fp=0x1404015cf30 sp=0x1404015cca0 pc=0x100f062a8
main.parseIncludes()
        /Users/michaelogezi/go/pkg/mod/github.com/electrikmilk/cherri@v0.1.11-beta.0.20231203021550-d1a03f308510/includes.go:130 +0x6a8 fp=0x1404015d1c0 sp=0x1404015cf30 pc=0x100f062a8
main.parseIncludes()
        /Users/michaelogezi/go/pkg/mod/github.com/electrikmilk/cherri@v0.1.11-beta.0.20231203021550-d1a03f308510/includes.go:130 +0x6a8 fp=0x1404015d450 sp=0x1404015d1c0 pc=0x100f062a8
main.parseIncludes()
        /Users/michaelogezi/go/pkg/mod/github.com/electrikmilk/cherri@v0.1.11-beta.0.20231203021550-d1a03f308510/includes.go:130 +0x6a8 fp=0x1404015d6e0 sp=0x1404015d450 pc=0x100f062a8
main.parseIncludes()
        /Users/michaelogezi/go/pkg/mod/github.com/electrikmilk/cherri@v0.1.11-beta.0.20231203021550-d1a03f308510/includes.go:130 +0x6a8 fp=0x1404015d970 sp=0x1404015d6e0 pc=0x100f062a8
main.parseIncludes()
        /Users/michaelogezi/go/pkg/mod/github.com/electrikmilk/cherri@v0.1.11-beta.0.20231203021550-d1a03f308510/includes.go:130 +0x6a8 fp=0x1404015dc00 sp=0x1404015d970 pc=0x100f062a8
main.parseIncludes()
        /Users/michaelogezi/go/pkg/mod/github.com/electrikmilk/cherri@v0.1.11-beta.0.20231203021550-d1a03f308510/includes.go:130 +0x6a8 fp=0x1404015de90 sp=0x1404015dc00 pc=0x100f062a8
main.parseIncludes()
        /Users/michaelogezi/go/pkg/mod/github.com/electrikmilk/cherri@v0.1.11-beta.0.20231203021550-d1a03f308510/includes.go:130 +0x6a8 fp=0x1404015e120 sp=0x1404015de90 pc=0x100f062a8
main.parseIncludes()
        /Users/michaelogezi/go/pkg/mod/github.com/electrikmilk/cherri@v0.1.11-beta.0.20231203021550-d1a03f308510/includes.go:130 +0x6a8 fp=0x1404015e3b0 sp=0x1404015e120 pc=0x100f062a8
main.parseIncludes()
        /Users/michaelogezi/go/pkg/mod/github.com/electrikmilk/cherri@v0.1.11-beta.0.20231203021550-d1a03f308510/includes.go:130 +0x6a8 fp=0x1404015e640 sp=0x1404015e3b0 pc=0x100f062a8
main.parseIncludes()
        /Users/michaelogezi/go/pkg/mod/github.com/electrikmilk/cherri@v0.1.11-beta.0.20231203021550-d1a03f308510/includes.go:130 +0x6a8 fp=0x1404015e8d0 sp=0x1404015e640 pc=0x100f062a8
main.parseIncludes()
        /Users/michaelogezi/go/pkg/mod/github.com/electrikmilk/cherri@v0.1.11-beta.0.20231203021550-d1a03f308510/includes.go:130 +0x6a8 fp=0x1404015eb60 sp=0x1404015e8d0 pc=0x100f062a8
main.parseIncludes()
        /Users/michaelogezi/go/pkg/mod/github.com/electrikmilk/cherri@v0.1.11-beta.0.20231203021550-d1a03f308510/includes.go:130 +0x6a8 fp=0x1404015edf0 sp=0x1404015eb60 pc=0x100f062a8
main.parseIncludes()
        /Users/michaelogezi/go/pkg/mod/github.com/electrikmilk/cherri@v0.1.11-beta.0.20231203021550-d1a03f308510/includes.go:130 +0x6a8 fp=0x1404015f080 sp=0x1404015edf0 pc=0x100f062a8
main.parseIncludes()
        /Users/michaelogezi/go/pkg/mod/github.com/electrikmilk/cherri@v0.1.11-beta.0.20231203021550-d1a03f308510/includes.go:130 +0x6a8 fp=0x1404015f310 sp=0x1404015f080 pc=0x100f062a8
main.parseIncludes()
        /Users/michaelogezi/go/pkg/mod/github.com/electrikmilk/cherri@v0.1.11-beta.0.20231203021550-d1a03f308510/includes.go:130 +0x6a8 fp=0x1404015f5a0 sp=0x1404015f310 pc=0x100f062a8
main.parseIncludes()
        /Users/michaelogezi/go/pkg/mod/github.com/electrikmilk/cherri@v0.1.11-beta.0.20231203021550-d1a03f308510/includes.go:130 +0x6a8 fp=0x1404015f830 sp=0x1404015f5a0 pc=0x100f062a8
main.parseIncludes()
        /Users/michaelogezi/go/pkg/mod/github.com/electrikmilk/cherri@v0.1.11-beta.0.20231203021550-d1a03f308510/includes.go:130 +0x6a8 fp=0x1404015fac0 sp=0x1404015f830 pc=0x100f062a8
main.handleIncludes()
        /Users/michaelogezi/go/pkg/mod/github.com/electrikmilk/cherri@v0.1.11-beta.0.20231203021550-d1a03f308510/includes.go:36 +0xf8 fp=0x1404015fc60 sp=0x1404015fac0 pc=0x100f055d8
main.main()
        /Users/michaelogezi/go/pkg/mod/github.com/electrikmilk/cherri@v0.1.11-beta.0.20231203021550-d1a03f308510/main.go:73 +0x358 fp=0x1404015ff30 sp=0x1404015fc60 pc=0x100f06818
runtime.main()
        /opt/homebrew/opt/go/libexec/src/runtime/proc.go:267 +0x2bc fp=0x1404015ffd0 sp=0x1404015ff30 pc=0x100e2a9bc
runtime.goexit()
        /opt/homebrew/opt/go/libexec/src/runtime/asm_arm64.s:1197 +0x4 fp=0x1404015ffd0 sp=0x1404015ffd0 pc=0x100e59d64

goroutine 2 [force gc (idle)]:
runtime.gopark(0x0?, 0x0?, 0x0?, 0x0?, 0x0?)
        /opt/homebrew/opt/go/libexec/src/runtime/proc.go:398 +0xc8 fp=0x1400004ef90 sp=0x1400004ef70 pc=0x100e2ade8
runtime.goparkunlock(...)
        /opt/homebrew/opt/go/libexec/src/runtime/proc.go:404
runtime.forcegchelper()
        /opt/homebrew/opt/go/libexec/src/runtime/proc.go:322 +0xb8 fp=0x1400004efd0 sp=0x1400004ef90 pc=0x100e2ac78
runtime.goexit()
        /opt/homebrew/opt/go/libexec/src/runtime/asm_arm64.s:1197 +0x4 fp=0x1400004efd0 sp=0x1400004efd0 pc=0x100e59d64
created by runtime.init.6 in goroutine 1
        /opt/homebrew/opt/go/libexec/src/runtime/proc.go:310 +0x24

goroutine 3 [GC sweep wait]:
runtime.gopark(0x1?, 0x0?, 0x0?, 0x0?, 0x0?)
        /opt/homebrew/opt/go/libexec/src/runtime/proc.go:398 +0xc8 fp=0x1400004f760 sp=0x1400004f740 pc=0x100e2ade8
runtime.goparkunlock(...)
        /opt/homebrew/opt/go/libexec/src/runtime/proc.go:404
runtime.bgsweep(0x0?)
        /opt/homebrew/opt/go/libexec/src/runtime/mgcsweep.go:321 +0x108 fp=0x1400004f7b0 sp=0x1400004f760 pc=0x100e17f98
runtime.gcenable.func1()
        /opt/homebrew/opt/go/libexec/src/runtime/mgc.go:200 +0x28 fp=0x1400004f7d0 sp=0x1400004f7b0 pc=0x100e0ccc8
runtime.goexit()
        /opt/homebrew/opt/go/libexec/src/runtime/asm_arm64.s:1197 +0x4 fp=0x1400004f7d0 sp=0x1400004f7d0 pc=0x100e59d64
created by runtime.gcenable in goroutine 1
        /opt/homebrew/opt/go/libexec/src/runtime/mgc.go:200 +0x6c

goroutine 4 [GC scavenge wait]:
runtime.gopark(0x15bb66a2?, 0x5d9d7d71?, 0x0?, 0x0?, 0x0?)
        /opt/homebrew/opt/go/libexec/src/runtime/proc.go:398 +0xc8 fp=0x1400004ff50 sp=0x1400004ff30 pc=0x100e2ade8
runtime.goparkunlock(...)
        /opt/homebrew/opt/go/libexec/src/runtime/proc.go:404
runtime.(*scavengerState).park(0x101086fa0)
        /opt/homebrew/opt/go/libexec/src/runtime/mgcscavenge.go:425 +0x5c fp=0x1400004ff80 sp=0x1400004ff50 pc=0x100e157dc
runtime.bgscavenge(0x0?)
        /opt/homebrew/opt/go/libexec/src/runtime/mgcscavenge.go:658 +0xac fp=0x1400004ffb0 sp=0x1400004ff80 pc=0x100e15d9c
runtime.gcenable.func2()
        /opt/homebrew/opt/go/libexec/src/runtime/mgc.go:201 +0x28 fp=0x1400004ffd0 sp=0x1400004ffb0 pc=0x100e0cc68
runtime.goexit()
        /opt/homebrew/opt/go/libexec/src/runtime/asm_arm64.s:1197 +0x4 fp=0x1400004ffd0 sp=0x1400004ffd0 pc=0x100e59d64
created by runtime.gcenable in goroutine 1
        /opt/homebrew/opt/go/libexec/src/runtime/mgc.go:201 +0xac

goroutine 5 [finalizer wait]:
runtime.gopark(0x1400004e5a8?, 0x100e55884?, 0x1?, 0xe5?, 0x100e61ba4?)
        /opt/homebrew/opt/go/libexec/src/runtime/proc.go:398 +0xc8 fp=0x1400004e580 sp=0x1400004e560 pc=0x100e2ade8
runtime.runfinq()
        /opt/homebrew/opt/go/libexec/src/runtime/mfinal.go:193 +0x108 fp=0x1400004e7d0 sp=0x1400004e580 pc=0x100e0bdb8
runtime.goexit()
        /opt/homebrew/opt/go/libexec/src/runtime/asm_arm64.s:1197 +0x4 fp=0x1400004e7d0 sp=0x1400004e7d0 pc=0x100e59d64
created by runtime.createfing in goroutine 1
        /opt/homebrew/opt/go/libexec/src/runtime/mfinal.go:163 +0x80

goroutine 6 [GC worker (idle)]:
runtime.gopark(0x0?, 0x0?, 0x0?, 0x0?, 0x0?)
        /opt/homebrew/opt/go/libexec/src/runtime/proc.go:398 +0xc8 fp=0x14000050730 sp=0x14000050710 pc=0x100e2ade8
runtime.gcBgMarkWorker()
        /opt/homebrew/opt/go/libexec/src/runtime/mgc.go:1293 +0xd8 fp=0x140000507d0 sp=0x14000050730 pc=0x100e0e688
runtime.goexit()
        /opt/homebrew/opt/go/libexec/src/runtime/asm_arm64.s:1197 +0x4 fp=0x140000507d0 sp=0x140000507d0 pc=0x100e59d64
created by runtime.gcBgMarkStartWorkers in goroutine 1
        /opt/homebrew/opt/go/libexec/src/runtime/mgc.go:1217 +0x28

goroutine 7 [GC worker (idle)]:
runtime.gopark(0x0?, 0x0?, 0x0?, 0x0?, 0x0?)
        /opt/homebrew/opt/go/libexec/src/runtime/proc.go:398 +0xc8 fp=0x14000050f30 sp=0x14000050f10 pc=0x100e2ade8
runtime.gcBgMarkWorker()
        /opt/homebrew/opt/go/libexec/src/runtime/mgc.go:1293 +0xd8 fp=0x14000050fd0 sp=0x14000050f30 pc=0x100e0e688
runtime.goexit()
        /opt/homebrew/opt/go/libexec/src/runtime/asm_arm64.s:1197 +0x4 fp=0x14000050fd0 sp=0x14000050fd0 pc=0x100e59d64
created by runtime.gcBgMarkStartWorkers in goroutine 1
        /opt/homebrew/opt/go/libexec/src/runtime/mgc.go:1217 +0x28

goroutine 18 [GC worker (idle)]:
runtime.gopark(0x0?, 0x0?, 0x0?, 0x0?, 0x0?)
        /opt/homebrew/opt/go/libexec/src/runtime/proc.go:398 +0xc8 fp=0x1400004a730 sp=0x1400004a710 pc=0x100e2ade8
runtime.gcBgMarkWorker()
        /opt/homebrew/opt/go/libexec/src/runtime/mgc.go:1293 +0xd8 fp=0x1400004a7d0 sp=0x1400004a730 pc=0x100e0e688
runtime.goexit()
        /opt/homebrew/opt/go/libexec/src/runtime/asm_arm64.s:1197 +0x4 fp=0x1400004a7d0 sp=0x1400004a7d0 pc=0x100e59d64
created by runtime.gcBgMarkStartWorkers in goroutine 1
        /opt/homebrew/opt/go/libexec/src/runtime/mgc.go:1217 +0x28

goroutine 34 [GC worker (idle)]:
runtime.gopark(0x1d2ccbc4c5db?, 0x1?, 0x54?, 0x51?, 0x0?)
        /opt/homebrew/opt/go/libexec/src/runtime/proc.go:398 +0xc8 fp=0x14000094730 sp=0x14000094710 pc=0x100e2ade8
runtime.gcBgMarkWorker()
        /opt/homebrew/opt/go/libexec/src/runtime/mgc.go:1293 +0xd8 fp=0x140000947d0 sp=0x14000094730 pc=0x100e0e688
runtime.goexit()
        /opt/homebrew/opt/go/libexec/src/runtime/asm_arm64.s:1197 +0x4 fp=0x140000947d0 sp=0x140000947d0 pc=0x100e59d64
created by runtime.gcBgMarkStartWorkers in goroutine 1
        /opt/homebrew/opt/go/libexec/src/runtime/mgc.go:1217 +0x28

goroutine 19 [GC worker (idle)]:
runtime.gopark(0x1d2ca264cafb?, 0x0?, 0x0?, 0x0?, 0x0?)
        /opt/homebrew/opt/go/libexec/src/runtime/proc.go:398 +0xc8 fp=0x1400004af30 sp=0x1400004af10 pc=0x100e2ade8
runtime.gcBgMarkWorker()
        /opt/homebrew/opt/go/libexec/src/runtime/mgc.go:1293 +0xd8 fp=0x1400004afd0 sp=0x1400004af30 pc=0x100e0e688
runtime.goexit()
        /opt/homebrew/opt/go/libexec/src/runtime/asm_arm64.s:1197 +0x4 fp=0x1400004afd0 sp=0x1400004afd0 pc=0x100e59d64
created by runtime.gcBgMarkStartWorkers in goroutine 1
        /opt/homebrew/opt/go/libexec/src/runtime/mgc.go:1217 +0x28

goroutine 35 [GC worker (idle)]:
runtime.gopark(0x1d2ca26489b7?, 0x0?, 0x0?, 0x0?, 0x0?)
        /opt/homebrew/opt/go/libexec/src/runtime/proc.go:398 +0xc8 fp=0x14000094f30 sp=0x14000094f10 pc=0x100e2ade8
runtime.gcBgMarkWorker()
        /opt/homebrew/opt/go/libexec/src/runtime/mgc.go:1293 +0xd8 fp=0x14000094fd0 sp=0x14000094f30 pc=0x100e0e688
runtime.goexit()
        /opt/homebrew/opt/go/libexec/src/runtime/asm_arm64.s:1197 +0x4 fp=0x14000094fd0 sp=0x14000094fd0 pc=0x100e59d64
created by runtime.gcBgMarkStartWorkers in goroutine 1
        /opt/homebrew/opt/go/libexec/src/runtime/mgc.go:1217 +0x28

goroutine 20 [GC worker (idle)]:
runtime.gopark(0x1d2ccbc4da87?, 0x0?, 0x0?, 0x0?, 0x0?)
        /opt/homebrew/opt/go/libexec/src/runtime/proc.go:398 +0xc8 fp=0x1400004b730 sp=0x1400004b710 pc=0x100e2ade8
runtime.gcBgMarkWorker()
        /opt/homebrew/opt/go/libexec/src/runtime/mgc.go:1293 +0xd8 fp=0x1400004b7d0 sp=0x1400004b730 pc=0x100e0e688
runtime.goexit()
        /opt/homebrew/opt/go/libexec/src/runtime/asm_arm64.s:1197 +0x4 fp=0x1400004b7d0 sp=0x1400004b7d0 pc=0x100e59d64
created by runtime.gcBgMarkStartWorkers in goroutine 1
        /opt/homebrew/opt/go/libexec/src/runtime/mgc.go:1217 +0x28

goroutine 36 [GC worker (idle)]:
runtime.gopark(0x1d2ccbc4d1e6?, 0x0?, 0x0?, 0x0?, 0x0?)
        /opt/homebrew/opt/go/libexec/src/runtime/proc.go:398 +0xc8 fp=0x14000095730 sp=0x14000095710 pc=0x100e2ade8
runtime.gcBgMarkWorker()
        /opt/homebrew/opt/go/libexec/src/runtime/mgc.go:1293 +0xd8 fp=0x140000957d0 sp=0x14000095730 pc=0x100e0e688
runtime.goexit()
        /opt/homebrew/opt/go/libexec/src/runtime/asm_arm64.s:1197 +0x4 fp=0x140000957d0 sp=0x140000957d0 pc=0x100e59d64
created by runtime.gcBgMarkStartWorkers in goroutine 1
        /opt/homebrew/opt/go/libexec/src/runtime/mgc.go:1217 +0x28

Additional context
N/A

@mikeogezi mikeogezi added the bug Something isn't working label Dec 5, 2023
@mikeogezi
Copy link
Contributor Author

#39

@electrikmilk
Copy link
Owner

electrikmilk commented Dec 21, 2023

This is fixed for single line comments by 4537ee3.

@electrikmilk
Copy link
Owner

I am planning to fix this soon by implementing a basic parsing loop that accounts for comments, and replaces the lines with the contents of the files when coming across an #include token, then rejoins the file.

@electrikmilk electrikmilk self-assigned this Feb 24, 2024
@github-project-automation github-project-automation bot moved this to ☑️ ToDo in Cherri Feb 24, 2024
@electrikmilk electrikmilk moved this from ☑️ ToDo to 🏗 In progress in Cherri Feb 24, 2024
@electrikmilk
Copy link
Owner

This has been fixed by cc06473.

@github-project-automation github-project-automation bot moved this from 🏗 In progress to ✅ Done in Cherri Feb 24, 2024
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
bug Something isn't working
Projects
Archived in project
Development

No branches or pull requests

2 participants