# "Run file in New Process" in VS Code runs forever

**URL:** <https://discourse.julialang.org/t/run-file-in-new-process-in-vs-code-runs-forever/85208>\
**Category:** VS Code\
**Created:** [August 2, 2022, 11:39pm UTC](https://discourse.julialang.org/t/run-file-in-new-process-in-vs-code-runs-forever/85208 "2022-08-02T23:39:45Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Alehud](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/alehud/32/125128_2.png) [@Alehud](https://discourse.julialang.org/u/Alehud)\
**Post date:** [August 2, 2022, 11:39pm UTC](https://discourse.julialang.org/t/run-file-in-new-process-in-vs-code-runs-forever/85208/1 "2022-08-02T23:39:45Z")

</div>

I have a file with a simple single-line code `println("Hello")` .

When I press “Julia: Run File in New Process” in VS Code on Windows 10, it is trying to start the process forever. It shows the little palette with the red square and the green circular arrow, but apart from this, does nothing. The same happens if I press Ctrl+F5. If, however, I try to “Debug File in New Process” or try to execute the active file in REPL, everything works fine.

A week ago everything worked well. Could someone help me to resolve the problem? I have no idea how to approach this issue.

Thanks!

EDIT  
Things I tried that didn’t help:

- Restarting Julia Language Server
- Rebooting computer
- Uninstalling Julia from VS Code extensions and installing it again
- Reinstalling Julia on my computer
- Reinstalling VS Code on my computer
- Creating a new empty project with the newest version of Julia (1.7.3) → same behavior

---

<div class="post-metadata">

**Author:** ![mkitti](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mkitti/32/12459_2.png) [@mkitti](https://discourse.julialang.org/u/mkitti)\
**Post date:** [August 2, 2022, 11:46pm UTC](https://discourse.julialang.org/t/run-file-in-new-process-in-vs-code-runs-forever/85208/2 "2022-08-02T23:46:16Z")

</div>

Can you do Ctrl-shift-P and then select “Julia: Restart Language Server”? Does that help?

Otherwise, does this persist after you reboot your computer?

---

<div class="post-metadata">

**Author:** ![Alehud](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/alehud/32/125128_2.png) [@Alehud](https://discourse.julialang.org/u/Alehud)\
**Post date:** [August 3, 2022, 12:09am UTC](https://discourse.julialang.org/t/run-file-in-new-process-in-vs-code-runs-forever/85208/3 "2022-08-03T00:09:01Z")

</div>

Yes, the issue persists after restarting the language server and after rebooting the computer. I have also tried doing it in a different workspace. Didn’t help.

One additional piece of information: recently my laptop overheated and restarted by itself while VS Code was open. I don’t know if this is relevant to the issue.

---

<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:** [August 3, 2022, 8:11am UTC](https://discourse.julialang.org/t/run-file-in-new-process-in-vs-code-runs-forever/85208/4 "2022-08-03T08:11:42Z")

</div>

This should be fixed by [Fix "Run in new REPL" by pfitzseb · Pull Request #2966 · julia-vscode/julia-vscode · GitHub](https://github.com/julia-vscode/julia-vscode/pull/2966), so stay tuned for the next release.
