im trying to set up an editor syntax highlighting scheme for julia in atom, (using juno although i do not know if that is relevant).
i have googled around for two hours and tinkered around in atoms' settings and in the https://atom.io/packages/language-julia specific settings too.
i've found mentions about running scripts (juno) https://github.com/JunoLab/Juno.jl/issues/15 etc but i think this is not a solution, a simpler way must exist.
i had expected to be able to find someones stylesheet for julia, adapt it with my preferred colors and plug it into atom...
please, i would be grateful if someone could indicate how to do this: configure colors in editor - syntax highlighting for julia (perhaps with juno). thanks!
If you install Juno with Atom the Julia syntax highlighting will just work. Perhaps something did not get installed? Here are the installation instructions that I have tested on lots of students:
Download and install Atom (available at https://atom.io/).
Start Atom and press Ctrl + , ( Ctrl key + comma key ) to open the Atom settings screen.
Select the Install tab.
In the Search packages field, type uber-juno and press Enter .
You will see the uber-juno package developed by JunoLab—click Install to install the package.
However, sometimes the Atom installation gets stalled. In that case you need to stop Atom, delete the .atom folder that is usually found in your user home folder and restart Atom. On very rare occasions I also had to reinstall Atom as well.
Finally, note that as of today the recommended IDE for Julia is VS Code and the support for Atom Juno development has stopped.
Related
I recently installed atom text editor and start using it. I want to use it mainly to run Python codes. for that, I am trying to install a few packages like 'script'. I am not able to find this package.
Have you tried downloading it directly from the site and opening it with atom https://atom.io/packages/script
Make "Atom" as Default atom:// Protocol Handler by clicking on the "Settings" and "URI Handling" then go to the link atom.io/packages/script, you will find the package and install it
I am trying to run juno in atom because I hope it will be easier to debug code than it has been for me in vs studio but upon starting julia from juno I received the following error message in an orange box in the top right:
Julia could not be started.
Couldn’t resolve version.
We tried to launch Julia from: julia This path can be changed in the settings.
Where in settings can this be changed? It is not clear to me.
You need to open the Settings tab (Ctrl+,), then go to Packages > julia-client.
The path is the first setting:
In addition to Nils's suggestion, here's a lazy approach that has worked for me on MacOS BigSur and probably works on other systems.
Go to Juno Settings
Go to the Uber-Juno Settings (scroll down)
De-select: Disable (Don't run installation on Atom startup)
Exit Atom and re-start.
What this does is force Atom to run the installation script on startup. Atom then looks for Julia on your system and, in my case, found it easily. Problem solved.
I installed linter-php and also tried to configure it in config.cson as following
"linter-php":
executablePath: "C:\xampp\php"
but I don't see any indication that something that is related to linter affects atom display. How can I verify that this package (or any package in general) is working properly when atom is running?
To answer your question: you can find all active packages by running atom.packages.activePackages in Atom's developer console.
However, your problem could be caused by providing an invalid path. Backslashes need to be escaped in CSON, so your config should look like this:
"linter-php":
executablePath: "C:\\xampp\\php"
I'm using Python 3.7, and our class has transitioned to ATOM Editor for our IDE. The Professor is running Ubuntu and his works, and a few people have had there's sporadically work but I'm unable to get any syntax highlighting or error pop-ups (Even if I make obvious errors)
To enable syntax highlighting you need to have the 'language-python' package from here. Then make sure the file you are editing ends in '.py'. If these two steps have been followed the syntax highlighting should be in effect. Also load the 'Script' package from here. This package lets you run python scripts from Atom.
I installed Atom and uber-juno as instructed by Julia's homepage, but when I tried to start Julia in Atom, I was given the following error:
ERROR: LoadError: ArgumentError: Juno not found in path
in require at loading.jl:249
in include at boot.jl:261
in include_from_node1 at loading.jl:320
in process_options at client.jl:280
in _start at client.jl:378
while loading C:\Users\think\.atom\packages\julia-client\script\boot.jl, in expression starting on line 36
I think you are doing using Juno inside Atom. Juno.jl is a separate package for developing Juno plugins.
Fist save a new file with a .jl extension and type some Julia code (or open an existing .jl file) in Atom, then press SHIFT + ENTER with the cursor in the block of code that you want to evaluate, you should see the result, ie.
1 + 1 # type SHIFT + ENTER
A bubble notification will pop up with the value 2 (when you just start Atom you will see a spinning gear icon until Juno is ready to evaluate a block of code).
This isn't really a question for StackOverflow, it's a package/installation discussion. There was a new version tagged this morning which makes use of the new Juno.jl package where the front end stuff is held (this will be useful for package developers since it will allow them to extend Juno / add extra functionality for their packages which interact with Juno, adding only a light dependency). However, Juno.jl is not yet a registered package, leading to this mess.
One way to deal with this problem is to install the development version of the package:
Pkg.clone("https://github.com/JunoLab/Juno.jl")
However, this is not recommended for most users since you'll be at the bleeding edge (you may also need to do [Pkg.checkout(x) for x in ["Media", "Blink", "Atom"]] and use the dev install. So while this would fix this for right now, this will put you on the bleeding edge, a version which does not have a guarantee of stability. Thus, don't do this unless you're really familiar with Julia. (If you didn't see this error and immediately know to check Github for Juno.jl and use Pkg.clone, then you likely shouldn't be using this solution because you will get many random errors coming up all the time due to being on the development version!)
Otherwise, wait for the fix. This error is known, someone opened the issue here. The standard uber-juno install should be fixed up shortly.
If you want more help see the Juno Gitter or the Juno discussion board.
I just re-installed Atom and ran into the same problem. The problem comes from line 31 of ~/.atom/package/julia-client/script/boot.jl which is using Juno. Comment out this line and then Packages > Julia > Start Julia works.
The best solution is to uninstall and reinstall package julia-client and uber-juno.