SAFE-Stack / SAFE-Nightwatch

Demo of SAFE-Stack applied to React Native for cross platform native mobile apps
The Unlicense
157 stars 30 forks source link

Running ./Build.sh results in the following error #39

Open 7sharp9 opened 6 years ago

7sharp9 commented 6 years ago
  1) System.Exception: Error while running '/Users/davethomas/fsharp/SAFE-Nightwatch/android/gradlew' with args: assembleRelease --console plain
  at FSI_0005.Build+run'@49-3.Invoke (System.String message) [0x00001] in <96f96a76724e459fbafd072d66cc58c6>:0
  at Microsoft.FSharp.Core.PrintfImpl+StringPrintfEnv`1[TResult].Finalize () [0x00012] in <5893d081904cf4daa745038381d09358>:0
  at Microsoft.FSharp.Core.PrintfImpl+Final2@235[TState,TResidue,TResult,A,B].Invoke (Microsoft.FSharp.Core.FSharpFunc`2[T,TResult] env, A a, B b) [0x0005a] in <5893d081904cf4daa745038381d09358>:0
  at Microsoft.FSharp.Core.OptimizedClosures+Invoke@3266-1[T2,T3,TResult,T1].Invoke (T2 u, T3 v) [0x00001] in <5893d081904cf4daa745038381d09358>:0
  at Microsoft.FSharp.Core.OptimizedClosures+Invoke@3253[T2,TResult,T1].Invoke (T2 u) [0x00001] in <5893d081904cf4daa745038381d09358>:0
  at FSI_0005.Build+run'@49-5.Invoke (System.String arg20) [0x00001] in <96f96a76724e459fbafd072d66cc58c6>:0
  at Microsoft.FSharp.Core.FSharpFunc`2[T,TResult].InvokeFast[V] (Microsoft.FSharp.Core.FSharpFunc`2[T,TResult] func, T arg1, TResult arg2) [0x0001f] in <5893d081904cf4daa745038381d09358>:0
  at FSI_0005.Build.run' (System.TimeSpan timeout, System.Lazy`1[T] cmd, System.String args, System.String dir) [0x00068] in <96f96a76724e459fbafd072d66cc58c6>:0
  at FSI_0005.Build+run@51.Invoke (System.Lazy`1[T] cmd, System.String args, System.String dir) [0x00001] in <96f96a76724e459fbafd072d66cc58c6>:0
  at Microsoft.FSharp.Core.FSharpFunc`2[T,TResult].InvokeFast[V,W] (Microsoft.FSharp.Core.FSharpFunc`2[T,TResult] func, T arg1, TResult arg2, V arg3) [0x0000d] in <5893d081904cf4daa745038381d09358>:0
  at FSI_0005.Build+clo@254-25.Invoke (Microsoft.FSharp.Core.Unit _arg6) [0x0000b] in <96f96a76724e459fbafd072d66cc58c6>:0
  at Fake.TargetHelper+targetFromTemplate@209-1[a].Invoke (Microsoft.FSharp.Core.Unit unitVar0) [0x00001] in <59b649fdccf1c534a7450383fd49b659>:0
  at Fake.TargetHelper.runSingleTarget (Fake.TargetHelper+TargetTemplate`1[a] target) [0x0004b] in <59b649fdccf1c534a7450383fd49b659>:0

Im not sure if Ive missed installing something? Its hard to tell from the error.

forki commented 6 years ago

Ok that's a gradlew error. There must be more to find somewhere.

Am 01.10.2017 21:22 schrieb "Dave Thomas" notifications@github.com:

1) System.Exception: Error while running '/Users/davethomas/fsharp/SAFE-Nightwatch/android/gradlew' with args: assembleRelease --console plain at FSI_0005.Build+run'@49-3.Invoke (System.String message) [0x00001] in <96f96a76724e459fbafd072d66cc58c6>:0 at Microsoft.FSharp.Core.PrintfImpl+StringPrintfEnv1[TResult].Finalize () [0x00012] in <5893d081904cf4daa745038381d09358>:0 at Microsoft.FSharp.Core.PrintfImpl+Final2@235[TState,TResidue,TResult,A,B].Invoke (Microsoft.FSharp.Core.FSharpFunc2[T,TResult] env, A a, B b) [0x0005a] in <5893d081904cf4daa745038381d09358>:0 at Microsoft.FSharp.Core.OptimizedClosures+Invoke@3266-1[T2,T3,TResult,T1].Invoke (T2 u, T3 v) [0x00001] in <5893d081904cf4daa745038381d09358>:0 at Microsoft.FSharp.Core.OptimizedClosures+Invoke@3253[T2,TResult,T1].Invoke (T2 u) [0x00001] in <5893d081904cf4daa745038381d09358>:0 at FSI_0005.Build+run'@49-5.Invoke (System.String arg20) [0x00001] in <96f96a76724e459fbafd072d66cc58c6>:0 at Microsoft.FSharp.Core.FSharpFunc2[T,TResult].InvokeFast[V] (Microsoft.FSharp.Core.FSharpFunc2[T,TResult] func, T arg1, TResult arg2) [0x0001f] in <5893d081904cf4daa745038381d09358>:0 at FSI_0005.Build.run' (System.TimeSpan timeout, System.Lazy1[T] cmd, System.String args, System.String dir) [0x00068] in <96f96a76724e459fbafd072d66cc58c6>:0 at FSI_0005.Build+run@51.Invoke (System.Lazy1[T] cmd, System.String args, System.String dir) [0x00001] in <96f96a76724e459fbafd072d66cc58c6>:0 at Microsoft.FSharp.Core.FSharpFunc2[T,TResult].InvokeFast[V,W] (Microsoft.FSharp.Core.FSharpFunc2[T,TResult] func, T arg1, TResult arg2, V arg3) [0x0000d] in <5893d081904cf4daa745038381d09358>:0 at FSI_0005.Build+clo@254-25.Invoke (Microsoft.FSharp.Core.Unit _arg6) [0x0000b] in <96f96a76724e459fbafd072d66cc58c6>:0 at Fake.TargetHelper+targetFromTemplate@209-1[a].Invoke (Microsoft.FSharp.Core.Unit unitVar0) [0x00001] in <59b649fdccf1c534a7450383fd49b659>:0 at Fake.TargetHelper.runSingleTarget (Fake.TargetHelper+TargetTemplate`1[a] target) [0x0004b] in <59b649fdccf1c534a7450383fd49b659>:0

