Regularly causes actual cargo build/run to crash
dten opened this issue · 4 comments
If in sublime I'm making changes and Ctrl + S and then Ctrl + B to save and run. More often than not the cargo run crashes. If I save then wait ~ 3 seconds (for lint to finish) then Ctrl + B then it runs fine. I did manage to setup my run so that everything builds into a different target folder and that didn't crash. Same happens if i use cargo check
Would it be possible to have this build into some temp folder or something instead?
I'd be open to a PR to fix this. The problem with a temp folder is that it would need to cover over the entire structure, which could be expensive.
I have some local changes that set the CARGO_TARGET_DIR in an env copy before running the lint for cargo. Then sublimelint's target dir becomes target/sublimelint
(Oops hit comment too early)
I can do a PR with these changes. They don't currently take into account if the variable was already set however which I'd like to account for before doing a PR
That seems like a reasonable solution to the problem. A PR would definitely be welcome.