RustAutoComplete icon indicating copy to clipboard operation
RustAutoComplete copied to clipboard

Creates 20+ temp files and doesn't delete them.

Open welbornprod opened this issue 10 years ago • 19 comments
trafficstars

I noticed all of these temp files (tmp[random chars]) being created beside my source files. They were multiplying pretty fast. I can see it starting when the autocomplete popup is shown, and the more you type, the more it creates. They aren't being deleted though. If I close Sublime Text (version 3065) they are still there. Disabling 'RustAutoComplete' stops them from being created.

Any ideas on how to remedy this? I do like RustAutoComplete. It works fine except for the this one thing.

welbornprod avatar Jan 31 '15 06:01 welbornprod

What platform are you running on?

glennw avatar Jan 31 '15 09:01 glennw

I'm running on linux (specifically Kubuntu 14.04.1), but I figured out the problem. I should've paid more attention to the Sublime Text console messages. It couldn't find the racer executable. Even though racer is in my $PATH, I had set the config to {"racer": "racer"}, which I thought would point to my symlink ~/.local/bin/racer, but it wasn't finding it. I gave it a full path to my symlinked racer executable (/home/cj/.local/bin/racer) and it now works and deletes the tmp* files. I don't see them being created either though, but that could be because it's too fast.

So, no racer meant it was creating a bunch of temporary files and not deleting them. I haven't looked into the internal workings of RustAutoComplete to see why that is.

welbornprod avatar Jan 31 '15 16:01 welbornprod

Had the same thing happen on OS X. Also had racer in my $PATH but ended up with a lot of tmp files. Did as @welbornprod described, changed the settings file so it had the full path and now everything seems to work.

lumba avatar Feb 06 '15 02:02 lumba

Specifying the full path to racer fixes the issue for me.

nebffa avatar Feb 25 '15 11:02 nebffa

This also happens to me on Gentoo GNU/Linux when I don't specify the full path to racer, but racer is in my PATH. This problem goes away when I use the full path to racer.

binary132 avatar Mar 17 '15 19:03 binary132

Since this is figured out, this issue should be closed, maybe with a PR that updates the README file?

andradei avatar Mar 25 '15 00:03 andradei

+1 it should be made clearer in the README file

typeofweb avatar Apr 04 '15 22:04 typeofweb

+1 I've had this issue too

yberreby avatar Apr 07 '15 13:04 yberreby

Specifying the full path to racer fixes the issue for me too on Windows.

{  
  //  racer.exe
  "racer": "C:/Windows/System32/racer.exe",  
  //  rust
  "search_paths": [    "C:/Rust/src/src"
  ]
}

qinwf avatar May 08 '15 09:05 qinwf

I'm on Mac here, can confirm that the plugin fails to find find racer in $PATH, but when given a absolute path to a symlink to racer, it will work. +1 to not changing the README, but to fix the way, $PATH get's evaluated

phdoerfler avatar May 23 '15 00:05 phdoerfler

It is a pain. qq 20151009135746

xgfone avatar Oct 09 '15 05:10 xgfone

+1

cpanato avatar Nov 02 '15 10:11 cpanato

Unfortunately I don't have time to maintain this project right now. If anyone else is interested, I'd be happy to transfer the project to a new maintainer?

glennw avatar Nov 02 '15 20:11 glennw

@glennw I sent you a private message on Reddit.

defuz avatar Nov 23 '15 01:11 defuz

Is this project still maintained, @defuz? The temp files should not be needed when your run racer in daemon mode.

sanmai-NL avatar Jan 31 '16 21:01 sanmai-NL

@sanmai-NL

Sorry for late response. I have implemented the use of daemon mode in separate branch:

https://github.com/defuz/RustAutoComplete/blob/daemon-mode/RustAutoComplete.py

It works well on OS X (and, I think, on Linux). I have not tested it on Windows yet.

Unfortunately, the ability to pass content via stdin was merged to Racer repository only three days ago, and it has not been published yet.

https://github.com/phildawes/racer/pull/467

I want to wait until it is published in the cargo and then update the plugin. Once again, sorry it took so long to answer.

defuz avatar Feb 05 '16 02:02 defuz

Sorry, cannot understand from the thread how to resolve the issue. Have RustAutoComplete plugin installed in Sublime 3 and it creates a lot of temp files in src folder. What should I do to get rid of those?

kirhgoff avatar Feb 10 '16 16:02 kirhgoff

@kirhgoff Ensuring that your path to racer is a fully explicit path seems to resolve it.

Ryman avatar Feb 11 '16 16:02 Ryman

Thank you, had to read README more thoroughly, it does work for me now

kirhgoff avatar Feb 12 '16 10:02 kirhgoff