Some of ASTInterpreter commands not supported in ASTInterpreter2?


#1

I typed the command se but an error is thrown. Is it because se is no longer supported? If so, which ASTInterpreter commands are not available in ASTInterpreter2? Thanks.

1|debug > se
ERROR: MethodError: no method matching _step_expr(::ASTInterpreter2.JuliaStackFrame)
Closest candidates are:
  _step_expr(::Any, ::Any) at /home/chobbes/Documents/git/ASTInterpreter2.jl/src/interpret.jl:76
Stacktrace:
 [1] step_expr at /home/chobbes/Documents/git/ASTInterpreter2.jl/src/interpret.jl:137 [inlined]
 [2] execute_command(::DebuggerFramework.DebuggerState, ::ASTInterpreter2.JuliaStackFrame, ::Val{:se}, ::String) at /home/chobbes/Documents/git/ASTInterpreter2.jl/src/commands.jl:26
 [3] (::DebuggerFramework.##4#8{Base.Terminals.TTYTerminal,DebuggerFramework.DebuggerState,Base.LineEdit.Prompt})(::Base.LineEdit.MIState, ::Base.AbstractIOBuffer{Array{UInt8,1}}, ::Bool) at /home/chobbes/Documents/git/DebuggerFramework.jl/src/DebuggerFramework.jl:254
 [4] eval(::Module, ::Any) at ./boot.jl:235
 [5] run_interface(::Base.Terminals.TTYTerminal, ::Base.LineEdit.ModalInterface) at ./LineEdit.jl:1583
 [6] RunDebugger(::Array{ASTInterpreter2.JuliaStackFrame,1}, ::Base.REPL.LineEditREPL, ::Base.Terminals.TTYTerminal) at /home/chobbes/Documents/git/DebuggerFramework.jl/src/DebuggerFramework.jl:306
 [7] RunDebugger(::Array{ASTInterpreter2.JuliaStackFrame,1}) at /home/chobbes/Documents/git/DebuggerFramework.jl/src/DebuggerFramework.jl:222

#2

Thanks for trying it out. Just an oversight. I’ll look into it.


#3

Thanks!


#4

Up key doesn’t recall previous commands in 1|julia mode, though it works for 1|debug. Is this deliberate? Can’t remember if it is so in ASTInterpreter. Is there a way to enable recalling under 1|julia?