# Problem with Julia Language Server, Execution of code and code cells in REPL

**URL:** <https://discourse.julialang.org/t/problem-with-julia-language-server-execution-of-code-and-code-cells-in-repl/121628>\
**Category:** VS Code\
**Tags:** question\
**Created:** [October 23, 2024, 9:16am UTC](https://discourse.julialang.org/t/problem-with-julia-language-server-execution-of-code-and-code-cells-in-repl/121628 "2024-10-23T09:16:14Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![mariie](https://avatars.discourse-cdn.com/v4/letter/m/ce7236/32.png) [@mariie](https://discourse.julialang.org/u/mariie)\
**Post date:** [October 23, 2024, 9:16am UTC](https://discourse.julialang.org/t/problem-with-julia-language-server-execution-of-code-and-code-cells-in-repl/121628/1 "2024-10-23T09:16:14Z")

</div>

Hello everyone! After 2 months of using julia in vscode without any problems I am having this issue now: I cannot execute active files in the REPL and I can also not execute the code line by line. In the output of Julia Language Server there is a long list with warnings. Its always like “Warning: CSTParser took a long time (7 seconds) to parse”+ the name of a julia file with results from the last weeks. This warning appears for many result files. These files are in a subfolder of the folder in wich I am working. The files are synchonized with git.

However, I do not get the execution problems (and also not the list of warning of the Language Server) when I just open the file I want to work with but not the folder where the file is saved in.

What I have tried so far: Uninstall julia and the Language Support Extension in vscode and reinstall it, also restarting my computer.

Any help is very appreciated!

---

<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:** [October 24, 2024, 3:08am UTC](https://discourse.julialang.org/t/problem-with-julia-language-server-execution-of-code-and-code-cells-in-repl/121628/2 "2024-10-24T03:08:20Z")

</div>

> [@mariie](#):
>
> julia file with results from the last weeks

What does that mean? I don’t really understand what you mean by “result file”.

---

<div class="post-metadata">

**Author:** ![mariie](https://avatars.discourse-cdn.com/v4/letter/m/ce7236/32.png) [@mariie](https://discourse.julialang.org/u/mariie)\
**Post date:** [October 24, 2024, 8:41am UTC](https://discourse.julialang.org/t/problem-with-julia-language-server-execution-of-code-and-code-cells-in-repl/121628/3 "2024-10-24T08:41:34Z")

</div>

oh sorry, by result files I mean julia files, that contain the results of optimization cases that I solved in the last two weeks. They contain variables and vectors, but I just saved them in a subfolder, I don’t use them or call them anywhere.

This is what the output of the language server looks like where these result files are listed.

 ![julia_vscode_problem_language_server_output](https://global.discourse-cdn.com/julialang/original/3X/b/a/ba2d2c92579a8b54bf20654b4dcb2ac756a235f5.png)

---

<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:** [October 24, 2024, 6:10pm UTC](https://discourse.julialang.org/t/problem-with-julia-language-server-execution-of-code-and-code-cells-in-repl/121628/4 "2024-10-24T18:10:52Z")

</div>

> [@mariie](#):
>
> contain the results of optimization cases that I solved in the last two weeks. They contain variables and vectors

I still don’t understand what that means 🙂 Results of an optimization to me sounds like data, and I don’t understand why that would be saved as a Julia file? Julia files typically contain code, not data? Could you maybe post a small example?

---

<div class="post-metadata">

**Author:** ![mariie](https://avatars.discourse-cdn.com/v4/letter/m/ce7236/32.png) [@mariie](https://discourse.julialang.org/u/mariie)\
**Post date:** [October 25, 2024, 11:13am UTC](https://discourse.julialang.org/t/problem-with-julia-language-server-execution-of-code-and-code-cells-in-repl/121628/5 "2024-10-25T11:13:54Z")

</div>

I have a dynamic optimization problem which is discretized, so for example for initialization with a previous solution I find it an easy way to include a julia file that contains the values of the variables.

Here is a very short example 🙂 :

t = [0.0 8.527806414692522 35.47219358530748 55.0; 55.0 63.52780641469252 90.47219358530748 110.0]

V\_L\_res = [0.47659804927328736 0.499489584935601 0.5238325826845112 0.5238325823185622; 0.5238325823185628 0.5238325825934966 0.5238325827204551 0.5238325822667169]

T\_res = [480.00000479819613 479.3207245743242 477.5652358019605 477.38529297005283; 477.38529297005283 477.6443329219184 478.32396185620206 478.70475613310913]

c\_A\_res = [7.251601518830789 8.699970615863377 9.101705322069005 9.078714181325935; 9.078714181325935 9.03765528217157 8.80602429331383 7.471560301187069]

objective\_value\_res = 601.8095300725263

c\_A\_F\_const = 1000.0

---

<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:** [October 25, 2024, 4:20pm UTC](https://discourse.julialang.org/t/problem-with-julia-language-server-execution-of-code-and-code-cells-in-repl/121628/6 "2024-10-25T16:20:40Z")

</div>

Is that the typical size of these files, or are they much larger?

---

<div class="post-metadata">

**Author:** ![mariie](https://avatars.discourse-cdn.com/v4/letter/m/ce7236/32.png) [@mariie](https://discourse.julialang.org/u/mariie)\
**Post date:** [October 28, 2024, 8:54am UTC](https://discourse.julialang.org/t/problem-with-julia-language-server-execution-of-code-and-code-cells-in-repl/121628/7 "2024-10-28T08:54:58Z")

</div>

they can be much larger. the length of each array depends on the time horizon. so in the longest case the array size for each variable is 4800x4 and I have 12 time-dependent variables.

---

<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:** [October 28, 2024, 4:25pm UTC](https://discourse.julialang.org/t/problem-with-julia-language-server-execution-of-code-and-code-cells-in-repl/121628/8 "2024-10-28T16:25:42Z")

</div>

Do you think you could share one of those files with me? You can find my email address on my github profile [davidanthoff (David Anthoff) · GitHub](https://github.com/davidanthoff). I’m wondering whether our parser just in general is not optimized for that kind of data size in say an array expression…

---

<div class="post-metadata">

**Author:** ![mariie](https://avatars.discourse-cdn.com/v4/letter/m/ce7236/32.png) [@mariie](https://discourse.julialang.org/u/mariie)\
**Post date:** [October 29, 2024, 11:32am UTC](https://discourse.julialang.org/t/problem-with-julia-language-server-execution-of-code-and-code-cells-in-repl/121628/9 "2024-10-29T11:32:49Z")

</div>

yes I sent you a file via email!
