# Remote developement - cannot start the Language server

**URL:** <https://discourse.julialang.org/t/remote-developement-cannot-start-the-language-server/69364>\
**Category:** VS Code\
**Tags:** remote\
**Created:** [October 7, 2021, 12:04pm UTC](https://discourse.julialang.org/t/remote-developement-cannot-start-the-language-server/69364 "2021-10-07T12:04:59Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![lrnv](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/lrnv/32/19373_2.png) [@lrnv](https://discourse.julialang.org/u/lrnv)\
**Post date:** [October 7, 2021, 12:04pm UTC](https://discourse.julialang.org/t/remote-developement-cannot-start-the-language-server/69364/1 "2021-10-07T12:04:59Z")

</div>

Hey,

I am trying to use the remote development tools. I have a `start_julia.sh` as `julia.executablePath` script that looks like :

```julia
#!/bin/bash
module load <modules that need to be loaded before julia can run on this particular cluster>
julia "$@"

```

The command `Julia: Start REPL` works fine and launches my script correctly. I am also using the `Julia: persistent session: Enabled` function, so that I get back my REPL when I restart my client / reopen the remote workspace, which also works correctly.

The only issue is that `Starting Julia Language server...` never ends and the Language server never starts. The `Output: Julia language server` looks like :

```julia
[Error - 15:21:05] Connection to server is erroring. Shutting down server.
start_julia.sh: line 2: module: command not found
start_julia.sh: line 5: julia: command not found

```

What should I do ?

Edit: this seems to be highly related to [Remote development using VSCode tip - #9 by pfitzseb](https://discourse.julialang.org/t/remote-development-using-vscode-tip/60522/9), although I did not found a solution there…

---

<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:** [October 14, 2021, 3:26pm UTC](https://discourse.julialang.org/t/remote-developement-cannot-start-the-language-server/69364/2 "2021-10-14T15:26:13Z")

</div>

No, that’s a different issue. Not sure why `module` and `julia` work in one context but not another.

---

<div class="post-metadata">

**Author:** ![lrnv](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/lrnv/32/19373_2.png) [@lrnv](https://discourse.julialang.org/u/lrnv)\
**Post date:** [October 15, 2021, 8:57am UTC](https://discourse.julialang.org/t/remote-developement-cannot-start-the-language-server/69364/3 "2021-10-15T08:57:26Z")

</div>

What is the difference between the two julia invocations ? (the one for the REPL and the one from the language server) ?

---

<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:** [October 15, 2021, 8:59am UTC](https://discourse.julialang.org/t/remote-developement-cannot-start-the-language-server/69364/4 "2021-10-15T08:59:32Z")

</div>

There shouldn’t be any difference relevant to this. I’d recommend checking PATH in the script though.

---

<div class="post-metadata">

**Author:** ![lrnv](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/lrnv/32/19373_2.png) [@lrnv](https://discourse.julialang.org/u/lrnv)\
**Post date:** [October 15, 2021, 9:00am UTC](https://discourse.julialang.org/t/remote-developement-cannot-start-the-language-server/69364/5 "2021-10-15T09:00:37Z")

</div>

how ?

---

<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:** [October 15, 2021, 9:01am UTC](https://discourse.julialang.org/t/remote-developement-cannot-start-the-language-server/69364/6 "2021-10-15T09:01:12Z")

</div>

By dumping PATH into a file or stderr in your startup script

---

<div class="post-metadata">

**Author:** ![lrnv](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/lrnv/32/19373_2.png) [@lrnv](https://discourse.julialang.org/u/lrnv)\
**Post date:** [October 15, 2021, 9:11am UTC](https://discourse.julialang.org/t/remote-developement-cannot-start-the-language-server/69364/7 "2021-10-15T09:11:06Z")

</div>

Checking the paths **before** issuing the `module` command gives me exactly the same thing in both cases.

* * *

Ok I found the solution. From the Language server run, it looks like the module command is not available. So I needed to load it (by finding it in my architecture first), exactly like [linux - module: command not found - Stack Overflow](https://stackoverflow.com/a/55704169).

The fact that it was not needed for the REPL is weird though.

Anyway, this is related to my architecture and not really the julia vscode extension.
