Skip to content
This repository has been archived by the owner on Dec 6, 2019. It is now read-only.

active_repl not defined when calling julia script from bash shell #25

Open
mattcbro opened this issue May 9, 2018 · 1 comment
Open

Comments

@mattcbro
Copy link

mattcbro commented May 9, 2018

If I run my simulation that attempts to use @Enter on a function call I get the following error when calling julia from the command line:

$ julia calsim.jl
Calibration gain error = -74.06079253592125 dB 
ERROR: LoadError: UndefVarError: active_repl not defined
Stacktrace:
 [1] RunDebugger(::Array{ASTInterpreter2.JuliaStackFrame,1}) at //////////////////////////////////////////home/matt/programs/juliapro/JuliaPro-0.6.2.1/JuliaPro/pkgs-0.6.2.1/v0.6/DebuggerFramework/src/DebuggerFramework.jl:238
 [2] include_from_node1(::String) at ./loading.jl:576
 [3] include(::String) at ./sysimg.jl:14
 [4] process_options(::Base.JLOptions) at ./client.jl:305
 [5] _start() at ./client.jl:371
while loading /data/projects/Maestro/calsim.jl, in expression starting on line 476

Curiously calsim.jl only has 102 lines.

If I run it by first calling julia and then running it via an include, things are more successful.

$ julia
               _
   _       _ _(_)_     |  A fresh approach to technical computing
  (_)     | (_) (_)    |  Documentation: https://docs.julialang.org
   _ _   _| |_  __ _   |  Type "?help" for help.
  | | | | | | |/ _` |  |
  | | |_| | | | (_| |  |  Version 0.6.2 (2017-12-13 18:08 UTC)
 _/ |\__'_|_|_|\__'_|  |  Official http://julialang.org/ release
|__/                   |  x86_64-pc-linux-gnu
julia> include("calsim.jl")
Calibration gain error = -69.51403548013728 dB 
In learnantpos( .....
......
About to run: (size)(<suppressed 156811 bytes of output>, 3)
1|debug > 

A google search does not suggest that others have flagged this issue. Is it a problem with my installation or a genuine bug?

@zxj5470
Copy link

zxj5470 commented Feb 16, 2019

Beacuse active_repl is only on REPL mode

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants