I'm using Visual Studio 2013. When I open it by pressing its icon in NinjaScript Editor, it shows me some warnings (look at the picture). How to get rid of them? I tried to exclude NinjaTrader.Vendor.dll from the project and most warnings disappeared, but after restarting NinjaTrader everything returned back.
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Debugging in Visual Studio
Collapse
X
-
Debugging in Visual Studio
Hello!
I'm using Visual Studio 2013. When I open it by pressing its icon in NinjaScript Editor, it shows me some warnings (look at the picture). How to get rid of them? I tried to exclude NinjaTrader.Vendor.dll from the project and most warnings disappeared, but after restarting NinjaTrader everything returned back.Tags: None
-
Hello,
Thank you for the question.
I am unsure specifically on the @Swing warning as I do not see that on my end, but this is still only a warning so there should be no problem with VS, its intellesense or saving. This message is just stating which version of the indicator would be used in VS's internal processes.
NinjaTrader its self will be doing the compiling, so long as NinjaTrader reports no actual Errors, there should be no problem with the warnings shown.
I do see the processor mis match warning so that would be expected as well, again these are only warnings though, so as long as NinjaTrader its self is reporting no errors there should be no problem, If you instead see Errors listed, those would need to be addressed.
Additionally, NinjaTrader re builds or re adds needed files and references to the project when you click the button in the editor, this is why the file had returned and would be expected.
I look forward to being of further assistance.JesseNinjaTrader Customer Service
-
Hello Jesse,
Your reply is not very good, because instead of resolving the problem you say that it's not so important.
In fact, these warnings substantially impede developing and debugging in VS. Is it possible to not include NinjaTrader.Vendor.dll to the project references when rebuilding the project in NT8? Can you talk it over with NT8 developers team?
Comment
-
Originally posted by quicktrick View PostHello Jesse,
Your reply is not very good, because instead of resolving the problem you say that it's not so important.
In fact, these warnings substantially impede developing and debugging in VS. Is it possible to not include NinjaTrader.Vendor.dll to the project references when rebuilding the project in NT8? Can you talk it over with NT8 developers team?MatthewNinjaTrader Product Management
Comment
-
Hello Matthew,
Unfortunately I can't ignore those warnings because there are no error codes for them.
Comment
-
Not sure which ones you're saying you can't ignore, or maybe you have your "Code" column turned off, but most of the errors in the project come from CS0436
There is one error without a code:
Severity Code Description Project File Line
Warning There was a mismatch between the processor architecture of the project being built "MSIL" and the processor architecture of the reference "PresentationCore", "x86". This mismatch may cause runtime failures. Please consider changing the targeted processor architecture of your project through the Configuration Manager so as to align the processor architectures between your project and references, or take a dependency on references with a processor architecture that matches the targeted processor architecture of your project. NinjaTrader.Custom
MatthewNinjaTrader Product Management
Comment
-
Matthew, I use Visual Studio 2013 and it doesn't have the "Code" column in Error List (see here). I tried to ignore CS0436, but it didn't help.
And why at all does this problem exist?
The type 'NinjaTrader.NinjaScript.Indicators.Indicator' in 'C:\Users\...\Documents\NinjaTrader 8\bin\Custom\Indicators\@ADL.cs' conflicts with the imported type 'NinjaTrader.NinjaScript.Indicators.Indicator' in 'C:\Users\...\Documents\NinjaTrader 8\bin\Custom\NinjaTrader.Vendor.dll'. Using the type defined in 'C:\Users\...\Documents\NinjaTrader 8\bin\Custom\Indicators\@ADL.cs'.
Comment
-
I too am seeing the warnings and it is very frustrating. Currently, I have about 700 instances of this warning! I haven't even converted all my indicators over yet so I can just imagine where it's going to go! Saying to ignore them is NOT an acceptable solution. This would mean if I accidentally introduced a warning such as this, it would be ignored also! Warnings may not stop you from compiling but they show up in the error list for a reason. They are an indication that something is suspicious and your code may not have the intended effect. Having 700 warnings obscure other warnings that I am very interested in. It is bad practice to leave warnings in code, IMHO and is the opinion of many others.
Comment
-
Thanks for your feedback.
Just to set expectations, in order to avoid these warnings, we'd have to completely redo the way NinjaScript wrappers are implemented and that could have a magnitude of changes/implications downstream. It's not something we wish to invest effort in at this point.
There is a "Show warnings" option in the NT8 NinjaScript editor which will show relevant warnings to your code which can help mitigate some of your understandable frustration.
It is a complete pick your poison scenario and we really have no choice but to live with these warnings. I hope you can understand our position.MatthewNinjaTrader Product Management
Comment
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by Brevo, Today, 01:45 AM
|
0 responses
6 views
0 likes
|
Last Post
by Brevo
Today, 01:45 AM
|
||
Started by aussugardefender, Today, 01:07 AM
|
0 responses
3 views
0 likes
|
Last Post Today, 01:07 AM | ||
Started by pvincent, 06-23-2022, 12:53 PM
|
14 responses
242 views
0 likes
|
Last Post
by Nyman
Today, 12:47 AM
|
||
Started by TraderG23, 12-08-2023, 07:56 AM
|
9 responses
384 views
1 like
|
Last Post
by Gavini
Today, 12:29 AM
|
||
Started by oviejo, Today, 12:28 AM
|
0 responses
6 views
0 likes
|
Last Post
by oviejo
Today, 12:28 AM
|
Comment