Skip to content
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

Several temporary files created #149

Closed
FrozenKoi opened this issue Apr 9, 2015 · 3 comments
Closed

Several temporary files created #149

FrozenKoi opened this issue Apr 9, 2015 · 3 comments

Comments

@FrozenKoi
Copy link

I'm using Android Studio 1.0.2 and CheckStyle plugin version 4.11.2 using a rule xml file stored in an intranet server.

I'm noticing that there are a lot of files in Android Studio's temp directory. In my PC in the following directory:
c:\Users.AndroidStudio\system\tmp

I have 1000 files created in the span of 2 hours, called checkStyle.xml that all contain the rules file. Is there a way to prevent this large amount of files?

Are they created each time the server is queried for the rules? Is there a way to limit how often the server is checked for the rules file?

@jshiell
Copy link
Owner

jshiell commented Apr 10, 2015

I presume you're accessing the file over HTTP?

I'm not quite sure what's happening at present. What should happen is that the real file is queried at most once a minute, and locally cached for that minute. The reason we get new files is that every time we query the server we're using File.createTempFile to write the contents. Although I wouldn't have expected 1000. To be perfectly honest, the HTTP access is a bit ratty - it was a feature request for someone, and it's not something I've ever used (and hence has been neglected).

I'll have a look at changing it to use a consistent temporary file, so you don't get spammed with them.

@jshiell
Copy link
Owner

jshiell commented Apr 10, 2015

That fix will be released in 4.14.1, which should be next week. Thanks for the report.

@jshiell jshiell closed this as completed Apr 10, 2015
@FrozenKoi
Copy link
Author

Yes, the rule file is accessed via HTTP.

btw, on my original message the file name for the temp files should be checkStyle<numbers>.xml, the part between angle brackets was lost because I used it as html, my bad.

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

2 participants