Skip to content
This repository has been archived by the owner on Aug 7, 2023. It is now read-only.

Spawning rustc process on every save #16

Closed
azerupi opened this issue Jun 7, 2015 · 5 comments
Closed

Spawning rustc process on every save #16

azerupi opened this issue Jun 7, 2015 · 5 comments

Comments

@azerupi
Copy link

azerupi commented Jun 7, 2015

It seems like this plug-in is spawning a new rustc process on every save (or modification?) often causing multiple instances of it to run in parallel.

At some point I had 13 different rustc instances running in the background effectively saturating my processor for 5 minutes, making everything unusable.

@nixpulvis
Copy link

This is the only reason I cant use this package despite wanting to. The multiple compiler issue also seems to cause unexpected errors in my actual runs of cargo.

@colin-kiegel
Copy link
Contributor

@nixpulvis I have got this workaround https://gist.github.com/colin-kiegel/40432d62c70c2ddf7354 for linux. Its been of great help to me for months now.

Btw. according to some upstream-bug-tickets I've been monitoring, it looks like cargo will finally get concurrency protection in one of the next releases. But if you happen to be on linux too, my workaround might help you too - until then. :-)

PS: Of course this only works if you use cargo for linting - not bare rustc. But a similar wrapper could be build for rustc too.

@nixpulvis
Copy link

@colin-kiegel Yea it's too bad concurrent support isn't in yet. Thanks for the script I might try adapting it for OS X.

@colin-kiegel
Copy link
Contributor

@nixpulvis If the changes are minor, I will be happy to include it in my gist. :-)

PS: The concurrency fix has been merged in cargo just 2 days ago. rust-lang/cargo#2486

@azerupi
Copy link
Author

azerupi commented Apr 29, 2016

This one can be closed as well I think

@azerupi azerupi closed this as completed Apr 29, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants