Skip to content

Load failure if executed before interactive mode begins #74

@asinghvi17

Description

@asinghvi17

MWE: in terminal,

✗ julia -e 'using DataSets; println("Hello")' -i
ERROR: InitError: UndefVarError: `active_repl` not defined in `Base`
Suggestion: add an appropriate import or assignment. This global was declared but not assigned.
Stacktrace:
  [1] getproperty
    @ ./Base.jl:42 [inlined]
  [2] init_data_repl(; start_key::String)
    @ DataSets.DataREPL ~/.julia/packages/DataSets/tIVWM/src/repl.jl:266
  [3] init_data_repl
    @ ~/.julia/packages/DataSets/tIVWM/src/repl.jl:265 [inlined]
  [4] __init__()
    @ DataSets.DataREPL ~/.julia/packages/DataSets/tIVWM/src/repl.jl:280

This works fine if I remove the -i. Unfortunately my situation requires that I have the interactive mode. Can we somehow fix this, maybe by moving this module to an extension so it requires REPL to be loaded?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions