# How to set the julia.executablePath in VS Code on MacOS-12?

**URL:** <https://discourse.julialang.org/t/how-to-set-the-julia-executablepath-in-vs-code-on-macos-12/76760>\
**Category:** General Usage\
**Tags:** question\
**Created:** [February 19, 2022, 3:09pm UTC](https://discourse.julialang.org/t/how-to-set-the-julia-executablepath-in-vs-code-on-macos-12/76760 "2022-02-19T15:09:16Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![jjdegruijter](https://avatars.discourse-cdn.com/v4/letter/j/fbc32d/32.png) [@jjdegruijter](https://discourse.julialang.org/u/jjdegruijter)\
**Post date:** [February 19, 2022, 3:09pm UTC](https://discourse.julialang.org/t/how-to-set-the-julia-executablepath-in-vs-code-on-macos-12/76760/1 "2022-02-19T15:09:16Z")

</div>

I installed julia-1.6 and VS Code both in my Applications folder. Then I got the Julia extension from the VS Code Marketplace.  
As this extension does not find my Julia installation automatically, I shoud set the julia.executablePath to point to the Julia executable.  
However, this is not listed in the User Settings.

Does anybody know how in this case VS Code can find the Julia installation?

---

<div class="post-metadata">

**Author:** ![oheil](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/oheil/32/220745_2.png) [@oheil](https://discourse.julialang.org/u/oheil)\
**Post date:** [February 19, 2022, 5:19pm UTC](https://discourse.julialang.org/t/how-to-set-the-julia-executablepath-in-vs-code-on-macos-12/76760/2 "2022-02-19T17:19:38Z")

</div>

There are extension specific settings:

 ![image](https://global.discourse-cdn.com/julialang/original/3X/2/5/25500bf8d0b4805375ced3c4e73135ea3e0240c5.png)

---

<div class="post-metadata">

**Author:** ![jjdegruijter](https://avatars.discourse-cdn.com/v4/letter/j/fbc32d/32.png) [@jjdegruijter](https://discourse.julialang.org/u/jjdegruijter)\
**Post date:** [February 19, 2022, 9:31pm UTC](https://discourse.julialang.org/t/how-to-set-the-julia-executablepath-in-vs-code-on-macos-12/76760/3 "2022-02-19T21:31:56Z")

</div>

I found the extension specific settings, thank you. What setting should I choose? Julia: Additional Args?  
In what way should I edit?

---

<div class="post-metadata">

**Author:** ![oheil](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/oheil/32/220745_2.png) [@oheil](https://discourse.julialang.org/u/oheil)\
**Post date:** [February 19, 2022, 10:06pm UTC](https://discourse.julialang.org/t/how-to-set-the-julia-executablepath-in-vs-code-on-macos-12/76760/4 "2022-02-19T22:06:47Z")

</div>

> [@jjdegruijter](#):
>
> I should set the julia.executablePath to point to the Julia executable.

Exactly that. It’s a few scrolls down  
“Julia: Executable Path”

---

<div class="post-metadata">

**Author:** ![jjdegruijter](https://avatars.discourse-cdn.com/v4/letter/j/fbc32d/32.png) [@jjdegruijter](https://discourse.julialang.org/u/jjdegruijter)\
**Post date:** [February 20, 2022, 7:55am UTC](https://discourse.julialang.org/t/how-to-set-the-julia-executablepath-in-vs-code-on-macos-12/76760/5 "2022-02-20T07:55:47Z")

</div>

Sorry, I overlooked that. What do I have to do to install it?

---

<div class="post-metadata">

**Author:** ![oheil](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/oheil/32/220745_2.png) [@oheil](https://discourse.julialang.org/u/oheil)\
**Post date:** [February 20, 2022, 8:37am UTC](https://discourse.julialang.org/t/how-to-set-the-julia-executablepath-in-vs-code-on-macos-12/76760/6 "2022-02-20T08:37:07Z")

</div>

“Set the path to the executable”, which means: enter the path to the julia executable into the free field at “Julia: Executable Path”.

---

<div class="post-metadata">

**Author:** ![jjdegruijter](https://avatars.discourse-cdn.com/v4/letter/j/fbc32d/32.png) [@jjdegruijter](https://discourse.julialang.org/u/jjdegruijter)\
**Post date:** [February 20, 2022, 1:59pm UTC](https://discourse.julialang.org/t/how-to-set-the-julia-executablepath-in-vs-code-on-macos-12/76760/7 "2022-02-20T13:59:40Z")

</div>

I entered the path. What to do then? Just return didn’t help

---

<div class="post-metadata">

**Author:** ![jjdegruijter](https://avatars.discourse-cdn.com/v4/letter/j/fbc32d/32.png) [@jjdegruijter](https://discourse.julialang.org/u/jjdegruijter)\
**Post date:** [February 22, 2022, 9:09pm UTC](https://discourse.julialang.org/t/how-to-set-the-julia-executablepath-in-vs-code-on-macos-12/76760/8 "2022-02-22T21:09:40Z")

</div>

I found the free field and entered the path to the julia executable:  
/Applications/julia-1.6/Contents/Resources/julia/bin/julia

But with I tried to run one of my codes, I got two messages.

First: “Variable ${workspaceFolder} can not be resolved. Please open a folder.” Link: Open ‘launch.json’

Second: “Cannot read property ‘file’ of undefined” Link: Open ‘launch.json’

I don’t know what to do when I open lauch.json, the options shown don’t mean anything to me.

Also, I’m not sure whether the path I entered is sufficient, or should there be something in front of /Applications ?

---

<div class="post-metadata">

**Author:** ![oheil](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/oheil/32/220745_2.png) [@oheil](https://discourse.julialang.org/u/oheil)\
**Post date:** [February 23, 2022, 9:15am UTC](https://discourse.julialang.org/t/how-to-set-the-julia-executablepath-in-vs-code-on-macos-12/76760/9 "2022-02-23T09:15:15Z")

</div>

> [@jjdegruijter](#):
>
> I found the free field and entered the path to the julia executable:  
> /Applications/julia-1.6/Contents/Resources/julia/bin/julia

I can’t help here as I don’t have a MacOS to check or to try.

> [@jjdegruijter](#):
>
> But with I tried to run one of my codes, I got two messages.
> 
> First: “Variable ${workspaceFolder} can not be resolved. Please open a folder.” Link: Open ‘launch.json’
> 
> Second: “Cannot read property ‘file’ of undefined” Link: Open ‘launch.json’
> 
> I don’t know what to do when I open lauch.json, the options shown don’t mean anything to me.
> 
> Also, I’m not sure whether the path I entered is sufficient, or should there be something in front of /Applications ?

You can try to just comment out the lines which produces errors by putting `//` in front of the line. I think it isn’t a big problem if you just remove or rename `launch.json` so that it isn’t used, but I don’t know really. Some of my projects do have a launch.json, others not. So I am not sure here.
