# \] Doesn't work on Atom's JuliaPro

**URL:** https://discourse.julialang.org/t/doesnt-work-on-atoms-juliapro/18188
**Category:** Tooling
**Tags:** juliapro
**Created:** [November 30, 2018, 5:13pm UTC](https://discourse.julialang.org/t/doesnt-work-on-atoms-juliapro/18188 "2018-11-30T17:13:08Z")
**Posts on this page:** 12
**Page:** 1

<div class="post-metadata">

### Author: ![Juan](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/juan/32/7657_2.png) [@Juan](https://discourse.julialang.org/u/Juan)
#### Post date: [November 30, 2018, 5:13pm UTC](https://discourse.julialang.org/t/doesnt-work-on-atoms-juliapro/18188/1 "2018-11-30T17:13:08Z")

</div>

If I want to enter the Package environment and I run:  
`]`  
on the main GUI of Atom installed by JuliaPro I get this error:

`syntax: unexpected "]"`

If I run it on the REPL it works well.  
I I run it on VS Code it also works.

---

<div class="post-metadata">

### Author: ![pdeffebach](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/pdeffebach/32/10320_2.png) [@pdeffebach](https://discourse.julialang.org/u/pdeffebach)
#### Post date: [November 30, 2018, 5:44pm UTC](https://discourse.julialang.org/t/doesnt-work-on-atoms-juliapro/18188/2 "2018-11-30T17:44:41Z")

</div>

Are you writing it in a script?

---

<div class="post-metadata">

### Author: ![Juan](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/juan/32/7657_2.png) [@Juan](https://discourse.julialang.org/u/Juan)
#### Post date: [November 30, 2018, 6:26pm UTC](https://discourse.julialang.org/t/doesnt-work-on-atoms-juliapro/18188/3 "2018-11-30T18:26:03Z")

</div>

yes I am.

---

<div class="post-metadata">

### Author: ![StefanKarpinski](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/stefankarpinski/32/24_2.png) [@StefanKarpinski](https://discourse.julialang.org/u/StefanKarpinski)
#### Post date: [November 30, 2018, 6:42pm UTC](https://discourse.julialang.org/t/doesnt-work-on-atoms-juliapro/18188/4 "2018-11-30T18:42:54Z")

</div>

That doesn’t work. You can use the `pkg"..."` custom string or `Pkg` API commands.

---

<div class="post-metadata">

### Author: ![Juan](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/juan/32/7657_2.png) [@Juan](https://discourse.julialang.org/u/Juan)
#### Post date: [November 30, 2018, 7:14pm UTC](https://discourse.julialang.org/t/doesnt-work-on-atoms-juliapro/18188/5 "2018-11-30T19:14:46Z")

</div>

I wanted tio follow StatsMakie.jl instructions:

`] add AbstractPlotting#master Makie#master https://github.com/JuliaPlots/StatsMakie.jl.git`

---

<div class="post-metadata">

### Author: ![pdeffebach](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/pdeffebach/32/10320_2.png) [@pdeffebach](https://discourse.julialang.org/u/pdeffebach)
#### Post date: [November 30, 2018, 7:36pm UTC](https://discourse.julialang.org/t/doesnt-work-on-atoms-juliapro/18188/6 "2018-11-30T19:36:15Z")

</div>

That tutorial was written with REPL in mind. But you make a good point that maybe tutorials should defer to `using Pkg`.

---

<div class="post-metadata">

### Author: ![BLI](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/bli/32/37206_2.png) [@BLI](https://discourse.julialang.org/u/BLI)
#### Post date: [November 30, 2018, 8:59pm UTC](https://discourse.julialang.org/t/doesnt-work-on-atoms-juliapro/18188/7 "2018-11-30T20:59:36Z")

</div>

I’m lazy, so I have made script files for adding packages and updating packages… because of that, I use `Pkg`. I sync these script files across several computers using OneDrive. Thus I have a script file for adding packages, `addPackages.jl` which I run using `include("addPackages.jl")`… looking somewhat like:

```nohighlight
using Pkg
Pkg.add("Plots")
Pkg.add("DifferentialEquations")
Pkg.add("LaTeXStrings")
…

```

Because of this, I prefer `Pkg` over `]`… I also have an `updatePackages.jl` script something like:

```nohighlight
using Pkg
Pkg.update()
using Plots
using DifferentialEquations
…

```

Here, my hope is that the `using Plots` etc. compiles/checks the packages so that they start faster when I actually use them… I typically rund these scripts overnight.

Maybe my procedure is naïve – perhaps there is no gain in the `using Plots`, etc. – but at least, I can test whether the packages work. The only problem I have with this is that it seems like if one of the addings/usings fail, then the script appears to stop/skip the subsequent statements.

---

<div class="post-metadata">

### Author: ![00vareladavid](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/00vareladavid/32/23521_2.png) [@00vareladavid](https://discourse.julialang.org/u/00vareladavid)
#### Post date: [December 1, 2018, 1:14am UTC](https://discourse.julialang.org/t/doesnt-work-on-atoms-juliapro/18188/8 "2018-12-01T01:14:43Z")

</div>

Would this be better: [4. Working with Environments · Pkg.jl](https://julialang.github.io/Pkg.jl/dev/environments/#Precompiling-a-project-1)?

Also, `Pkg.add` accepts a list of names (e.g. `Pkg.add(["Plots", "LaTeXStrings", ...]`)

---

<div class="post-metadata">

### Author: ![Juan](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/juan/32/7657_2.png) [@Juan](https://discourse.julialang.org/u/Juan)
#### Post date: [December 1, 2018, 1:43am UTC](https://discourse.julialang.org/t/doesnt-work-on-atoms-juliapro/18188/9 "2018-12-01T01:43:16Z")

</div>

] works well on VS Code.

---

<div class="post-metadata">

### Author: ![pdeffebach](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/pdeffebach/32/10320_2.png) [@pdeffebach](https://discourse.julialang.org/u/pdeffebach)
#### Post date: [December 1, 2018, 2:22am UTC](https://discourse.julialang.org/t/doesnt-work-on-atoms-juliapro/18188/10 "2018-12-01T02:22:54Z")

</div>

but it wont work in any other script you write. if you are trying to make anything that will run on anything other than vs code, you should use `Pkg`.

I highly recommend you read the documentation. All of your questions can be answered by searching through the documentation.

---

<div class="post-metadata">

### Author: ![stevengj](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/stevengj/32/71_2.png) [@stevengj](https://discourse.julialang.org/u/stevengj)
#### Post date: [December 3, 2018, 3:19pm UTC](https://discourse.julialang.org/t/doesnt-work-on-atoms-juliapro/18188/11 "2018-12-03T15:19:21Z")

</div>

There is something to be said for other _interactive_ environments emulating the REPL to some extent. That’s why IJulia recognizes inputs starting with `?` or `]`.

---

<div class="post-metadata">

### Author: ![mbauman](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mbauman/32/31082_2.png) [@mbauman](https://discourse.julialang.org/u/mbauman)
#### Post date: [September 12, 2023, 4:41pm UTC](https://discourse.julialang.org/t/doesnt-work-on-atoms-juliapro/18188/12 "2023-09-12T16:41:36Z")

</div>


