electrode-native icon indicating copy to clipboard operation
electrode-native copied to clipboard

Keep saying Retrieving react-native version from Manifest

Open kamleshgit opened this issue 8 years ago • 5 comments

When I run the following command ern create-miniapp MovieListMiniApp

it says
"Retrieving react-native version from Manifest" and it keeps saying this for ever...

Can some one help me to understand what could be the issue and how it could be resolved?

Thanks Kamlesh

kamleshgit avatar Feb 08 '18 08:02 kamleshgit

@kamleshgit thanks for reporting this issue. I have well received your e-mail with detailed investigation, thanks much for all these details, will help pinpointing the issue. It seems like a bug affecting Windows machines only (another issue was reported as well for Windows https://github.com/electrode-io/electrode-native/issues/531), will take a look today at both, should have a fix ready by tonight PST and will release a patch version to fix both bugs.

belemaire avatar Feb 08 '18 17:02 belemaire

@kamleshgit After trying to reproduce on my Windows 10 workstation I think I know what the problem is. The master manifest is retrieved from GitHub using git client. Therefore having git client (git command available in PATH) installed is a requirement of Electrode Native. I am not facing this issue if git command is accessible from a Windows command prompt (i.e git installed and the directory containing git command is correctly present in PATH env variable). If I remove git command from my path (so that from a command prompt typing git result in command not found error), then I get the same behavior as the one you are facing (ern CLI stalled when using create-miniapp command). To fix your issue, you should just have to install git client on your worksation (see https://git-scm.com/download/win , it's just a matter of running the installer). Let me know if that is fixing your issue.

I have created two issues related to this problem. One to update our requirements section in the documentation, and the other one to fail gracefully and early in case git is not installed on the workstation.

https://github.com/electrode-io/electrode-native/issues/553 https://github.com/electrode-io/electrode-native/issues/554

Hopefully it will avoid future users to face a similar issue.

Thanks again for reporting.

belemaire avatar Feb 09 '18 05:02 belemaire

Hi Benoit,

Thanks for your help. I installed git and re ran the app create command it worked which is good but then I ran "ern run-android" and it gave me following errors. I tried deleting the files from Temp location but still it says the same thing. Can you please help em to understand what could be the issue now?

s two different files. jest-haste-map: @providesModule naming collision: Duplicate module name: Asserts Paths: C:\Users\KPRAJA~1\AppData\Local\Temp\2\tmp-11748OGUms165us0q\node_modul es\movie-list-miniapp\node_modules\react-native\ReactAndroid\src\androidTest\js
Asserts.js collides with C:\Users\KPRAJA~1\AppData\Local\Temp\2\tmp-11748OGUms16 5us0q\node_modules\react-native\ReactAndroid\src\androidTest\js\Asserts.js

This warning is caused by a @providesModule declaration with the same name acros s two different files. jest-haste-map: @providesModule naming collision: Duplicate module name: DocumentSelectionState Paths: C:\Users\KPRAJA~1\AppData\Local\Temp\2\tmp-11748OGUms165us0q\node_modul es\movie-list-miniapp\node_modules\react-native\Libraries\vendor\document\select ion\DocumentSelectionState.js collides with C:\Users\KPRAJA~1\AppData\Local\Temp \2\tmp-11748OGUms165us0q\node_modules\react-native\Libraries\vendor\document\sel ection\DocumentSelectionState.js

This warning is caused by a @providesModule declaration with the same name acros s two different files. jest-haste-map: @providesModule naming collision: Duplicate module name: CatalystRootViewTestModule Paths: C:\Users\KPRAJA~1\AppData\Local\Temp\2\tmp-11748OGUms165us0q\node_modul es\movie-list-miniapp\node_modules\react-native\ReactAndroid\src\androidTest\js
CatalystRootViewTestModule.js collides with C:\Users\KPRAJA~1\AppData\Local\Temp \2\tmp-11748OGUms165us0q\node_modules\react-native\ReactAndroid\src\androidTest
js\CatalystRootViewTestModule.js

This warning is caused by a @providesModule declaration with the same name acros s two different files. jest-haste-map: @providesModule naming collision: Duplicate module name: DatePickerDialogTestModule Paths: C:\Users\KPRAJA~1\AppData\Local\Temp\2\tmp-11748OGUms165us0q\node_modul es\movie-list-miniapp\node_modules\react-native\ReactAndroid\src\androidTest\js
DatePickerDialogTestModule.js collides with C:\Users\KPRAJA~1\AppData\Local\Temp \2\tmp-11748OGUms165us0q\node_modules\react-native\ReactAndroid\src\androidTest
js\DatePickerDialogTestModule.js

This warning is caused by a @providesModule declaration with the same name acros s two different files. jest-haste-map: @providesModule naming collision: Duplicate module name: InitialPropsTestApp Paths: C:\Users\KPRAJA~1\AppData\Local\Temp\2\tmp-11748OGUms165us0q\node_modul es\movie-list-miniapp\node_modules\react-native\ReactAndroid\src\androidTest\js
InitialPropsTestApp.js collides with C:\Users\KPRAJA~1\AppData\Local\Temp\2\tmp- 11748OGUms165us0q\node_modules\react-native\ReactAndroid\src\androidTest\js\Init ialPropsTestApp.js

This warning is caused by a @providesModule declaration with the same name acros s two different files. jest-haste-map: @providesModule naming collision: Duplicate module name: JSResponderTestApp Paths: C:\Users\KPRAJA~1\AppData\Local\Temp\2\tmp-11748OGUms165us0q\node_modul es\movie-list-miniapp\node_modules\react-native\ReactAndroid\src\androidTest\js
JSResponderTestApp.js collides with C:\Users\KPRAJA~1\AppData\Local\Temp\2\tmp-1 1748OGUms165us0q\node_modules\react-native\ReactAndroid\src\androidTest\js\JSRes ponderTestApp.js

This warning is caused by a @providesModule declaration with the same name acros s two different files. jest-haste-map: @providesModule naming collision: Duplicate module name: LayoutEventsTestApp Paths: C:\Users\KPRAJA~1\AppData\Local\Temp\2\tmp-11748OGUms165us0q\node_modul es\movie-list-miniapp\node_modules\react-native\ReactAndroid\src\androidTest\js
LayoutEventsTestApp.js collides with C:\Users\KPRAJA~1\AppData\Local\Temp\2\tmp- 11748OGUms165us0q\node_modules\react-native\ReactAndroid\src\androidTest\js\Layo utEventsTestApp.js

This warning is caused by a @providesModule declaration with the same name acros s two different files. jest-haste-map: @providesModule naming collision: Duplicate module name: MeasureLayoutTestModule Paths: C:\Users\KPRAJA~1\AppData\Local\Temp\2\tmp-11748OGUms165us0q\node_modul es\movie-list-miniapp\node_modules\react-native\ReactAndroid\src\androidTest\js
MeasureLayoutTestModule.js collides with C:\Users\KPRAJA~1\AppData\Local\Temp\2
tmp-11748OGUms165us0q\node_modules\react-native\ReactAndroid\src\androidTest\js
MeasureLayoutTestModule.js

This warning is caused by a @providesModule declaration with the same name acros s two different files. jest-haste-map: @providesModule naming collision: Duplicate module name: MultitouchHandlingTestAppModule Paths: C:\Users\KPRAJA~1\AppData\Local\Temp\2\tmp-11748OGUms165us0q\node_modul es\movie-list-miniapp\node_modules\react-native\ReactAndroid\src\androidTest\js
MultitouchHandlingTestAppModule.js collides with C:\Users\KPRAJA~1\AppData\Local \Temp\2\tmp-11748OGUms165us0q\node_modules\react-native\ReactAndroid\src\android Test\js\MultitouchHandlingTestAppModule.js

This warning is caused by a @providesModule declaration with the same name acros s two different files. jest-haste-map: @providesModule naming collision: Duplicate module name: NativeIdTestModule Paths: C:\Users\KPRAJA~1\AppData\Local\Temp\2\tmp-11748OGUms165us0q\node_modul es\movie-list-miniapp\node_modules\react-native\ReactAndroid\src\androidTest\js
NativeIdTestModule.js collides with C:\Users\KPRAJA~1\AppData\Local\Temp\2\tmp-1 1748OGUms165us0q\node_modules\react-native\ReactAndroid\src\androidTest\js\Nativ eIdTestModule.js

This warning is caused by a @providesModule declaration with the same name acros s two different files. jest-haste-map: @providesModule naming collision: Duplicate module name: PickerAndroidTestModule Paths: C:\Users\KPRAJA~1\AppData\Local\Temp\2\tmp-11748OGUms165us0q\node_modul es\movie-list-miniapp\node_modules\react-native\ReactAndroid\src\androidTest\js
PickerAndroidTestModule.js collides with C:\Users\KPRAJA~1\AppData\Local\Temp\2
tmp-11748OGUms165us0q\node_modules\react-native\ReactAndroid\src\androidTest\js
PickerAndroidTestModule.js

This warning is caused by a @providesModule declaration with the same name acros s two different files. jest-haste-map: @providesModule naming collision: Duplicate module name: ProgressBarTestModule Paths: C:\Users\KPRAJA~1\AppData\Local\Temp\2\tmp-11748OGUms165us0q\node_modul es\movie-list-miniapp\node_modules\react-native\ReactAndroid\src\androidTest\js
ProgressBarTestModule.js collides with C:\Users\KPRAJA~1\AppData\Local\Temp\2\tm p-11748OGUms165us0q\node_modules\react-native\ReactAndroid\src\androidTest\js\Pr ogressBarTestModule.js

This warning is caused by a @providesModule declaration with the same name acros s two different files. jest-haste-map: @providesModule naming collision: Duplicate module name: ScrollViewTestModule Paths: C:\Users\KPRAJA~1\AppData\Local\Temp\2\tmp-11748OGUms165us0q\node_modul es\movie-list-miniapp\node_modules\react-native\ReactAndroid\src\androidTest\js
ScrollViewTestModule.js collides with C:\Users\KPRAJA~1\AppData\Local\Temp\2\tmp -11748OGUms165us0q\node_modules\react-native\ReactAndroid\src\androidTest\js\Scr ollViewTestModule.js

This warning is caused by a @providesModule declaration with the same name acros s two different files. jest-haste-map: @providesModule naming collision: Duplicate module name: ShareTestModule Paths: C:\Users\KPRAJA~1\AppData\Local\Temp\2\tmp-11748OGUms165us0q\node_modul es\movie-list-miniapp\node_modules\react-native\ReactAndroid\src\androidTest\js
ShareTestModule.js collides with C:\Users\KPRAJA~1\AppData\Local\Temp\2\tmp-1174 8OGUms165us0q\node_modules\react-native\ReactAndroid\src\androidTest\js\ShareTes tModule.js

This warning is caused by a @providesModule declaration with the same name acros s two different files. jest-haste-map: @providesModule naming collision: Duplicate module name: SwipeRefreshLayoutTestModule Paths: C:\Users\KPRAJA~1\AppData\Local\Temp\2\tmp-11748OGUms165us0q\node_modul es\movie-list-miniapp\node_modules\react-native\ReactAndroid\src\androidTest\js
SwipeRefreshLayoutTestModule.js collides with C:\Users\KPRAJA~1\AppData\Local\Te mp\2\tmp-11748OGUms165us0q\node_modules\react-native\ReactAndroid\src\androidTes t\js\SwipeRefreshLayoutTestModule.js

This warning is caused by a @providesModule declaration with the same name acros s two different files. jest-haste-map: @providesModule naming collision: Duplicate module name: SubviewsClippingTestModule Paths: C:\Users\KPRAJA~1\AppData\Local\Temp\2\tmp-11748OGUms165us0q\node_modul es\movie-list-miniapp\node_modules\react-native\ReactAndroid\src\androidTest\js
SubviewsClippingTestModule.js collides with C:\Users\KPRAJA~1\AppData\Local\Temp \2\tmp-11748OGUms165us0q\node_modules\react-native\ReactAndroid\src\androidTest
js\SubviewsClippingTestModule.js

This warning is caused by a @providesModule declaration with the same name acros s two different files. jest-haste-map: @providesModule naming collision: Duplicate module name: TestBundle Paths: C:\Users\KPRAJA~1\AppData\Local\Temp\2\tmp-11748OGUms165us0q\node_modul es\movie-list-miniapp\node_modules\react-native\ReactAndroid\src\androidTest\js
TestBundle.js collides with C:\Users\KPRAJA~1\AppData\Local\Temp\2\tmp-11748OGUm s165us0q\node_modules\react-native\ReactAndroid\src\androidTest\js\TestBundle.js

This warning is caused by a @providesModule declaration with the same name acros s two different files. jest-haste-map: @providesModule naming collision: Duplicate module name: TestIdTestModule Paths: C:\Users\KPRAJA~1\AppData\Local\Temp\2\tmp-11748OGUms165us0q\node_modul es\movie-list-miniapp\node_modules\react-native\ReactAndroid\src\androidTest\js
TestIdTestModule.js collides with C:\Users\KPRAJA~1\AppData\Local\Temp\2\tmp-117 48OGUms165us0q\node_modules\react-native\ReactAndroid\src\androidTest\js\TestIdT estModule.js

This warning is caused by a @providesModule declaration with the same name acros s two different files. jest-haste-map: @providesModule naming collision: Duplicate module name: TestJSLocaleModule Paths: C:\Users\KPRAJA~1\AppData\Local\Temp\2\tmp-11748OGUms165us0q\node_modul es\movie-list-miniapp\node_modules\react-native\ReactAndroid\src\androidTest\js
TestJSLocaleModule.js collides with C:\Users\KPRAJA~1\AppData\Local\Temp\2\tmp-1 1748OGUms165us0q\node_modules\react-native\ReactAndroid\src\androidTest\js\TestJ SLocaleModule.js

This warning is caused by a @providesModule declaration with the same name acros s two different files. jest-haste-map: @providesModule naming collision: Duplicate module name: TestJSToJavaParametersModule Paths: C:\Users\KPRAJA~1\AppData\Local\Temp\2\tmp-11748OGUms165us0q\node_modul es\movie-list-miniapp\node_modules\react-native\ReactAndroid\src\androidTest\js
TestJSToJavaParametersModule.js collides with C:\Users\KPRAJA~1\AppData\Local\Te mp\2\tmp-11748OGUms165us0q\node_modules\react-native\ReactAndroid\src\androidTes t\js\TestJSToJavaParametersModule.js

This warning is caused by a @providesModule declaration with the same name acros s two different files. jest-haste-map: @providesModule naming collision: Duplicate module name: TestJavaToJSArgumentsModule Paths: C:\Users\KPRAJA~1\AppData\Local\Temp\2\tmp-11748OGUms165us0q\node_modul es\movie-list-miniapp\node_modules\react-native\ReactAndroid\src\androidTest\js
TestJavaToJSArgumentsModule.js collides with C:\Users\KPRAJA~1\AppData\Local\Tem p\2\tmp-11748OGUms165us0q\node_modules\react-native\ReactAndroid\src\androidTest \js\TestJavaToJSArgumentsModule.js

This warning is caused by a @providesModule declaration with the same name acros s two different files. jest-haste-map: @providesModule naming collision: Duplicate module name: TestJavaToJSReturnValuesModule Paths: C:\Users\KPRAJA~1\AppData\Local\Temp\2\tmp-11748OGUms165us0q\node_modul es\movie-list-miniapp\node_modules\react-native\ReactAndroid\src\androidTest\js
TestJavaToJSReturnValuesModule.js collides with C:\Users\KPRAJA~1\AppData\Local
Temp\2\tmp-11748OGUms165us0q\node_modules\react-native\ReactAndroid\src\androidT est\js\TestJavaToJSReturnValuesModule.js

This warning is caused by a @providesModule declaration with the same name acros s two different files. jest-haste-map: @providesModule naming collision: Duplicate module name: TextInputTestModule Paths: C:\Users\KPRAJA~1\AppData\Local\Temp\2\tmp-11748OGUms165us0q\node_modul es\movie-list-miniapp\node_modules\react-native\ReactAndroid\src\androidTest\js
TextInputTestModule.js collides with C:\Users\KPRAJA~1\AppData\Local\Temp\2\tmp- 11748OGUms165us0q\node_modules\react-native\ReactAndroid\src\androidTest\js\Text InputTestModule.js

This warning is caused by a @providesModule declaration with the same name acros s two different files. jest-haste-map: @providesModule naming collision: Duplicate module name: TimePickerDialogTestModule Paths: C:\Users\KPRAJA~1\AppData\Local\Temp\2\tmp-11748OGUms165us0q\node_modul es\movie-list-miniapp\node_modules\react-native\ReactAndroid\src\androidTest\js
TimePickerDialogTestModule.js collides with C:\Users\KPRAJA~1\AppData\Local\Temp \2\tmp-11748OGUms165us0q\node_modules\react-native\ReactAndroid\src\androidTest
js\TimePickerDialogTestModule.js

This warning is caused by a @providesModule declaration with the same name acros s two different files. jest-haste-map: @providesModule naming collision: Duplicate module name: TouchBubblingTestAppModule Paths: C:\Users\KPRAJA~1\AppData\Local\Temp\2\tmp-11748OGUms165us0q\node_modul es\movie-list-miniapp\node_modules\react-native\ReactAndroid\src\androidTest\js
TouchBubblingTestAppModule.js collides with C:\Users\KPRAJA~1\AppData\Local\Temp \2\tmp-11748OGUms165us0q\node_modules\react-native\ReactAndroid\src\androidTest
js\TouchBubblingTestAppModule.js

This warning is caused by a @providesModule declaration with the same name acros s two different files. jest-haste-map: @providesModule naming collision: Duplicate module name: UIManagerTestModule Paths: C:\Users\KPRAJA~1\AppData\Local\Temp\2\tmp-11748OGUms165us0q\node_modul es\movie-list-miniapp\node_modules\react-native\ReactAndroid\src\androidTest\js
UIManagerTestModule.js collides with C:\Users\KPRAJA~1\AppData\Local\Temp\2\tmp- 11748OGUms165us0q\node_modules\react-native\ReactAndroid\src\androidTest\js\UIMa nagerTestModule.js

This warning is caused by a @providesModule declaration with the same name acros s two different files. jest-haste-map: @providesModule naming collision: Duplicate module name: ViewRenderingTestModule Paths: C:\Users\KPRAJA~1\AppData\Local\Temp\2\tmp-11748OGUms165us0q\node_modul es\movie-list-miniapp\node_modules\react-native\ReactAndroid\src\androidTest\js
ViewRenderingTestModule.js collides with C:\Users\KPRAJA~1\AppData\Local\Temp\2
tmp-11748OGUms165us0q\node_modules\react-native\ReactAndroid\src\androidTest\js
ViewRenderingTestModule.js

This warning is caused by a @providesModule declaration with the same name acros s two different files. jest-haste-map: @providesModule naming collision: Duplicate module name: react-native-vector-icons Paths: C:\Users\KPRAJA~1\AppData\Local\Temp\2\tmp-11748OGUms165us0q\node_modul es\movie-list-miniapp\node_modules\react-native\local-cli\core_fixtures_\file s\package.json collides with C:\Users\KPRAJA~1\AppData\Local\Temp\2\tmp-11748OGU ms165us0q\node_modules\react-native\local-cli\core_fixtures_\files\package.js on

This warning is caused by a @providesModule declaration with the same name acros s two different files.

Ambiguous module resolution from C:\Users\KPRAJA~1\AppData\Local\Temp\2\tmp-117 48OGUms165us0q\node_modules\movie-list-miniapp\node_modules\react-native\Librari es\react-native\react-native-implementation.js: The name AccessibilityInfo wa s looked up in the Haste module map. It cannot be resolved, because there exists several different files, or packages, that provide a module for that particular name and platform. The platform extension is android. You must delete or blac klist files until there remains only one of these:

C:\Users\KPRAJA~1\AppData\Local\Temp\2\tmp-11748OGUms165us0q\node_modules\m ovie-list-miniapp\node_modules\react-native\Libraries\Components\AccessibilityIn fo\AccessibilityInfo.android.js (module) * C:\Users\KPRAJA~1\AppData\Local\Temp\2\tmp-11748OGUms165us0q\node_modules\r eact-native\Libraries\Components\AccessibilityInfo\AccessibilityInfo.android.js (module)

C:\sites\Electrode\ElectrodeNativeTutorial\MovieListMiniApp>

On Fri, Feb 9, 2018 at 10:34 AM, Benoit Lemaire [email protected] wrote:

@kamleshgit https://github.com/kamleshgit After trying to reproduce on my Windows 10 workstation I think I know what the problem is. The master manifest is retrieved from GitHub using git client. Therefore having git client (git command available in PATH) installed is a requirement of Electrode Native. I am not facing this issue if git command is accessible from a Windows command prompt (i.e git installed and the directory containing git command is correctly present in PATH env variable). If I remove git command from my path (so that from a command prompt typing git result in command not found error), then I get the same behavior as the one you are facing (ern CLI stalled when using create-miniapp command). To fix your issue, you should just have to install git client on your worksation (see https://git-scm.com/download/win , it's just a matter of running the installer). Let me know if that is fixing your issue.

I have created two issues related to this problem. One to update our requirements section in the documentation, and the other one to fail gracefully and early in case git is not installed on the workstation.

#553 https://github.com/electrode-io/electrode-native/issues/553 #554 https://github.com/electrode-io/electrode-native/issues/554

Hopefully it will avoid future users to face a similar issue.

Thanks again for reporting.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/electrode-io/electrode-native/issues/552#issuecomment-364336162, or mute the thread https://github.com/notifications/unsubscribe-auth/AilIWV5ZUy1x4qt_eCc4FRAanl-SQDuTks5tS9H1gaJpZM4R9-mt .

-- Thanks Kamlesh Kumar

kamleshgit avatar Feb 09 '18 08:02 kamleshgit

@kamleshgit Yes you are now running into an issue that has been reported for Windows and that we have fixed yesterday. We might release a patch version of Electrode Native later on today. In case you want to resolve this problem immediately without waiting for the new release of Electrode Native, you'll have to apply the fix manually. Please check my answer on this issue https://github.com/electrode-io/electrode-native/issues/531 thread. The fix is present in my last comment.

belemaire avatar Feb 09 '18 18:02 belemaire

Closing this issue as the root cause has been identified and fixed. Two issues were created out of this one (one for updating requirements section in docs, other one to fail early in case git is not installed).

belemaire avatar Feb 09 '18 18:02 belemaire