# Could not start the Julia language server. Make sure the \`julia.environmentPath\` setting is valid

**URL:** https://discourse.julialang.org/t/could-not-start-the-julia-language-server-make-sure-the-julia-environmentpath-setting-is-valid/87794
**Category:** General Usage
**Tags:** question
**Created:** [September 25, 2022, 11:44pm UTC](https://discourse.julialang.org/t/could-not-start-the-julia-language-server-make-sure-the-julia-environmentpath-setting-is-valid/87794 "2022-09-25T23:44:25Z")
**Posts on this page:** 10
**Page:** 1

<div class="post-metadata">

### Author: ![tryjulia](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/tryjulia/32/42826_2.png) [@tryjulia](https://discourse.julialang.org/u/tryjulia)
#### Post date: [September 25, 2022, 11:44pm UTC](https://discourse.julialang.org/t/could-not-start-the-julia-language-server-make-sure-the-julia-environmentpath-setting-is-valid/87794/1 "2022-09-25T23:44:25Z")

</div>

Hi, I’m new to MacOs, and currently want to use VS Code to run julia into the system but there’s notification:

> Could not start the Julia language server. Make sure the `julia.environmentPath` setting is valid.

 ![Screen Shot 2022-09-25 at 7.41.42 PM](https://global.discourse-cdn.com/julialang/original/3X/8/9/893af8a23e953b6cc5848ba9eed1e0a73fa47c7f.png)

I’ve read [here](https://discourse.julialang.org/t/i-am-not-able-to-use-julia-in-vscode/76112/5) that I need to:

> edit your configuration settings, execute the `Preferences: Open User Settings` command (you can also access it via the menu `File->Preferences->Settings` ), and then make sure your user settings include the `julia.executablePath` setting. The format of the string should follow your platform specific conventions, and be aware that the backlash `\` is the escape character in JSON, so you need to use `\\` as the path separator character on Windows.

But since I’m very new to Mac and Julia, I have no clue how to do it. Thank you.

---

<div class="post-metadata">

### Author: ![Elrod](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/elrod/32/22461_2.png) [@Elrod](https://discourse.julialang.org/u/Elrod)
#### Post date: [September 26, 2022, 3:08am UTC](https://discourse.julialang.org/t/could-not-start-the-julia-language-server-make-sure-the-julia-environmentpath-setting-is-valid/87794/2 "2022-09-26T03:08:00Z")

</div>

Have you installed julia?  
If not, I’d recommend first installing it via juliaup: [GitHub - JuliaLang/juliaup: Julia installer and version multiplexer](https://github.com/JuliaLang/juliaup#mac-and-linux)

This should add it to your path so vocode can find it.

If you’ve already installed it, but vscode still can’t find julia, I’d recommend starting Julia from the command line, and then running `Sys.BINDIR` to get the path.

---

<div class="post-metadata">

### Author: ![tryjulia](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/tryjulia/32/42826_2.png) [@tryjulia](https://discourse.julialang.org/u/tryjulia)
#### Post date: [September 26, 2022, 8:00am UTC](https://discourse.julialang.org/t/could-not-start-the-julia-language-server-make-sure-the-julia-environmentpath-setting-is-valid/87794/3 "2022-09-26T08:00:52Z")

</div>

> [@Elrod](#):
>
> Sys.BINDIR

I’ve installed Julia and the path location is /Volumes/Julia-1.8.1/Julia-1.8.app/Contents/Resources/julia/bin  
However, when I tried to put this at settings.json in Vscode

> {  
> “workbench.colorTheme”: “Default Light+”,  
> “terminal.integrated.commandsToSkipShell”: [  
> “language-julia.interrupt”  
> ],  
> “julia.symbolCacheDownload”: true,  
> “julia.environmentPath”: “/Volumes/Julia-1.8.1/Julia-1.8.app/Contents/Resources/julia/bin”,  
> “julia.enableTelemetry”: true  
> }

it didn’t work. It is stated:

> Could not start the Julia language server. Make sure the `julia.executablePath` setting points to the Julia binary.

Thank you

---

<div class="post-metadata">

### Author: ![pfitzseb](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/pfitzseb/32/45566_2.png) [@pfitzseb](https://discourse.julialang.org/u/pfitzseb)
#### Post date: [September 26, 2022, 8:51am UTC](https://discourse.julialang.org/t/could-not-start-the-julia-language-server-make-sure-the-julia-environmentpath-setting-is-valid/87794/4 "2022-09-26T08:51:23Z")

</div>

That’s just a confusing error message. Put

```julia
 “julia.executablePath”: “/Volumes/Julia-1.8.1/Julia-1.8.app/Contents/Resources/julia/bin/julia”,

```

into your settings instead of

```julia
 “julia.environmentPath”: “/Volumes/Julia-1.8.1/Julia-1.8.app/Contents/Resources/julia/bin”,

```

---

<div class="post-metadata">

### Author: ![tryjulia](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/tryjulia/32/42826_2.png) [@tryjulia](https://discourse.julialang.org/u/tryjulia)
#### Post date: [September 26, 2022, 9:25am UTC](https://discourse.julialang.org/t/could-not-start-the-julia-language-server-make-sure-the-julia-environmentpath-setting-is-valid/87794/5 "2022-09-26T09:25:04Z")

</div>

it still show me error. How to get the julia executable path and julia environment path?  
It kinda hopeless, been installed and uninstalled vs code and julia several times but still don’t work 😣.  
Meanwhile,

> {  
> “workbench.colorTheme”: “Default Light+”,  
> “terminal.integrated.commandsToSkipShell”: [  
> “language-julia.interrupt”  
> ],  
> “julia.symbolCacheDownload”: true,  
> “julia.environmentPath”: “”,  
> “julia.enableTelemetry”: true,  
> “julia.executablePath”: “”,
> 
> }

thank you

---

<div class="post-metadata">

### Author: ![digital\_carver](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/digital_carver/32/33818_2.png) [@digital\_carver](https://discourse.julialang.org/u/digital_carver)
#### Post date: [September 26, 2022, 3:47pm UTC](https://discourse.julialang.org/t/could-not-start-the-julia-language-server-make-sure-the-julia-environmentpath-setting-is-valid/87794/6 "2022-09-26T15:47:23Z")

</div>

> [@tryjulia](#):
>
> it still show me error.

What error message do you get now?

> [@tryjulia](#):
>
> “julia.executablePath”: “”,

Note that `julia.executablePath` should be `/Volumes/Julia-1.8.1/Julia-1.8.app/Contents/Resources/julia/bin/julia` like @pfitzseb mentioned above.

---

<div class="post-metadata">

### Author: ![aninha](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/aninha/32/45037_2.png) [@aninha](https://discourse.julialang.org/u/aninha)
#### Post date: [October 2, 2022, 3:08am UTC](https://discourse.julialang.org/t/could-not-start-the-julia-language-server-make-sure-the-julia-environmentpath-setting-is-valid/87794/7 "2022-10-02T03:08:22Z")

</div>

{  
“terminal.integrated.commandsToSkipShell”: [  
“language-julia.interrupt”  
],  
“julia.symbolCacheDownload”: true,  
“julia.enableTelemetry”: true,  
“julia.environmentPath”: “C:/Users/Ana Carolina/AppData/Local/Programs/Julia-1.8.2/bin/julia”,  
}

Anyone can help me to solv yhis problem, : Could not start the Julia language server. Make sure the `julia.environmentPath` setting is valid.

---

<div class="post-metadata">

### Author: ![tryjulia](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/tryjulia/32/42826_2.png) [@tryjulia](https://discourse.julialang.org/u/tryjulia)
#### Post date: [October 3, 2022, 6:57am UTC](https://discourse.julialang.org/t/could-not-start-the-julia-language-server-make-sure-the-julia-environmentpath-setting-is-valid/87794/8 "2022-10-03T06:57:21Z")

</div>

after several updates and time spending, apparently it works!  
I’ve read that M1 chip has lot of issue. I have similar problem installing openLCA. For the julia installation, I change the path, update the Mac and works. For openLCA didn’t work at all so I installed the previous version and then it works.

---

<div class="post-metadata">

### Author: ![tryjulia](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/tryjulia/32/42826_2.png) [@tryjulia](https://discourse.julialang.org/u/tryjulia)
#### Post date: [October 3, 2022, 7:03am UTC](https://discourse.julialang.org/t/could-not-start-the-julia-language-server-make-sure-the-julia-environmentpath-setting-is-valid/87794/9 "2022-10-03T07:03:33Z")

</div>

this was the same issue as me.

1. Make sure you update the the Mac software to the newest version
2. Make sure the julia is properly installed, it should be inside the Application. If you found it inside your application, drag it to terminal and that’s your location of julia path.
3. if it not properly installed, you could consider install the rosetta [Install Rosetta on Macbook M1 chip fails - Apple Community](https://discussions.apple.com/thread/253680698)

---

<div class="post-metadata">

### Author: ![teawhy](https://avatars.discourse-cdn.com/v4/letter/t/5f9b8f/32.png) [@teawhy](https://discourse.julialang.org/u/teawhy)
#### Post date: [January 13, 2023, 3:20pm UTC](https://discourse.julialang.org/t/could-not-start-the-julia-language-server-make-sure-the-julia-environmentpath-setting-is-valid/87794/10 "2023-01-13T15:20:27Z")

</div>

Instead of using default path, change install path to C:\Program Files\ (you may need to run the installer as an Admin) and make sure you add Julia to PATH
