Skip to content

:browse does not pick up changes from :reload #3001

Description

@hdgarrood

For example:

$ pulp init
$ pulp repl
<snip>

> :b Main


main :: forall e.
          Eff
            ( console :: CONSOLE
            | e
            )
            Unit
> -- now, in a separate window, add a new export to Main
> :reload
Compiling Main
> :b Main


main :: forall e.
          Eff
            ( console :: CONSOLE
            | e
            )
            Unit

Notice that the new export is not listed, despite Main having been compiled again.

I think the issue is here in Language.PureScript.Interactive as the new env is just being chucked away. Perhaps the fix is to move the env out of the PSCiConfig and into the PSCiState, since it can change over time? Or maybe the env can be computed on the fly when needed from the loaded externs?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions