-
-
Notifications
You must be signed in to change notification settings - Fork 10
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
Build package error on Windows: ENOENT: no such file or directory #8
Comments
@cvietor I have the same problem. Did you consider using WSL2 with a Ubuntu Distro? That works for me. |
@hrueger I tried that but also with no success. i did some more tests and realized now that if i started with powershell and then try to build a package with ubuntu@wsl2, it does not work. But when i download a fresh copy and repeat all steps in ubuntu, it works, so i suspect a path seperator problem in a schematic or shell script, but could not spot any in a quick glance. Too bad that ubuntu@wsl2 is unbearingly slow (aka not usable) on my machine. |
@cvietor weird. Are you using the VSCode remote thing for WSL2? This is slow for me. But if I just navigate to /mnt/c/source/... in an ubuntu terminal and run the command there, it works and is quite fast. |
nope, just using it in windows terminal. i suspect my companies anti-virus software or something like that. but nevermind, that's my workstations's problem :-) edit: actually, vscode remote wsl was a nice hint, that works like a charm for me, if i place the code INSIDE the linux file system. |
@cvietor I posted a PR to @hrueger 's plugin workspace with what I believe fixes the build.all issue on windows. This is the changeset: |
thanks @NathanWalker, that does not work unfortunatly. should have mentioned that i already tried that. |
|
I'm not familiar with Windows nowadays, honestly haven't used Windows in 15+ years at least (and don't have one anywhere around me), but would love your assistance in getting Windows working - My best guess is a path handler somewhere? |
Yes, i was wondering what exactly is being executed in that nx run :build.all it works |
Interesting - there was a pr back in May to Nx for something similar to that: |
Reverting to plugin-tools 1.0.5 allows the build to run for me. |
@NathanWalker it actually is exactly that mentioned problem.
now when nx is building up the project graph and is trying to sort out the dependencies with that (in nrwl/nx#2941 mentioned) method:
my index.android.ts is importing './common.ts', so "resolvedModule" is BUT "all" has a p.data.root of so "all" is returned as an imported project and for that reason ends up in the dependency graph of "some-plugin". changing
to
prevents that, but does feel like a hack with unforseen side effects. |
@cvietor interesting find - Have you found that adding a slash to end of packages 100% fixes it on Windows though? |
yes, that fixes it, as that i did a projectGraph comparison with and without the mentioned
ubuntu@wsl2:
so at least on linux side, that change does not cause any side effects. it's all quite complicated for a missing slash :-) |
Ha for sure. Thank you for help on this, I'll update tooling to ensure an ending slash is there and confirmed Mac is good with that as well so this should be good on Windows, Linux and Mac 👍 Will post back once update is out to resolve this. |
Works for me, too. Thank's @NathanWalker and @cvietor! |
Issue
Cannot build plugins on Windows (10), as the build script fails with the following error message:
I also tried that on macOS, where it works like a charm.
Reproduction
The text was updated successfully, but these errors were encountered: