Hello,
I just installed Julia, Atom, and Juno.
When I am trying to write a code, I have this error : “Warning: Atom.jl: unrecognised message ismodule”.
I really don’t know what’s the probleme, and I didn’t found any topics that speak of this error.
Does someone can help me ?
Thank you !
Your file is a js one (javascript) ! Try to call it xxx.jl
(i.e. julia file)
Hi and welcome! Please avoid posting screenshots
Did you follow the instructions in?: Installation Instructions · Juno Documentation
Try saving your file first. Julia with Atom will not print any results in the console unless you tell it to (with println
for example). Maybe you come from Matlab where that is the typical behavior.
You can evaluate lines in your file (or blocks of code) with Shift + Enter or Ctrl + Enter.
If you want to run you file directly from the REPL you can use: include("myfile.jl")
Please also keep in mind that it’s best to avoid large scripts
(again, Matlab style), and instead pack you code into useful functions. This helps for reusability and performance.
Bonjour Julie en stage de M2 à l’ENS Lyon ! Ah le confinement
Suivez les conseils du post précédent : évaluez vos expressions avec Ctrl+Enter. En général le panneau du bas (REPL) ne sert pas à grand-chose.
Je suis confiné comme tout le monde, et je peux vous servir de tuteur pour vos débuts. Dans ce cas changez peut-être le titre de cette conversation.
Bonne chance pour la suite !
Proper Running in Julia with Juno IDE
- write the code and save it *.jl
- would you like stop or Start Julia using left side buttons, don’t forget the cursor in *.jl code files
- The same condition for Ctrl+Shift+Enter also
- println() only display output in REPL Window, it doesn’t like MATLAB ‘;’