Skip to content

Cached Bootsnap files lack source map #6

Description

@JPDuchesne

EDIT: Investigate, this seems to happen inconsistently.

When Bootsnap loads InstructionSequences from its cache, it doesn't run through the source map registration code, which breaks proper line number mapping from transformed code to written code.

A possible strategy to fix this might be to output the source map and load that back when loading the instruction sequences. This will require some changes to the SourceMap API, but also might get us a bit closer to adding support to Pry. Let's keep that in mind while fixing this.

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

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions