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

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

Open
7sharp9 opened this issue Oct 1, 2017 · 15 comments
Open

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

7sharp9 opened this issue Oct 1, 2017 · 15 comments

Comments

@7sharp9
Copy link
Contributor

7sharp9 commented Oct 1, 2017

  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
Copy link
Member

forki commented Oct 1, 2017 via email

@7sharp9
Copy link
Contributor Author

7sharp9 commented Oct 1, 2017

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

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

@7sharp9
Copy link
Contributor Author

7sharp9 commented Oct 1, 2017

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
Copy link
Member

forki commented Oct 1, 2017 via email

@7sharp9
Copy link
Contributor Author

7sharp9 commented Oct 1, 2017

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
Copy link
Contributor Author

7sharp9 commented Oct 1, 2017

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
Copy link
Member

forki commented Oct 2, 2017 via email

@forki
Copy link
Member

forki commented Oct 2, 2017

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

@7sharp9
Copy link
Contributor Author

7sharp9 commented Oct 2, 2017

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

@forki
Copy link
Member

forki commented Oct 2, 2017 via email

@7sharp9
Copy link
Contributor Author

7sharp9 commented Oct 2, 2017

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

@7sharp9
Copy link
Contributor Author

7sharp9 commented Oct 2, 2017

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
Copy link
Contributor Author

7sharp9 commented Oct 2, 2017

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

@ImaginaryDevelopment
Copy link

Does the above PR not resolve this?

@7sharp9
Copy link
Contributor Author

7sharp9 commented Mar 2, 2021

No idea, 2017 was yonks ago!

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

3 participants