Skip to content

"sqlc generate" panics when schema file have wrong suffix. #1120

@Bogeyduffer

Description

@Bogeyduffer

I somehow ended up with migration file names that ended with commas. i.e. "000001_init-schema.up.sql,”.

The syntax error produced the following message:
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x10 pc=0x48ffd88]

This was difficult for someone who is new to go, sqlc, and sql to figure out. Hopefully, you can create a more graceful way to handle this.

Thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinginvalidThis doesn't seem right

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions