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
Watcher issue on Window's short paths like C:\PROGRA~1\ #11679
Comments
I don't understand the problem. If you add |
I would expect that |
@piotr-oles how it is related to chokidar? |
@evilebottnawi I didn't notice such an issue with webpack 4 which AFAIK uses chokidar as a low-level watching library. But I don't know if that's the source of the issue. |
Expected, what do you want? |
As I said above, it works differently on Linux and Mac OS. If it's expected, then the name ’modifiedFiles’ is misleading :) |
@piotr-oles What is work differently? Yes, it is some misleading |
I tried running the watchpack test suite within a 8.3 folder and there where no problems.
yes maybe it's a bit off.
It should not do that. |
But I really noticied a small difference when using 8.3 names. It reports |
Yes, there is something off with 8.3 names. I resolved an 8.3 path using |
@piotr-oles so we can close it? |
It's up to you. The problem still exists, but I was able to do a workaround :) |
@piotr-oles please describe what you expected, because
It should not do that. |
How did you do that exactly? I wasn't able to find |
ah it's |
Yep, sorry for the wrong function :) |
This issue had no activity for at least three months. It's subject to automatic issue closing if there is no activity in the next 15 days. |
Issue was closed because of inactivity. If you think this is still a valid issue, please file a new issue with additional information. |
still valid |
Bug report
What is the current behavior?
I'm an author of the fork-ts-checker-webpack-plugin and I noticed that behavior in my recent PR: https://github.com/TypeStrong/fork-ts-checker-webpack-plugin/pull/516/files.
When I navigate to a path using MS-DOS compatible path (for example temp directory on GitHub Actions on Windows image -
C:\Users\RUNNER~1\AppData\Local\Temp\
), and I add a directory to thecompilation.contextDependencies
(for exampleC:\Users\RUNNER~1\AppData\Local\Temp\my-app\src
), webpack will trigger unnecessary rebuilds. I checkedcompiler.modifiedFiles
andcompiler.removedFiles
and they randomly containC:\Users\RUNNER~1\AppData\Local\Temp\my-app\src
directory (which shouldn't be the case - there should be only files).If the current behavior is a bug, please provide the steps to reproduce.
C:\Program Files\my-app
path.join(process.cwd, 'src')
tocompilation.contextDependencies
C:\PROGRA~1\my-app
C:\Program Files\my-app\src
and debugcompiler.modifiedFiles
andcompiler.removedFiles
SetWhat is the expected behavior?
As in webpack 4, the watcher should not trigger unnecessary rebuild and report directory as changed or removed file.
Other relevant information:
webpack version: 5.1.0
Node.js version: 10
Operating System: Windows 10
Additional tools:
The text was updated successfully, but these errors were encountered: