Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error running scripts calling @info #49

Open
jonalm opened this issue Jun 7, 2022 · 1 comment
Open

Error running scripts calling @info #49

jonalm opened this issue Jun 7, 2022 · 1 comment

Comments

@jonalm
Copy link

jonalm commented Jun 7, 2022

Consider the script test.jl

x = 123
@info x

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
@jonalm jonalm changed the title Error running scripts calling @info errors Error running scripts calling @info Jun 7, 2022
@ndgnuh
Copy link

ndgnuh commented Nov 16, 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.jl
using Comonicon

@main function main(nua_dir::String, output_dir::String)
end

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

No branches or pull requests

2 participants