-
Notifications
You must be signed in to change notification settings - Fork 3
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
No such file or directory
on Windows
#34
Comments
I'm not on Windows at the moment, but I need to check a couple of things:
I suspect the glob/wildcards you're using are expanded by a Unix-like shell, which your Windows shell doesn't support. |
Sorry for not mentioning it in the first place, but it doesn't work on specific files either. I, for instance, tried
I have just tried the offical clang-format (version 19.1.0) and it works fine using specific files (e.g.,
I am using PowerShell.
I am running your WASM-based version of ClangFormat from a script in a Still, this wildcard issue between Node.js and Windows PowerShell is probably not relevant in the current context. What is clear is that the same arguments passed to your WASM-based version of ClangFormat and to the original ClangFormat don't yield the same outcome. |
Thank you for your feedback, it helps a lot. The issue occurs with the logic for locating the However, wildcards are still unsupported because the underlying reason is that the file system was designated as Unix/POSIX during the macro compilation process. While recompiling on Windows might fix it, but it is still foreseeable that it cannot be cross-platform. Since LLVM allows the implementation of custom file systems, it is possible to fix this bug, but it requires considerable effort. |
Hi,
First, thanks a lot for your WASM-based version of ClangFormat!
I have been able to use it fine from Linux and macOS, but not from Windows. Running the exact same command on all three platforms (e.g.
clang-format -i src/libopencor/src/*
from a script listed in apackage.json
file), I get a message that readsNo such file or directory
on Windows while it all works as expected on Linux and macOS.I confirmed this by running your CommonJS file from the command line, i.e. something like
node ./node_modules/.pnpm/@[email protected]/node_modules/@wasm-fmt/clang-format/clang-format-cli.cjs -i src\libopencor\src\*.*
and sure enough I am still gettingNo such file or directory
.Is that an issue with your WASM-based version of ClangFormat or something that I am missing on Windows?
The text was updated successfully, but these errors were encountered: