IntersectMBO / IntersectMBO/plutus

Generate SrcSpan for cached files in plugin

Open
#7,203 0 comments 1 reaction 0 assignees View on GitHub
Internal Plinth Plugin status: triaged User experience
Dominant language
Haskell
Stars
1.6k
Forks
508
Avg merge
3d 10h
Merged PRs (30d)
22

Description

Profile traces (enter/exit markers) include the function name and source span of the function definition. This source span data is retrieved from GHC's Name information. This works when no files are cached and GHC runs on every used file. However, when GHC caches files, it does not provide source span information for cached unfoldings, resulting in profile traces lacking source span data.

We need to determine a method for either enabling GHC to provide source span information for functions defined in cached files, or implementing this functionality manually within the plugin. The former approach appears more promising.

source span annotation for hoisted functions also have this problem

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.