No I hadn’t because I have no problem with Julia. Maybe I’ll trash that too and reinstall Julia as well. I’ll report back! Thanks Kevin.
Edit: And one hour later… back to square one!
Edit: And two hours later: problem solved!
Here is a breakdown.
- During setup, the following message:
Failed to load snippets from '/Users/XXX/.atom/packages/language-julia/snippets/language-julia.cson'
/Users/XXX/.atom/packages/language-julia/snippets/language-julia.cson: Duplicate key '.source.julia'
So I deleted the first of the two ‘.source.julia’ lines, as the second one seemed a little more involved. I restarted and the message had disappeared.
- Then I got this:
"Some installed packages could not be loaded because they contain native modules that were compiled for an earlier version of Atom."
I agreed to compile them again and got a message that it had been succesful.
- I added a project folder and got a message that there existed a ‘previous state’, which I chose to discard. Then I opened a ‘.jl’ file and immediately got the following error message, which I recognize from my previous failed attempts:
Failed to spawn command julia. Make sure julia is installed and on your PATH
It turned out that the problem was that I would put Julia in the PATH, but forgot that it was not “sticky”. So I would get some early messages comforting me that Julia was found, consistent with my efforts to add it to the PATH. But once atom/juno was restarted, the PATH would be cleared and Julia would no longer be in it. I needed to put the PATH export command inside the
.bash_profile, something I have known for years and keep forgetting. (Note that Python worked well with Atom because anaconda added it to the bash_profile, something that uber-juno might perhaps do one day)
Now I have toolbars and a console and it all looks quite smart!
In case some MacOS user is drawn to this thread here (and most likely that will be me in 6 months time), let me note the following: to view hidden files, use the (ridiculous) shortcut: COMMAND+SHIFT+. (that’s a dot) And the name of the bash profile is
.bash_profile and is found at the root of the user directory.