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

AccessDeniedException deleting sass.bat #381

Open
s-and-r opened this issue Oct 9, 2023 · 1 comment
Open

AccessDeniedException deleting sass.bat #381

s-and-r opened this issue Oct 9, 2023 · 1 comment
Assignees

Comments

@s-and-r
Copy link

s-and-r commented Oct 9, 2023

Using sass-embedded-bundled 3.2.0:

BundledCompilerFactory is unable to delete the temporary folder (AccessDeniedException) because sass.bat has a read-only attribute.

I'm not sure why; none of the other files in that folder have a read-only attribute. I suspect it was added by anti-virus software somehow. We're using a product from Sophos, it's company managed.

As far as I can tell after running some live expressions with a debugger, all that's needed to prevent the error is a file.toFile().setWritable(true) call above the Files.delete(file) line in DirCleaner.

larsgrefer added a commit that referenced this issue Oct 9, 2023
@larsgrefer larsgrefer self-assigned this Oct 9, 2023
@larsgrefer
Copy link
Owner

The missing write permissions on the bat script file are actually my fault.

After this was fixed, it now fails to delete the dart.exe file, which is a more difficult problem.
The exe file cannot be deleted, because the process is still running.

It seems to be a well-known bug on Windows that stopping process (the bat file) does not stop its subprocesses (the dart.exe)

larsgrefer added a commit that referenced this issue Oct 9, 2023
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