0
Under review

OzCode v4.0.0.20 - Search feature does not find string in object.

Jason Evans 3 weeks ago • updated by Leo Omri Finkelstein (Support Engineer) 3 weeks ago 3

Hello.

I'm using the latest OzCode v4 beta.

Microsoft Visual Studio Enterprise 2017
Version 15.9.2
VisualStudio.15.Release/15.9.2+28307.108
Microsoft .NET Framework
Version 4.7.03056

Installed Version: Enterprise


When searching for a string inside of an object instance, the OzCode tooltip does not return any search results. However, the string I'm searching for does exist in one of the object's properties. Also, OzCode highlights the text in the tooltip window.

Here is a screenshot of what happened...



As you can see, I searched for the word 'pass' in the object and OzCode returns "0 of 0" and suggests I search deeper. However, the search text is highlighted in the tooltip against the property 'CombinedCheck'. I also tried searching for the word 'true' and no results were found, though each word 'true' was highlighted in the window.


Here is the code for the validation response class:


using Newtonsoft.Json;
using System;

public class BankAccountDetailsValidationResponse
{
[JsonProperty("statusCode")]
private int StatusCode { get; set; }

[JsonProperty("message")]
private string Message { get; set; } = string.Empty;

[JsonProperty("accountNumberCheck")]
private string AccountNumberCheck { get; set; }

[JsonProperty("combinedCheck")]
private string CombinedCheck { get; set; }

[JsonProperty("sortCodeCheck")]
private string SortCodeCheck { get; set; }

public bool BankAccountDetailsAreValid => Success && String.Equals(CombinedCheck, "pass", StringComparison.OrdinalIgnoreCase);

public bool Success => StatusCode == 0;
}


Here is sample JSON to help reproduce the problem locally:


{\"accountNumberCheck\":\"Y\",\"combinedCheck\":\"pass\",\"sortCodeCheck\":\"Y\"}
Under review

Hi Jason,

Thank you very much for reproducing the issue you've encountered along with providing us with helpful information.

Can you please send us over your log files which are located at %Temp%\OzCode\Logs to support@oz-code.com? That would really help us figure out more about the issue.

Hello.

No problem, I've uploaded all the log files from my PC.

Logs.zip

+1

Hi Jason,

We managed to reproduce the issue you've reported. The OzCode Tooltip feature seems to be working when removing the JSONProps.

Thanks for sending us the log files.

We will take a deeper look and fix this.