Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
User name:
Password:
Save Password
Forgot your password?

 All Forums
 Visual Assist
 Technical Support
 VA was messed with my code.
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

kilitary
New Member

Russia
4 Posts

Posted - Jul 14 2018 :  6:00:34 PM  Show Profile  Reply with Quote
Hi,
Look this pic: http://prntscr.com/k6iss8
The issues are:

1) on the left you see there is sequence of function calls, where half of it highlighted like variables (in orange), but should be blue.
2) in the VA Outline on the right you see that code was messed.
3) many functions is not found by Find symbol, same with variables.
I tryed turning off multithreading, rebuilted the databse, nothing happens.
My configuration is VS Community 2017 with VA version 10.9.2270.0 built 2018.04.30

I can open access to my code if this needed.

Edited by - kilitary on Jul 14 2018 6:36:58 PM

feline
Whole Tomato Software

United Kingdom
19021 Posts

Posted - Jul 16 2018 :  10:56:58 AM  Show Profile  Reply with Quote
It looks like there is something in the file that is confusing our parser. I am guessing a literal or raw string that contains curly brackets and possibly new lines. Everything after this string is going to be a bit confused, since our parser has lost its sense of what is going on.

Is there anything like this in the "start()" function? Or in the following function? If so, can you please try commenting out this string and see if it fixes some of the problems? If it does, could you post the problem string here, so I can try to reproduce the problem here?

Are the missing functions all in this file, or are they in different files as well? If you have one string that is confusing us you might have several such strings.

Fixing this may help with the function calls being the wrong colour, but we won't know until we try.

zen is the art of being at one with the two'ness
Go to Top of Page

kilitary
New Member

Russia
4 Posts

Posted - Jul 16 2018 :  12:24:21 PM  Show Profile  Reply with Quote
thank you for reply, i've found this string. looks like using (?:) in curly brackets in string doing that mess.

log($"=> Buy {buyProbability.ToString("0.0000").PadLeft(7)} Sell {sellProbability.ToString("0.0000").PadLeft(7)}" +
				$" Diff {diffProbability.ToString("0.0000").PadLeft(7)} " +
				$"{(stableTrendBar > 0 ? $"Stable {stableTrendBar}" : $"Unstable  {unstableTrendBar}")}", "debug");


But i found another code that is not messing:

ObjectSetText(labelID, "[" + (isTrendStable ? "STABLE" : "UNSTABLE") +
				$" {(isTrendStable ? stableTrendBar : unstableTrendBar)}" +
				$" : {diffProbability.ToString("0.00")}]", 17, "liberation mono",
				isTrendStable ? Color.DarkSeaGreen : Color.Red);

Edited by - kilitary on Jul 16 2018 1:17:42 PM
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
19021 Posts

Posted - Jul 16 2018 :  3:15:40 PM  Show Profile  Reply with Quote
Thank you for these sample strings, I am seeing the same problem here. VA does not yet fully understand / support interpolated strings, which is what you are using here. I have put these examples onto the case, so we can test them as we work on this:

case=98335

Is placing the problem string into a separate class an option? Based on my tests here the follow on problems from a string we don't understand tend to be limited to just the current class. So this might be a way of limiting the effects.

zen is the art of being at one with the two'ness

Edited by - feline on Jul 17 2018 05:05:33 AM
Go to Top of Page

kilitary
New Member

Russia
4 Posts

Posted - Jul 16 2018 :  3:39:38 PM  Show Profile  Reply with Quote
i temp fixed it here in the class by using bool variable outside interpolated string.
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
19021 Posts

Posted - Jul 17 2018 :  05:19:15 AM  Show Profile  Reply with Quote
Thank you for the update, we are looking to improve interpolated string handling fairly soon, but it is good that you have a work around for now.

How many of the problems are you still seeing? I hope this has fixed most, if not all of the problems, but if there are any problems still showing up it would be good to look at them.

zen is the art of being at one with the two'ness
Go to Top of Page

kilitary
New Member

Russia
4 Posts

Posted - Jul 17 2018 :  05:43:53 AM  Show Profile  Reply with Quote
thank you for your good support. at now i do not have any problems with VA
Go to Top of Page

sean
Whole Tomato Software

USA
2817 Posts

Posted - Sep 24 2018 :  2:25:08 PM  Show Profile  Reply with Quote
case=98335 is fixed in build 2291.
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
© 2023 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000