WLP 6.9.20.7: New Editor is too verbose
Author: kazuna
Creation Date: 7/12/2019 8:14 AM
profile picture

kazuna

#1
Just copy-paste this code in new strategy code.

CODE:
Please log in to see this code.


This simple code ends up having three words with red underline saying:

MyStrategy: The namespace 'WealthLab.Strategies' already contains a definition for 'MyStrategy'
VALUE_TO_PERCENT: Ambiguity between 'MyStrategy.VALUE_TO_PERCENT' and 'MyStrategy.VALUE_TO_PERCENT'
Execute: Type 'Strategy' already defines a member called 'Execute' with the same parameter types

It becomes way too noisy if there are hundreds lines of code.

Is there any way to stop it?
profile picture

Eugene

#2
Does the Strategy code compile successfully?
profile picture

kazuna

#3
Yes, it does and the strategy runs just fine.
It looks like a warning or some sort of but
profile picture

Eugene

#4
Thanks, good to know that it's not urgent.
profile picture

kazuna

#5
It's not urgent but really ugly for seeing hundreds of them in the code.
profile picture

Eugene

#6
Apparently the developer has an idea how to overcome red squiggles in next build of WLP.

As a workaround, rename MyStrategy to have a unique title like MyStrategy1, MyStrategy2 etc.
profile picture

kazuna

#7
The workaround works only once and only within the first instance of the strategy.
If you open the strategy code more than once or you have more than one strategy window open the same code, the workaround works in the first instance only.
Apparently the name is shared amoung WLP process.
This website uses cookies to improve your experience. We'll assume you're ok with that, but you can opt-out if you wish (Read more).