# Vs code lang server won't start

**URL:** https://discourse.julialang.org/t/vs-code-lang-server-wont-start/115587
**Category:** VS Code
**Created:** [June 13, 2024, 8:01am UTC](https://discourse.julialang.org/t/vs-code-lang-server-wont-start/115587 "2024-06-13T08:01:53Z")
**Posts on this page:** 12
**Page:** 1

<div class="post-metadata">

### Author: ![yjr](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/yjr/32/207725_2.png) [@yjr](https://discourse.julialang.org/u/yjr)
#### Post date: [June 13, 2024, 8:01am UTC](https://discourse.julialang.org/t/vs-code-lang-server-wont-start/115587/1 "2024-06-13T08:01:53Z")

</div>

Hello,  
vscode language server won’t start error msg is:

```julia
ERROR: LoadError: IOError: connect: permission denied (EACCES)
Stacktrace:
 [1] wait_connected(x::Base.PipeEndpoint)
   @ Sockets C:\Users\yjr\.julia\juliaup\julia-1.10.4+0.x64.w64.mingw32\share\julia\stdlib\v1.10\Sockets\src\Sockets.jl:528
 [2] connect
   @ C:\Users\yjr\.julia\juliaup\julia-1.10.4+0.x64.w64.mingw32\share\julia\stdlib\v1.10\Sockets\src\Sockets.jl:563 [inlined]
 [3] connect
   @ C:\Users\yjr\.julia\juliaup\julia-1.10.4+0.x64.w64.mingw32\share\julia\stdlib\v1.10\Sockets\src\PipeServer.jl:103 [inlined]
 [4] serve(args::String; is_dev::Bool, crashreporting_pipename::String)
   @ VSCodeServer c:\Users\yjr\.vscode\extensions\julialang.language-julia-1.79.2\scripts\packages\VSCodeServer\src\VSCodeServer.jl:113
 [5] top-level scope
   @ c:\Users\yjr\.vscode\extensions\julialang.language-julia-1.79.2\scripts\terminalserver\terminalserver.jl:45
in expression starting at c:\Users\yjr\.vscode\extensions\julialang.language-julia-1.79.2\scripts\terminalserver\terminalserver.jl:20
julia> 

```

Any ideas welcome  
Br

---

<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: [June 13, 2024, 8:31am UTC](https://discourse.julialang.org/t/vs-code-lang-server-wont-start/115587/2 "2024-06-13T08:31:22Z")

</div>

Perhaps there is some julia process still running which blocks the socket?  
Close all Julia windows, open the Task Manager and kill all julia processes still running, if any.

---

<div class="post-metadata">

### Author: ![yjr](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/yjr/32/207725_2.png) [@yjr](https://discourse.julialang.org/u/yjr)
#### Post date: [June 13, 2024, 9:00am UTC](https://discourse.julialang.org/t/vs-code-lang-server-wont-start/115587/3 "2024-06-13T09:00:29Z")

</div>

I tried it but no luck I had only one julia process corresponding to the one giving the error. I think it is linked to some rights that are too stringent but I’ve to find what exactly so that I can tell the IT guy where to elevate privilege.

---

<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: [June 13, 2024, 9:10am UTC](https://discourse.julialang.org/t/vs-code-lang-server-wont-start/115587/4 "2024-06-13T09:10:20Z")

</div>

> [@yjr](#):
>
> elevate privilege

This would be next step I would have recommended.  
It works probably with admin rights, but you still don’t know why.

I use Process Monitor from the Sysinternals suit to hunt down errors like this.([Sysinternals - Sysinternals | Microsoft Learn](https://learn.microsoft.com/de-de/sysinternals/)) Your IT guy probably know.

Or @davidanthoff can tell us, which socket this is and where some access rights needs to be given.

---

<div class="post-metadata">

### Author: ![TimG](https://avatars.discourse-cdn.com/v4/letter/t/82dd89/32.png) [@TimG](https://discourse.julialang.org/u/TimG)
#### Post date: [June 13, 2024, 11:30am UTC](https://discourse.julialang.org/t/vs-code-lang-server-wont-start/115587/5 "2024-06-13T11:30:15Z")

</div>

I had [a similar problem](https://discourse.julialang.org/t/changes-to-juliaup-overnight/115471) the other day. My organisation’s IT policies suddenly blocked something and so julia couldn’t start. I presume that they did some kind of update overnight. They were quickly able to sort things out - even though they didn’t have an exact diagnosis:

> There is no information that states specifically what is being blocked but we do have a suspicion. As a test I have added you to a group that excludes you from a particular policy and have forced a synch with your device.

This worked for me and I’m back in business! I’m afraid I don’t know the particular policy that caused the problem in the first place, though.

---

<div class="post-metadata">

### Author: ![davidanthoff](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/davidanthoff/32/223493_2.png) [@davidanthoff](https://discourse.julialang.org/u/davidanthoff)
#### Post date: [June 13, 2024, 4:41pm UTC](https://discourse.julialang.org/t/vs-code-lang-server-wont-start/115587/6 "2024-06-13T16:41:24Z")

</div>

Hm, we generate a new pipe name with a uuid in it every time, so it can’t be a name conflict…

I also doubt that it is a general not-admin problem, I assume we would have run into that a long time ago, plus as far as I know named pipes should work perfectly fine for non-admin accounts.

So not sure right now, I’ll keep thinking…

---

<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: [June 13, 2024, 5:47pm UTC](https://discourse.julialang.org/t/vs-code-lang-server-wont-start/115587/7 "2024-06-13T17:47:58Z")

</div>

I agree that it’s probably something special. I pinged expecting an answer like this from someone who knows. It’s still very valuable information for OPs IT “guys” so they can check their windows security policies.

---

<div class="post-metadata">

### Author: ![yjr](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/yjr/32/207725_2.png) [@yjr](https://discourse.julialang.org/u/yjr)
#### Post date: [June 14, 2024, 8:18am UTC](https://discourse.julialang.org/t/vs-code-lang-server-wont-start/115587/8 "2024-06-14T08:18:37Z")

</div>

Finally I was able to make it run by disabling the firewall during server start…

---

<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: [June 14, 2024, 9:08am UTC](https://discourse.julialang.org/t/vs-code-lang-server-wont-start/115587/9 "2024-06-14T09:08:28Z")

</div>

Some rules are too restrictive. Or it’s missing some rules to overcome overly restrictive rules.  
This is not a problem as long as corporate IT is open to changes on the policies if needed.

---

<div class="post-metadata">

### Author: ![TimG](https://avatars.discourse-cdn.com/v4/letter/t/82dd89/32.png) [@TimG](https://discourse.julialang.org/u/TimG)
#### Post date: [June 14, 2024, 9:49am UTC](https://discourse.julialang.org/t/vs-code-lang-server-wont-start/115587/10 "2024-06-14T09:49:01Z")

</div>

So I asked IT is they could clarify the rule that was blocking my use of julia:

> I cannot go into details of our security policies and also I cannot leave you in there because it is a huge security risk.  
> I will be taking you out of that policy and instead I will be creating an exemption for the specific piece of software to enable you to continue working.  
> Further consideration will need to be given as to whether we can continue to allow that software within the organisation or whether there is something more suitable that poses less of a risk.

I would be extremely unhappy to lose the use of julia and go back to square one with something else.

---

<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: [June 14, 2024, 11:24am UTC](https://discourse.julialang.org/t/vs-code-lang-server-wont-start/115587/11 "2024-06-14T11:24:30Z")

</div>

Security IS important. But productive work should not be made impossible for security reasons. This is a natural conflict in a corporate environment, but if security beats productivity there will soon be no security needed anymore because there is nothing left to be secured.

But the good news is, they let you work and they are thinking about it how to find a good compromise as far as I can tell from the little I know.

---

<div class="post-metadata">

### Author: ![davidanthoff](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/davidanthoff/32/223493_2.png) [@davidanthoff](https://discourse.julialang.org/u/davidanthoff)
#### Post date: [June 14, 2024, 7:25pm UTC](https://discourse.julialang.org/t/vs-code-lang-server-wont-start/115587/12 "2024-06-14T19:25:32Z")

</div>

So in general I think the policy they have is too restrictive. I made extra sure to _not_ use sockets and ports, so that none of the communication channels is ever accessible from a network. Why they would be blocking local named pipe communication is beyond me, TBH…
