Skip to content

nvim freezes while building #208

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

Closed
colinmarc opened this issue Oct 22, 2024 · 9 comments
Closed

nvim freezes while building #208

colinmarc opened this issue Oct 22, 2024 · 9 comments

Comments

@colinmarc
Copy link

Hi, thanks for the great plugin!

I'm using tuist, and I've noticed that when I run tuist build, nvim freezes up for 5-10 seconds. It happens whenever tuist gets to the stage Copying build products to....

I'm happy to debug more, but I'm not sure where to start. Thanks in advance for any pointers!

@wojciech-kulik
Copy link
Owner

How do you call it? Just :!tuist build? Commands launched this way are blocking, you can't do anything while it's running.

@colinmarc
Copy link
Author

Thanks for the quick response!

No, I'm running it from a terminal. So it must be something triggered by detecting the file changes. Note that the build dir is under .gitignore.

@wojciech-kulik
Copy link
Owner

wojciech-kulik commented Oct 22, 2024

Observer processes and see what's taking resources, maybe it will lead to some conclusions. If not, then probably it would be better to ask in Tuist repository, I haven't been using it for a long time, so I'm not up-to-date.

@colinmarc
Copy link
Author

I'll continue to try and debug, thanks. I think it's this plugin or the swift lsp causing problems, though - I'm not maxed out on CPU or anything and the rest of my computer is perfectly responsive, it's just nvim that freezes.

@wojciech-kulik
Copy link
Owner

I don't think it could be the plugin, because it doesn't track anything and doesn't perform any operations in the background. Bigger chance that it's something LSP related.

@wojciech-kulik
Copy link
Owner

wojciech-kulik commented Oct 22, 2024

You could try disabling LSP for all buffers and repeat test then.

@iMostfa
Copy link

iMostfa commented Oct 22, 2024

not sure if it's related,
but if you use SourceKit of Xcode 16, then it's broken and could end up freeing the device.
swiftlang/sourcekit-lsp#1541

i reported this to Apple, and they fixed it, my solution was to replace the SourceKit inside Xcode 16 with the one of Xcode 15

@wojciech-kulik
Copy link
Owner

I'm closing it because it doesn't seem connected with the plugin. If you wish, you may continue the discussion in "Discussions" instead of "Issues"

@wojciech-kulik wojciech-kulik closed this as not planned Won't fix, can't repro, duplicate, stale Oct 25, 2024
@colinmarc
Copy link
Author

I was able to fix it by placing the build directory in /tmp. Still not sure on the cause. 🤷 Thanks for the help!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants