-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #52 from JunoLab/avi/updateinstruction
add update instructions
- Loading branch information
Showing
6 changed files
with
135 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,103 @@ | ||
# Update Instructions | ||
|
||
To update your Juno, you need to follow the two steps – | ||
update both Atom packages and Julia packages, | ||
each of which constitutes a part of Juno. | ||
|
||
|
||
## 1. Update Atom Packages | ||
|
||
In this step, you install the latest versions of | ||
[`julia-client`](https://github.com/JunoLab/atom-julia-client) and | ||
[`ink`](https://github.com/JunoLab/atom-ink) | ||
packages. | ||
|
||
First, _**close all the Atom windows**_. | ||
|
||
And then type the following command into your terminal | ||
(e.g. `cmd` on Windows or the Terminal App on MacOS): | ||
|
||
```sh | ||
apm update | ||
``` | ||
|
||
If that doesn’t work, or if you want to only update Juno-related packages, | ||
try the commands below instead: | ||
|
||
```sh | ||
apm uninstall ink | ||
apm uninstall julia-client | ||
apm install ink | ||
apm install julia-client | ||
``` | ||
|
||
!!! note | ||
To fully update Atom packages, an Atom process that had been started _before_ updating the packages needs to be restarted. | ||
This is why we recommend you close all the Atom processes first. | ||
If you follow the above step, `julia-client` and `ink` will be latest the next time you open Atom . | ||
|
||
!!! warning | ||
It is possible that your Antivirus Software prevents certain files to be downloaded or | ||
executed that are necessary for Juno to function. Consider disabling antivirus software's | ||
real time monitoring for the duration of the installation. For certain scanners | ||
(Avast and McAffee) it might also be necessary to exclude | ||
``` | ||
C:\Users\you\.atom\packages\julia-client\node_modules\node-pty-prebuilt\build\Release\winpty-agent.exe | ||
``` | ||
from the real time monitoring after installation. This is an [upstream issue](https://github.com/rprichard/winpty/issues/142) which should hopefully be resolved soon. | ||
|
||
## 2. Update Julia Packages | ||
|
||
Now you update Julia packages: | ||
[Atom.jl](https://github.com/JunoLab/Atom.jl) and | ||
[Juno.jl](https://github.com/JunoLab/Juno.jl). | ||
|
||
Start a Julia process _**outside of Juno**_, and then execute the following: | ||
|
||
```julia | ||
pkg> up Atom Juno | ||
``` | ||
|
||
If it doesn't work, try to execute below and see what hinders the updates of | ||
Atom.jl and Juno.jl in your environment. | ||
|
||
```julia | ||
pkg> rm Atom Juno | ||
pkg> add Atom@atomjlver | ||
pkg> add Juno@junojlver | ||
``` | ||
|
||
where `@atomjlver` and `@junojlver` is the versions of Atom.jl and Juno.jl that you're trying to update to, respectively. | ||
|
||
!!! tip | ||
It is also possible to update Atom.jl and Juno.jl from Juno's REPL, | ||
but in some update cases Juno's REPL itself may be unfunctional because of | ||
the incompatibility between (already updated) Atom packages and (not-updated) Julia packages, | ||
and so we recommend you update Julia packages outside of Juno. | ||
|
||
Also note that when you update Julia packages from Juno's REPL | ||
and if the `Boot Mode` config setting is set to `Cycler`, | ||
you may need to restart Julia process _twice_ to reflect update changes. | ||
|
||
!!! warning | ||
The versioning of Atom.jl and Juno.jl doesn't necessarily match. | ||
For example, the current latest version of Atom.jl is `[email protected]` | ||
while that of Juno.jl is `[email protected]` | ||
|
||
## 3. The New Juno is Ready ! | ||
|
||
Congrat ! Now your Juno has been successfully updated. | ||
Let's start Atom, fire up Julia, and enjoy the new Juno ! | ||
|
||
We usually publish release notes at [Julia Discourse](https://discourse.julialang.org/c/tools/juno/l/latest); | ||
please check there for what new features/improvements/bugfixes are included within a release. | ||
|
||
## Troubleshooting | ||
|
||
In a case you still face a problem even after following the update instructions here, then please post | ||
on [Juno.jl GitHub repository](https://github.com/JunoLab/Juno.jl/issues) or | ||
at [Julia Discourse under the `Tooling ▶ Juno` category](https://discourse.julialang.org/c/tools/juno/l/latest), | ||
and we're happy to help. | ||
|
||
!!! note | ||
When you report a problem, please add the output of `Julia Client: Debug Info` command or `Juno > Debug Information` menus entry if possible. |