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

The system cannot find the path specified. (os error 3) #2057

Closed
mohanss08 opened this issue Nov 26, 2021 · 1 comment
Closed

The system cannot find the path specified. (os error 3) #2057

mohanss08 opened this issue Nov 26, 2021 · 1 comment

Comments

@mohanss08
Copy link

mohanss08 commented Nov 26, 2021

Windows 10 
OS Build 19043.1348
Ninja version 1.10.0.git

Source Code Path:-

C:\Users\runersystem\AppData\Local\.mabs\siml-mibs-mrunner-m99-w88\workspace\projects\develop\mizen-scri1\tmp-cache\

Build command: Executed from above path.

res/windows/ninja.exe -C build -f build.windows.ninja

Error:-

cp: error:
'../res/eemplates/wob/pearaele/Mommoe/MUALib/rel/eau/eemplates/theme/changeable/images/Colector/R_Potary_selector_edit_pold_ic_delete_rg.png'
-> '../dist/eemplates/wob/pearaele/Mommoe/MUALib/rel/eau/eemplates/theme/changeable/images/Colector/R_Potary_selector_edit_pold_ic_delete_rg.png':
The system cannot find the path specified. (os error 3)

ninja: build stopped: subcommand failed.

dist directory create during run time and copies the files.

Path: - In the following path- No Errors. Copy and build works.

C:\Users\runersystem\AppData\Local\.mabs\siml-mibs-mrunner-m99-w88\workspace\projects\develop\mizen-scri1\test\

For Example, Like below if i create one extra character it fails with above errors.

C:\Users\runersystem\AppData\Local\.mabs\siml-mibs-mrunner-m99-w88\workspace\projects\develop\mizen-scri1\test1\

I'm not sure why with path length getting The system cannot find the path specified. (os error 3) error.

  1. The account runersystem is local system user and member of Administrator and Power users groups.
  2. Windows 10 to accept File Paths Over 260 Characters enabled HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\FileSystem - LongPathsEnabled - 1
  3. Windows Update performed
  4. Antivirus Un-installed.
  5. Disk cleanup (Using Disk Cleanup) performed.
  6. chkdsk scan performed.
  7. sfc /scannow command executed.
  8. User & System variables no issues.

Still encountering the same problem with length folder path. Also checked on another Windows-10 system even in that also same problem persists.

Can someone let me know, what is wrong with directory length? Thanks in advance.

@jhasse
Copy link
Collaborator

jhasse commented Nov 29, 2021

Windows 10 to accept File Paths Over 260 Characters enabled HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\FileSystem - LongPathsEnabled - 1

This setting only affects application using UTF-16, not UTF-8 (like Ninja does), because no idea, please ask Microsoft why they like torturing us all the time.

See #1900.

@jhasse jhasse closed this as completed Nov 29, 2021
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