-
-
Notifications
You must be signed in to change notification settings - Fork 40
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
VSCode save takes a lot of time #392
Comments
Can you check the output panel for errors |
gotcha, there must be something weird with formatting I don't think i've personally attempted to save a heex file (i use the sigil), i'll attempt to reproduce |
I have something related. I just updated nextls, but I'm using neovim. Heex files sometimes takes a long time, but after a while they become instantly formatted, and some times I'm under impression that it's not triggering at at all. At the first save it consumes a lot of cpu and I can listen the fan blowing hard for a few to several seconds, but I was not able to pinpoint anything using btop. I did The only strange things I seeing are from other tools, like
Thanks for your efforts! Since last week I using nextls as my primary option, including completion. I must say it's more stable than using the old lsp, like in presence of errors and crashing with incomplete code. Let me know if you need any extra logs, Actually I found one WARN. If I open and save an heex file before any .ex:
But if I open an ex file, save it, then resume my work with .heex, these warnings stop showing. |
Please check the log file at .elixir-tools/nextls.log |
The log you shared is from ElixirLS, not Next LS. Please make sure you are only using one and try to reproduce again. |
(op: sorry for stealing a vscode thread) Yeah you're right:
Even with elixirls disabled, removing references from Mason, lazyvim extras, etc, the lsp info is saying that elixirls is still running:
I'll try to open an issue on elixir-tools.nvim instead and keep observing the logs. They are actually inside my project folder And I have only several lines of this with heex or ex:
But inotify exhaustion is happening a lot more whenever I'm editing a single heex file. With only ex files it's happening less. Thanks! |
I believe #401 should close out this issue, I will likely release it in v0.20.2, please update and let me know if you can still reproduce. I'll close the issue if I don't hear back in a while, but feel free to comment and I'll re-open |
I have
formatonsave
on in vscode. Now, it is taking a long time - sometimes upto a minute or more. It was not the case earlier.The text was updated successfully, but these errors were encountered: