-
Notifications
You must be signed in to change notification settings - Fork 9.4k
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
Temp files not cleaned up in WSL #15610
Comments
This is due to chrome-launcher.
|
That's interesting, I opened an issue over there a couple of weeks ago, but I assumed the temp file names meant this particular bit was a lighthouse issue. |
yeah I'm sure through a series of copy/paste we just left that in when extracting chrome-launcher out of lighthouse forever ago. Small curiosity: this folder only has "lighthouse" in the name for win32/unix, not when under WSL, if I'm reading util.ts correctly. Since you are running on WSL, but still get this "lighthouse" named temp folder, I suppose our @paulirish do you know why chrome-launcher does so much work to create a temp dir in a specific place, rather than just use os.tmpdir? Like, for WSL it tried to grep a user name from I'll give it a shot on my windows machine. |
no idea. |
I'm pretty sure isWsl is correctly identifying my environment as WSL but I don't think the regex is working correctly. I had thrown out the idea of a parameter to specify a temp dir but os.tmpdir seems like it makes more sense. Thanks for your attention on the matter! |
I'm getting even weirder paths after running lighthouse.
I'm in What are the 2 undefineds? With a special unicode (?) character? And a Windows username? I have |
If I change |
FAQ
URL
https://www.google.com
What happened?
In WSL I am running this code like
After it completes there is a temp folder left behind that looks like a full windows path.
I don't see anything indicating an error.
What did you expect?
No temp files left behind.
What have you tried?
I have run it in directories not named lighthouse and the file name is still the same.
How were you running Lighthouse?
node
Lighthouse Version
11.2.0
Chrome Version
Google Chrome 118.0.5993.117
Node Version
v20.9.0
OS
WSL
Relevant log output
No response
The text was updated successfully, but these errors were encountered: