# Julia Language Server and VSCode Issue on HPC

**URL:** https://discourse.julialang.org/t/julia-language-server-and-vscode-issue-on-hpc/102029
**Category:** VS Code
**Tags:** hpc, vscode, languageserver
**Created:** [July 24, 2023, 5:16pm UTC](https://discourse.julialang.org/t/julia-language-server-and-vscode-issue-on-hpc/102029 "2023-07-24T17:16:28Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![TI36XPro](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ti36xpro/32/33658_2.png) [@TI36XPro](https://discourse.julialang.org/u/TI36XPro)
#### Post date: [July 24, 2023, 5:16pm UTC](https://discourse.julialang.org/t/julia-language-server-and-vscode-issue-on-hpc/102029/1 "2023-07-24T17:16:28Z")

</div>

Hello,

I am having some issues with the language server. I’ll describe what I am trying to do first.

I am getting my development environment set up on a new cluster. I want to be able to use the Julia Extension via [VSCode remote development](https://code.visualstudio.com/docs/remote/remote-overview).

I am using Julia 1.8.0, VScode version 1.80.1 and Julia Extension version 1.47.2.

I was able to SSH into the cluster, clone my git repo for development, and instantiate it. Note I had to instantiate it on a compute node and not a login node because of limitations on number of cores the login node allows you to use (I could have set precompilation tasks to 1 but that would have taken ages).

When I start Vscode though the Julia language server crashes. I looked in the output and I see the following.

```julia
Activating project at `~/.vscode-server/extensions/julialang.language-julia-1.47.2/scripts/environments/languageserver/v1.8`
[ Info: Starting the Julia Language Server
OpenBLAS blas_thread_init: pthread_create failed for thread 156 of 256: Resource temporarily unavailable

```

The message about `OpenBLAS blas_thread_init` repeats until it is `255 of 256`.

Then a fairy long stack trace is given with the following at the top:

```julia
ERROR: LoadError: IOError: could not spawn `MY/PROJECT/PATH/julia-1.8.0/bin/julia -Cnative -MY/PROJECT/PATH/julia-1.8.0/lib/julia/sys.so -O0 -g1 --startup-file=no -O0 --output-ji MY/PROJECT/PATH/.vscode-server/data/User/globalStorage/julialang.language-julia/lsdepot/v1/compiled/v1.8/Compat/jl_CDFTIb --output-incremental=yes --startup-file=no --history-file=no --warn-overwrite=yes --color=auto -`: resource temporarily unavailable (EAGAIN)

```

Which is followed by this message

```julia
The Language Server failed to precompile.
Please make sure you have permissions to write to the LS depot path at
MY/PROJECT/PATH/.vscode-server/data/User/globalStorage/julialang.language-julia/lsdepot/v1

```

I made sure that the directory `v1` is read and writable for users, groups, and other and I still get the same error.

Any clues on what might be causing this or how to resolve it?

---

<div class="post-metadata">

### Author: ![jishnub](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/jishnub/32/33620_2.png) [@jishnub](https://discourse.julialang.org/u/jishnub)
#### Post date: [July 24, 2023, 5:21pm UTC](https://discourse.julialang.org/t/julia-language-server-and-vscode-issue-on-hpc/102029/2 "2023-07-24T17:21:06Z")

</div>

I had a similar experience in

> [@Ocassional precompile error on a cluster using julia1.8](https://discourse.julialang.org/t/ocassional-precompile-error-on-a-cluster-using-julia1-8/82050/9):
>
> Thank you so much for the insight. It seems you are right about the 300 being a user limit. I admit, I don’t understand our setup very thoroughly as this is the first time it has become necessary for me to dig into it. Here are my ulimit -a results for reference: 
> 
> > **ulimit -a**
> >
> > core file size (blocks, -c) 0 data seg size (kbytes, -d) unlimited scheduling priority (-e) 0 file size (blocks, -f) unlimited pending signals (-i) 1030093 max locke…

Could you check the result of `ulimit -a`? Could you also try a recent Julia version (1.9.0+)?

---

<div class="post-metadata">

### Author: ![TI36XPro](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ti36xpro/32/33658_2.png) [@TI36XPro](https://discourse.julialang.org/u/TI36XPro)
#### Post date: [July 24, 2023, 5:33pm UTC](https://discourse.julialang.org/t/julia-language-server-and-vscode-issue-on-hpc/102029/3 "2023-07-24T17:33:49Z")

</div>

Here is what I get when doing `ulimit -a` on the login node.

```julia
max user processes (-u) 1028898

```

I will give 1.9 a try later tonight.

---

<div class="post-metadata">

### Author: ![TI36XPro](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ti36xpro/32/33658_2.png) [@TI36XPro](https://discourse.julialang.org/u/TI36XPro)
#### Post date: [July 24, 2023, 6:03pm UTC](https://discourse.julialang.org/t/julia-language-server-and-vscode-issue-on-hpc/102029/4 "2023-07-24T18:03:22Z")

</div>

I couldn’t wait lol.

1.9.2 seems to have fixed the issue. Thanks for the suggestion!
