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

Path name or lenght issue when develop - Windows 11 #258

Open
altaga opened this issue Apr 18, 2024 · 1 comment
Open

Path name or lenght issue when develop - Windows 11 #258

altaga opened this issue Apr 18, 2024 · 1 comment

Comments

@altaga
Copy link

altaga commented Apr 18, 2024

I've noticed a "No such file or directory" error a couple of times when I start running the project on my cell phone. Here I have screenshots of the same project in different folders, one of them does not generate an error and the other does.

In this example the project path is "C:\Users\User\Github\Ethereum-Mexico-America-2022---Private\ReDo". ReDo is the name of the project.

Error:

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':react-native-quick-crypto:buildCMakeDebug[arm64-v8a]'.
> com.android.ide.common.process.ProcessException: ninja: Entering directory `C:\Users\User\Github\Ethereum-Mexico-America-2022---Private\ReDo\node_modules\react-native-quick-crypto\android\.cxx\Debug\1h3f4u5j\arm64-v8a'
  [1/25] Building CXX object CMakeFiles/reactnativequickcrypto.dir/d16596815ec437ebf6b0761cde9f9efb/cpp/Utils/MGLDispatchQueue.cpp.o
  [2/25] Building CXX object CMakeFiles/reactnativequickcrypto.dir/d16596815ec437ebf6b0761cde9f9efb/cpp/JSIUtils/MGLTypedArray.cpp.o
  ninja: build stopped: .

  C++ build system [build] failed while executing:
      @echo off
      "C:\\Users\\VAI\\AppData\\Local\\Android\\Sdk\\cmake\\3.22.1\\bin\\ninja.exe" ^
        -C ^
        "C:\\Users\\VAI\\Github\\Ethereum-Mexico-America-2022---Private\\ReDo\\node_modules\\react-native-quick-crypto\\android\\.cxx\\Debug\\1h3f4u5j\\arm64-v8a" ^
        reactnativequickcrypto
    from C:\Users\VAI\Github\Ethereum-Mexico-America-2022---Private\ReDo\node_modules\react-native-quick-crypto\android
  ninja: error: mkdir(CMakeFiles/reactnativequickcrypto.dir/C_/Users/VAI/Github/Ethereum-Mexico-America-2022---Private/ReDo/node_modules/react-native-quick-crypto): No such file or directory

But when i copy and paste the SAME project on another folder "C:\Users\User\Github\Light-Private\ReDo". Everything works perfectly.

> Task :react-native-quick-crypto:buildCMakeDebug[arm64-v8a]
> Task :react-native-quick-crypto:configureCMakeDebug[armeabi-v7a]
> Task :react-native-quick-crypto:buildCMakeDebug[armeabi-v7a]
> Task :react-native-quick-crypto:configureCMakeDebug[x86]
> Task :react-native-quick-crypto:buildCMakeDebug[x86]
> Task :react-native-quick-crypto:configureCMakeDebug[x86_64]
> Task :react-native-quick-crypto:buildCMakeDebug[x86_64]
> Task :react-native-quick-crypto:mergeDebugJniLibFolders
> Task :react-native-safe-area-context:mergeDebugJniLibFolders
> Task :react-native-safe-area-context:mergeDebugNativeLibs NO-SOURCE
> Task :react-native-safe-area-context:copyDebugJniLibsProjectOnly
> Task :react-native-quick-crypto:mergeDebugNativeLibs
> Task :react-native-screens:configureCMakeDebug[arm64-v8a]
> Task :react-native-quick-crypto:copyDebugJniLibsProjectOnly

Do we have to take into account the name of the projects or folders? Or can't the path have a certain length?

@boorad
Copy link
Collaborator

boorad commented May 6, 2024

Does #303 solve this issue for you?

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