-
Notifications
You must be signed in to change notification settings - Fork 57
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
Temporary folder is created both in /tmp and in my project's directory in WSL #220
Comments
What version of |
FWIW I found out that WXT exists and migrated to that, though in any case this should probably be fixed. |
Yeah, this should probably be moved to |
I spent some time debugging and it seems like it's not an issue with Overall ideally this issue would be fixed in Let me know what do you think about this. As for the GH issue itself - agreed, if you can move this issue there (I'm not sure if it's possible but I think it is) that would be great. |
Oh yeah, after writing this plugin and seeing how many people were running into problems with WSL, I disabled auto-opening the browser in WXT. My recommendation would be to not use WSL with the plugin, use CMD/Powershell instead. There are more issues than just this one with WSL support, that's why I recommend not using it. And I agree that this should be fixed in |
Summary
It is probably caused by some extenral dependency that creates the temp files, but I'm reporting it here as I don't know what exactly is causing it.
When I run
vite
(orpnpm start
in the repro repo below), generally everything works fine, but a new folder is created in the main project directory, named more or less\\wsl.localhost\Ubuntu-20.04\tmp\tmp-web-ext--26812-4hebg9Fx5Dr7
(notice the backslashes). Interestingly, a folder with exactly the same name is created in/tmp
directory in the Linux file system.If I remove it, nothing really breaks, the extension and hot reloading is working fine in the browser, but when I'm making changes it gets recreated. This is super annoying as this folder is not removed automatically when I close Vite and another one gets created after the restart. For now I gitignored it but it's really annoying and it shouldn't happen.
I'm quite certain this only happens on WSL so if you don't have it set up it's going to be difficult to reproduce. But I'm obviously willing to help out with debugging, just need some pointers on what might be causing it.
Reproduction
https://github.com/paolostyle/vite-web-ext-repro
Focus mostly on
vite.config.ts
, the rest I think is mostly irrelevant. Chrome runs from WSL so that might also potentially be the cause (?)Environment
Likely critically important information that is not visible below - I'm running Ubuntu under WSL on Windows 11.
The text was updated successfully, but these errors were encountered: