When trying tu run the empty EUnit project generated by the New Project Dialog
of Visual Studio, i get some problems:
When launching on an emualted device, the emulator crashes before it finishes launching.
When launching on a connected real device (Android 4.3), the following happens:
Running the APP without debugger, simply results in crash on startup.
Running the APP with Debugger, results in a modal window from Visual Studio popping up which really wants to break(no option, not to set a breakpoint) and saying:
An exception of type: java.lang.RuntimeException occurred
Message: {java.lang.RuntimeException: Unable to start activity ComponentInfo{org.me.androidapplication1/org.me.androidapplication1.MainActivity}: java.lang.IllegalArgumentException: savedInstanceState}
at ActivityThread.performLaunchActivity()
ActivityThread.handleLaunchActivity()
ActivityThread.access$700()
ActivityThread$H.handleMessage()
Handler.dispatchMessage()
Looper.loop()
ActivityThread.main()
Method.invokeNative()
Method.invoke()
ZygoteInit$MethodAndArgsCaller.run()
ZygoteInit.main()
NativeStart.main()
When I do break, the debugger(or its frontend) gets confused and says:The current stack frame was not found in a loaded module. Source cannot be shown for this location. I can see the disassembly, if i wanted and doing that results in no disassembly available…
Everything works as expected as soon as the project doesn’t mention EUnit anymore.
I get similar behavior when trying eunit on Fire
Version info:
Microsoft Visual Studio 2015 Shell (Integrated)
Version 14.0.23107.0 D14REL
Microsoft .NET Framework
Version 4.6.01590
Installed Version: IDE Standard
RemObjects Elements 9.0.97.2071
RemObjects Elements (Oxygene, C# and Silver) for .NET, Cocoa and Java.
Copyright 2003-2016 RemObjects Software, LLC. All rights reserved. http://www.remobjects.com/elements
I wonder if you happen to have an older version than I do, that would cause this.
I get:
Severity Code Description Project File Line Suppression State
Error (E584) Cannot find type “remobjects.elements.rtl.String” from library “elements” referenced by “remobjects.elements.eunit” org.me.testapplication1 0
Error (E584) Cannot find type “remobjects.elements.rtl.String” from library “elements” referenced by “remobjects.elements.eunit” org.me.testapplication1 0
which makes sense, but makes me wonder if you use an older version of eunit. However 1 other fix i had to do is, change the onCreate signature to this:
public override func onCreate(_ savedInstanceState: Bundle!) {
This is the eunit project template, that comes with the currently downloadable version of the silver/visualstdio package… at least as far as i can tell. I did not fiddle around with the compiler or included libraries.
the name of the setup executable was: RemObjects Elements with Visual Studio 2015 - 9.0.97.2071.exe
although that is not entirely correct, because on download, the filename was %-encoded, so the whitespaces of the filename were all %20
exact version info:
Microsoft Visual Studio 2015 Shell (Integrated)
Version 14.0.23107.0 D14REL
Microsoft .NET Framework
Version 4.6.00081
Installed Version: IDE Standard
RemObjects Elements 9.0.97.2071
RemObjects Elements (Oxygene, C# and Silver) for .NET, Cocoa and Java.
Copyright 2003-2016 RemObjects Software, LLC. All rights reserved. http://www.remobjects.com/elements
We don’t have an exact timeline for our “H class” release yet, probably April or May. however, we do have weekly betas that already include the new EUnit and Elements RTL.