Im not sure if Ive missed installing something? Its hard to tell from the error.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/SAFE-Stack/SAFE-Nightwatch/issues/39, or mute the thread https://github.com/notifications/unsubscribe-auth/AADgNIrsGg1xzYQXz9Gf8MK0ChDE6ZMyks5sn-Z1gaJpZM4Pp_6D .

7sharp9 commented 6 years ago

Oh, found it: export ANDROID_HOME=/opt/android-sdk-linux/

That should be surrounded by an if else, 2 ticks ...

7sharp9 commented 6 years ago

After patching that I get:

/usr/local/share/dotnet/sdk/2.0.0/Microsoft.Common.CurrentVersion.targets(1122,5): error MSB3644: The reference assemblies for framework ".NETFramework,Version=v4.6.2" were not found. To resolve this, install the SDK or Targeting Pack for this framework version or retarget your application to a version of the framework for which you have the SDK or Targeting Pack installed. Note that assemblies will be resolved from the Global Assembly Cache (GAC) and will be used in place of reference assemblies. Therefore your assembly may not be correctly targeted for the framework you intend. [/Users/davethomas/fsharp/SAFE-Nightwatch/tests/IntegrationTests/IntegrationTests.fsproj]
forki commented 6 years ago

Ok for the first one please send pr. The second one is common issue. I think we documented it in the bookstore sample for Web. If not Google a bit. Maybe @cartermp can give a link. Sorry I'm already away from PC

Am 01.10.2017 21:49 schrieb "Dave Thomas" notifications@github.com:

After patching that I get:

/usr/local/share/dotnet/sdk/2.0.0/Microsoft.Common.CurrentVersion.targets(1122,5): error MSB3644: The reference assemblies for framework ".NETFramework,Version=v4.6.2" were not found. To resolve this, install the SDK or Targeting Pack for this framework version or retarget your application to a version of the framework for which you have the SDK or Targeting Pack installed. Note that assemblies will be resolved from the Global Assembly Cache (GAC) and will be used in place of reference assemblies. Therefore your assembly may not be correctly targeted for the framework you intend. [/Users/davethomas/fsharp/SAFE-Nightwatch/tests/IntegrationTests/IntegrationTests.fsproj]

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/SAFE-Stack/SAFE-Nightwatch/issues/39#issuecomment-333401849, or mute the thread https://github.com/notifications/unsubscribe-auth/AADgNDxg7MTj_Pqf3Wy1-bciZPXw7EFEks5sn-zNgaJpZM4Pp_6D .

7sharp9 commented 6 years ago

I have no idea, theres no such thing as installing targeting packs on osx/linux, I have mono 5.4.0.199 which is a September 25 build.

7sharp9 commented 6 years ago

Also tried:

export DOTNET_REFERENCE_ASSEMBLIES_PATH=/Library/Frameworks/Mono.framework/Versions/Current/lib/mono/xbuild-frameworks

But that doesn't seem to help matters. Any ideas? /cc @alfonsogarciacaro

forki commented 6 years ago

Btw the net462 project is for the UI tests. You may want to skip that for now.

Am 02.10.2017 00:28 schrieb "Dave Thomas" notifications@github.com:

Also tried:

export DOTNET_REFERENCE_ASSEMBLIES_PATH=/Library/Frameworks/Mono.framework/Versions/Current/lib/mono/xbuild-frameworks

But that doesn't seem to help matters. Any ideas? /cc @alfonsogarciacaro https://github.com/alfonsogarciacaro

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/SAFE-Stack/SAFE-Nightwatch/issues/39#issuecomment-333411605, or mute the thread https://github.com/notifications/unsubscribe-auth/AADgNJjnF2PgPFmNKvFypIV4VnRJFTyOks5soBIigaJpZM4Pp_6D .

forki commented 6 years ago

also: you want to run build.sh debug as descibed in readme

7sharp9 commented 6 years ago

I tried debug also, the simulator does not show, fable appears to be watching but thats all that happens.

forki commented 6 years ago

You need to start the simulator yourself or have a device attached

Am 02.10.2017 13:06 schrieb "Dave Thomas" notifications@github.com:

I tried debug also, the simulator does not show, fable appears to be watching but thats all that happens.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/SAFE-Stack/SAFE-Nightwatch/issues/39#issuecomment-333504143, or mute the thread https://github.com/notifications/unsubscribe-auth/AADgNEBKo2jh-9sYKhk2-SD70ezG4YpWks5soMOtgaJpZM4Pp_6D .

7sharp9 commented 6 years ago

Yeah I had my droid emulator running at the time, tricky to find any diagnostic output to why it didn't do anything...

7sharp9 commented 6 years ago

Im a bit stuck, no idea on what diagnostics I can do, The RN sample from create-react-native-app AwesomeProject seems to work

7sharp9 commented 6 years ago

ok figured it out, a failure command was not been output, will sleep then PR ...

ImaginaryDevelopment commented 3 years ago

Does the above PR not resolve this?

7sharp9 commented 3 years ago

No idea, 2017 was yonks ago!