Closed DJARUUN closed 4 months ago
I've figured it out. The program I'm making is creating a file and a directory with it and when the LSP is like pre-running it to check for runtime things and that it was creating those directories and also the files inside of it that the program should create.
The reason for the weird directory names is from it getting the directory name in the program from the first element in System.argv()
which I guess it it the Content-Length header when it's ran by the LSP.
This does still need to be done something with because it can't just be creating directories willy-nilly (especially with these weird names because of System.argv()
) and messing up projects.
For example one big issue with this is the fact that the file manager im using in Neovim (Oil) doesn't correctly understand the newlines in the directory names and crashes when I try to open it in the root of the project. It also of course leaves a big mess in the project.
Please share a repo that reproduces it.
elixir-ls doesn't run your program. It evaluates mix.exs
and then run mix compile
Ping @DJAruun
Environment
Current behavior
Since a bit ago now when im just using the Language server in a normal
mix new
project it gets really slow and creates these weird'Content-Length: number'$'\n'
(the single quotes are in the directory name) directories in the root of the project. After a little while (just a few minutes) the LSP doesn't react to any new changes and just stops working completely.I don't really know how to reproduce this. Out of nowhere this started happening while I was working on a mini project to get more familiar with Elixir and using it in Neovim. I just created a new project using mix and started working in it and this started happening.
Expected behavior
It should very much not create these weird directories (looks like a web request header or JSON thing) in the root of the project and should neither slow down tremendously to a complete stop after just a few minutes. Before this I've never had any issues with the LSP and it started out of nowhere.