You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Running the script like julia --project=. --startup-file=no test.jl yields the expected output
[ Info:123
However, starting the daemon server by julia --startup-file=no --project=. -e "using DaemonMode; serve()", and running the script by julia --project=. --startup-file=no -e"using DaemonMode; runargs()" test.jl, gives the following error
ERROR: LoadError: MethodError: no method matching split(::Int64, ::String)
Stacktrace:
[1] mylog at /Users/jonalm/.julia/packages/DaemonMode/fAZD4/src/DaemonMode.jl:231
[2] #handle_message#19 at /Users/jonalm/.julia/packages/LoggingExtras/zT9ZU/src/formatlogger.jl:57
[3] handle_message at /Users/jonalm/.julia/packages/LoggingExtras/zT9ZU/src/formatlogger.jl:52
[4] #handle_message#13 at /Users/jonalm/.julia/packages/LoggingExtras/zT9ZU/src/minlevelfiltered.jl:17
[5] handle_message at /Users/jonalm/.julia/packages/LoggingExtras/zT9ZU/src/minlevelfiltered.jl:16
[6] top-level scope at logging.jl:353
[7] eval at ./boot.jl:373
The text was updated successfully, but these errors were encountered:
jonalm
changed the title
Error running scripts calling @info errors
Error running scripts calling @infoJun 7, 2022
Might be related: not being able to use Comonicon.jl with DaemonMode:
julia -e "using DaemonMode; runargs()" link_nua_minifas.jl
ERROR: LoadError: UndefVarError: command_main not defined
Stacktrace:
[1] getproperty at ./Base.jl:31
[2] macro expansion at .cache/julia/packages/Comonicon/1NWD0/src/frontend/cast.jl:507
[3] top-level scope at link_nua_minifas.jl:4
[4] eval at ./boot.jl:368
# link_nua_minifast.jlusing Comonicon
@mainfunctionmain(nua_dir::String, output_dir::String)
end
Consider the script
test.jl
Running the script like
julia --project=. --startup-file=no test.jl
yields the expected outputHowever, starting the daemon server by
julia --startup-file=no --project=. -e "using DaemonMode; serve()"
, and running the script byjulia --project=. --startup-file=no -e"using DaemonMode; runargs()" test.jl
, gives the following errorThe text was updated successfully, but these errors were encountered: