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

Cannot run the Listener.jl example #36

Open
YuYuB opened this issue Oct 14, 2019 · 1 comment
Open

Cannot run the Listener.jl example #36

YuYuB opened this issue Oct 14, 2019 · 1 comment

Comments

@YuYuB
Copy link

YuYuB commented Oct 14, 2019

Hi,

When I run the Listener.jl example (from Julia REPL using Atom/Juno), I got the following message: "usage: listener.jl --port --baud "
If I enter "listener.jl --port COM3 --baud 115200", I got the following error message: "ERROR: syntax: invalid operator "--".

How can I run correctly this example ?

Thank you !

@sjkelly
Copy link
Member

sjkelly commented Dec 27, 2019

I think the issue is running from an already running session in Atom not passing the ARGS. You would have to run outside with the julia command:

julia listener.jl --port COM3 --baud 115200

Alternatively you could do something from the julia REPL/Atom like so:

include("listener.jl")
terminal(["--port", "COM3", "--baud", "115200"])

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