lost-pixel / lost-pixel

Open source alternative to Percy, Chromatic, Applitools.

Home Page:https://lost-pixel.com/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

EISDIR when running locally

Maxim-Mazurok opened this issue Β· comments

Bug description

After running npx lost-pixel local it creates current/blog folder for me.
But on subsequent runs it fails to remove it.

How to reproduce

run locally two times

Expected behavior

No response

Lost Pixel information

lost-pixel logs from CI

Version: 3.8.2
Loading project config ...
Current working directory: /home/maxim/maxim.mazurok.com
Looking for config file: /home/maxim/maxim.mazurok.com/lostpixel.config.(ts|js|cjs|mjs)
βœ… Found config file: /home/maxim/maxim.mazurok.com/lostpixel.config.ts
πŸš€ Starting Lost Pixel in 'generateOnly' mode
πŸ“‚ Creating shot folders
πŸ“Έ Creating shots
Removing 2 files from .lostpixel/current/
❌ EISDIR: illegal operation on a directory, unlink '.lostpixel/current/blog'
Sending anonymized telemetry data.

which OS are you on? sounds like a very os specific(permission) problem that I have not seen before πŸ€”

Ubuntu 22.04.3 inside of WSL2

I'm pretty sure the error is trivial tho, it's trying to remove folder like a file, it needs to use different method for deleting folders. It just seems like lost-pixel doesn't handle folders too well, as mentioned in #345 (comment)