# Updating Julia Packages from Sublime Text / Terminus

**URL:** <https://discourse.julialang.org/t/updating-julia-packages-from-sublime-text-terminus/68120>\
**Category:** Tooling\
**Created:** [September 13, 2021, 8:03pm UTC](https://discourse.julialang.org/t/updating-julia-packages-from-sublime-text-terminus/68120 "2021-09-13T20:03:04Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![stephenll](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/stephenll/32/28751_2.png) [@stephenll](https://discourse.julialang.org/u/stephenll)\
**Post date:** [September 13, 2021, 8:03pm UTC](https://discourse.julialang.org/t/updating-julia-packages-from-sublime-text-terminus/68120/1 "2021-09-13T20:03:04Z")

</div>

I use Sublime Text as my editor for Julia. For almost everything it is perfect for me.

The only thing I can’t seem to do with Sublime Text on both my corporate Windows computer and my personal MacOS computer is update Julia packages using the Package REPL `]` or Pkg.update() while using the Terminus terminal in Sublime Text. I get the following error on both operating systems:

`GitError(Code:ERROR, Class:SSL, Your Julia is built with a SSL/TLS engine that libgit2 doesn't know how to configure to use a file or directory of certificate authority roots ...`

I can run code just fine. And if I use the standard terminal apps on both operating systems, I can update the packages just fine.

Any hints or tips on how to get the package updates working using Terminus? Thanks.

---

<div class="post-metadata">

**Author:** ![PetrKryslUCSD](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/petrkryslucsd/32/215825_2.png) [@PetrKryslUCSD](https://discourse.julialang.org/u/PetrKryslUCSD)\
**Post date:** [September 13, 2021, 8:47pm UTC](https://discourse.julialang.org/t/updating-julia-packages-from-sublime-text-terminus/68120/2 "2021-09-13T20:47:41Z")

</div>

Julia version? The same on Win and Mac?  
Windows version? 7 or 10?

I am on Win 10, Julia 1.6 and up. No prob.

---

<div class="post-metadata">

**Author:** ![stephenll](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/stephenll/32/28751_2.png) [@stephenll](https://discourse.julialang.org/u/stephenll)\
**Post date:** [September 13, 2021, 9:21pm UTC](https://discourse.julialang.org/t/updating-julia-packages-from-sublime-text-terminus/68120/3 "2021-09-13T21:21:50Z")

</div>

Away from computer at the moment, I think it is Julia 1.6.1. Win 10 pro latest release. MacOS latest release as well. Exact same error on both.

---

<div class="post-metadata">

**Author:** ![PetrKryslUCSD](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/petrkryslucsd/32/215825_2.png) [@PetrKryslUCSD](https://discourse.julialang.org/u/PetrKryslUCSD)\
**Post date:** [September 13, 2021, 9:47pm UTC](https://discourse.julialang.org/t/updating-julia-packages-from-sublime-text-terminus/68120/4 "2021-09-13T21:47:24Z")

</div>

I don’t think this has anything to do with Sublime Text: ST does not bring its own libgit2, so conflict with the one that comes with Julia is not likely. I am running Julia 1.7.3 and the nightly 1.8.

---

<div class="post-metadata">

**Author:** ![stephenll](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/stephenll/32/28751_2.png) [@stephenll](https://discourse.julialang.org/u/stephenll)\
**Post date:** [September 13, 2021, 10:30pm UTC](https://discourse.julialang.org/t/updating-julia-packages-from-sublime-text-terminus/68120/5 "2021-09-13T22:30:20Z")

</div>

I do have Sublime Merge as well. Not sure if that matters. I don’t know the technical specifics but I know there is some integration between the two. I may try to uninstall SM and see if that works.

---

<div class="post-metadata">

**Author:** ![stephenll](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/stephenll/32/28751_2.png) [@stephenll](https://discourse.julialang.org/u/stephenll)\
**Post date:** [September 14, 2021, 1:07am UTC](https://discourse.julialang.org/t/updating-julia-packages-from-sublime-text-terminus/68120/6 "2021-09-14T01:07:21Z")

</div>

I really don’t know what I am doing but I saw the NetworkOptions package.

Using built-in to Windows terminal: (I see similar results on the Mac as well)

```julia
julia> using NetworkOptions

julia> ca_roots()

julia> ca_roots_path()
"C:\\Julia\\julia-1.6.1\\share\\julia\\cert.pem"

```

Using Terminus in Sublime Text:

```julia
julia> ca_roots()                                                                                                                             
"C:\\Program Files\\Sublime Text\\Lib\\python3\\certifi\\cacert.pem"                                                                          
                                                                                                                                              
julia> ca_roots_path()                                                                                                                        
"C:\\Program Files\\Sublime Text\\Lib\\python3\\certifi\\cacert.pem"

```

Could this be the issue?

---

<div class="post-metadata">

**Author:** ![PetrKryslUCSD](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/petrkryslucsd/32/215825_2.png) [@PetrKryslUCSD](https://discourse.julialang.org/u/PetrKryslUCSD)\
**Post date:** [September 14, 2021, 1:40am UTC](https://discourse.julialang.org/t/updating-julia-packages-from-sublime-text-terminus/68120/7 "2021-09-14T01:40:05Z")

</div>

Good guess. Perhaps this might help? [Package fetch issues with internal SSL certificate - #2 by yalwan-iqvia](https://discourse.julialang.org/t/package-fetch-issues-with-internal-ssl-certificate/43026/2)

---

<div class="post-metadata">

**Author:** ![stephenll](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/stephenll/32/28751_2.png) [@stephenll](https://discourse.julialang.org/u/stephenll)\
**Post date:** [September 14, 2021, 4:36am UTC](https://discourse.julialang.org/t/updating-julia-packages-from-sublime-text-terminus/68120/8 "2021-09-14T04:36:55Z")

</div>

I’m wasn’t sure what to do with that.

Here is how I finally got it work after a bunch of trial and error:

In the error message it says about using `export JULIA_SSL_CA_ROOTS_PATH=""` .

On Windows, I took that to meaning using the Environmental variables in Windows GUI. So I created a variable for that and set it to “”. That didn’t work.

## Solution

Works for both MacOS and Windows: It turns out adding the following to `startup.jl` works. I can now run the packages update from inside Terminus in Sublime Text.

```julia
ENV["JULIA_SSL_CA_ROOTS_PATH"] = ""

```

---

<div class="post-metadata">

**Author:** ![ellocco](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ellocco/32/31331_2.png) [@ellocco](https://discourse.julialang.org/u/ellocco)\
**Post date:** [November 30, 2022, 1:35pm UTC](https://discourse.julialang.org/t/updating-julia-packages-from-sublime-text-terminus/68120/9 "2022-11-30T13:35:55Z")

</div>

Hi,  
I am struggling to get the connection between the editor and a REPL.  
What is the trick?  
Could you give some advice in the related thread: [set-up-sublime-text-4-for-julia](https://discourse.julialang.org/t/set-up-sublime-text-4-for-julia/91039)  
Stefan

---

<div class="post-metadata">

**Author:** ![stephenll](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/stephenll/32/28751_2.png) [@stephenll](https://discourse.julialang.org/u/stephenll)\
**Post date:** [November 30, 2022, 2:11pm UTC](https://discourse.julialang.org/t/updating-julia-packages-from-sublime-text-terminus/68120/10 "2022-11-30T14:11:37Z")

</div>

The connection, is that I’m using the Terminus package in Sublime Text as an embedded terminal. Without the above change I couldn’t run the Pkg update inside Terminus. As far as the other thread, I don’t use LSP. I like the updated auto-complete that is in the latest version of Sublime Text, and using Debugger and profiling from the command line (Terminus) works very well for me.

---

<div class="post-metadata">

**Author:** ![afishy](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/afishy/32/18870_2.png) [@afishy](https://discourse.julialang.org/u/afishy)\
**Post date:** [June 20, 2024, 11:47pm UTC](https://discourse.julialang.org/t/updating-julia-packages-from-sublime-text-terminus/68120/11 "2024-06-20T23:47:05Z")

</div>

Late to the party, but I just had this issue and realized it came from running Julia from a terminal where I’d activated a Conda environment, and `ca_roots()` pointed to a location in that environment’s folder. In my case deactivating the environment wasn’t enough, I had to kill the terminal and start a new one. Then everything worked as expected.
