Skip to content

Package name and folder paths are too long for usage with windows #1253

@christian-hess-94

Description

@christian-hess-94

Describe the bug
A clear and concise description of what the bug is.
The following path is too big to be handled by windows CMD or powershell:

reactnativekeyboardcontroller_autolinked_build/CMakeFiles/react_codegen_reactnativekeyboardcontroller.dir/C_/dev/truckup-pro/node_modules/react-native-keyboard-controller/android/build/generated/source/codegen/jni/react/renderer/components/reactnativekeyboardcontroller/reactnativekeyboardcontrollerJSI-generated.cpp.o

the app fails to build due to this problem. It is a windows limitation that cannot be fixed via regedit, because CMAKE and ninja are not up to date to match versions that take care of this limitation

Code snippet
It happens literally on app build, no code change needed

Repo for reproducing
I am currently unable to provide the code i am running to repro this. I can try to create a mock repo if really needed

To Reproduce
Steps to reproduce the behavior:

  1. Install latest and try to run it with a windows device
    Expected behavior
    App runs and builds fine
    Screenshots

Smartphone (please complete the following information):

  • Desktop OS: Windows 11
  • Device: Android 15 emulator
  • OS: Android 15
  • RN version: 0.80.2
  • RN architecture:Fabric
  • JS engine: Hermes
  • Library version: latest

Additional context
The main reason seems to be the fact that the entire package name is used multiple times in the paths. This artifically increases the path length by over 40 characters for no real benefit.

Would it be possible to refactor those names to simpler and smaller names to ensure compatibility?

In our sturcture we wishto allow for people to run the code in any platform and desktop OS, be it Linux, macOS or windows

Metadata

Metadata

Assignees

Labels

build error ❌Anything that triggers build errors and prevent this library from being used🤖 androidAndroid specific

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions