Skip to content

Implement de/serialization for Sources #930

Description

@dylanowen

Maybe there is a better way to do this but I'd like to serialize/deserialize the Sources (either with serde or musli). What I have setup is Unit compilation and serialization to disk but I'm running into the issue that my errors would be better with the original Sources.

I would just recreate the sources as needed but I believe the SourceIds are generated based on how the SourceLoader is called which means I'd basically need to rerun compilation on error. If I could de/serialize the sources then I could just read the sources that were originally used for compilation.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions