I just started learning PCL in xamarin and I have been going over the MvvmCross tutorial and i cant find why i keep getting this error
No overload for method 'EnsureLoaded' takes 1 arguments:
protected override IMvxNavigationSerializer CreateNavigationSerializer()
{
Cirrious.MvvmCross.Plugins.Json.PluginLoader.Instance.EnsureLoaded(true);
return new MvxJsonNavigationSerializer();
}
I installed the Cirrious.MvvmCross.Plugins.Json and all the other reffereces:
can some help please thank you.
As I know it doesn't need any arguments at all, so try just
Cirrious.MvvmCross.Plugins.Json.PluginLoader.Instance.EnsureLoaded();
Related
My below code works well with Java 1.7 and Mockito version is 1.10.19.
#Test
public void populateUsersEmpty() {
// arrange
List<UserDTO> users = new ArrayList<UserDTO>();
// act
requestBuilder.populateUsers(mxsMessageOutMock, users);
// assert
verify(mxsMessageOutMock, times(0)).addRecordSet(CreateNewAlertRequestBuilder.MXS_RECORDSETNAME_USERS);
verify(mxsMessageOutMock, times(0)).addFieldNewRecord(anyString(), anyString());
verify(mxsMessageOutMock, times(0)).addField(anyString(), any());
}
But when I moved to Java 1.8 with same version of Mockito it started showing below error (bold letters). When I checked Mockito website I found that Mockito 3 yet to support java 8. If yes,then what is solution for this? Should I have to wait for their release or Is there any way to fix this. I tried passing AnyString() in place of any() but my code breaks still. Even anyObject() didn't help me.
verify(mxsMessageOutMock, times(0)).addField(anyString(), anyString());
CreateNewAlertRequestBuilderTest.java:436:0::0 The method addField(String, String) is ambiguous for the type IMXSMessageOut
[ant:iajc] [error 7]: error at verify(mockMessageOut, times(0)).addField(anyString(), any());
I understand that Its difficult to suggest without full code but here what I could share piece of code.
any(String.class)? if addField is accepting String, String why don't u use anyString(), anyString()
I installed the RFD ImageMagick Library using
composer require rfd/imagemagick
I went through the readme and this is how they have done it
use Rfd\ImageMagick;
use Rfd\ImageMagick\CLI\OperationFactory();
use Rfd\ImageMagick\Image\File;
use Rfd\ImageMagick\Options\CommonOptions;
$im = new ImageMagick(new OperationFactory());
It throws Class 'Rfd\ImageMagick' not found error. But that error goes away when I do
use Rfd\ImageMagick\ImageMagick;
The statement below throws an error but works with the () at the end
use Rfd\ImageMagick\CLI\OperationFactory();
Now its giving OperationFactory not found error. I can't find that class anywhere in the install so I'm really confused! Any help would be really appreciated. I'm trying to generate PDF thumnail image previews using this library.
Thanks to emcconville, I contacted the author. This works
use Rfd\ImageMagick\ImageMagick;
use Rfd\ImageMagick\CLI\Operation\Factory as OperationFactory;
I'm receiving a
ReferenceError: "OAuth1" is not defined.
when trying to migrate my code from OAuthConfig. Is there a library I need to invoke in Resources->Libraries?
The example code I used is the one from Google Developers
Any help would be appreciated.
I managed to find an official-looking OAuth1 implementation here
The project ID to use is in the description:
Mb2Vpd5nfD3Pz-_a-39Q4VfxhMjh3Sh48
Hope it'll help those migrating their applications.
It appears that the the ILogger interface in 3.x is missing a method for .Info that the TemplateEngineNeeds. I'm getting the following error...
Method not found: 'Void Castle.Core.Logging.ILogger.Info(System.String, System.Object[])'.
I'm using version 1.1.1.0 Castle.Components.Common.TemplateEngine.NVelocityTemplateEngine. Perhaps this isn't the correct version so any help in pointing out the correct version would be greatly appreciated.
As far as I know nobody has upgraded TemplateEngine to Castle.Core 3.0 yet. Please fork the repository and upgrade it, then send the team a pull request. If you have any questions about the code post to the Castle Dev list.
I'm using EF 4.1. Whenever an error occurs during the execution of a DbContext operation like SaveChanges() I consistently receive a rather cryptic error message: System.Exception._ComPlusExceptionCode -532462766. Obviously this is not very helpful for finding out what went wrong. A quick Google search for ComPlusException in context with EF returned no meaningful results.
Any ideas why I receive this error message and what can be done in order to get a more descriptive error feedback would be much appreciated.
Thanks!!
Code:
public void InsertTarget(Target target)
{
try
{
_tgrContext.Targets.Add(target);
_tgrContext.SaveChanges();
}
catch (Exception)
{
throw;
}
}
Found the answer to the problem here:
complusexceptions in net
In short: Visual Studio decodes the complusexception code into the actual error message on click at the red error quation mark in the VS code editor. I hardly ever use this visual indicatior, so I guess it was easy to miss for me.