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

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!

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

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.

I still don’t understand what that means :slight_smile: 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?

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 :slight_smile: :

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

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

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.

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. I’m wondering whether our parser just in general is not optimized for that kind of data size in say an array expression…

yes I sent you a file via email!