Hi all,
Just a quality of life suggestion for compiler error messages. Often it is hard to pinpoint the exact source of an error in code when debugging. I was wondering how easy it would be to implement line numbers into error messages for easy debugging. For example:
/* rather than:
System.ArgumentException: symbol must not contain the characters '|' or ' '.
Parameter name: symbol
<OMITTED BACKTRACE>
at QuantConnect.Algorithm.QCAlgorithm.AddOption (System.String underlying, System.Nullable`1[T] resolution, System.String market, System.Boolean fillDataForward, System.Decimal leverage) [0x0007b] in :0
it would state:
System.ArgumentException: symbol must not contain the characters '|' or ' '.
Parameter name: symbol
<OMITTED BACKTRACE>
on line 562: at QuantConnect.Algorithm.QCAlgorithm.AddOption (System.String underlying, System.Nullable`1[T] resolution, System.String market, System.Boolean fillDataForward, System.Decimal leverage) [0x0007b] in :0
*/
Hopefully that is an easy change if viable.
-Conor
Jared Broad
Thanks for the suggestion. We show the line numbers as much as possible but sometimes we don't have the information.
In this case, the error is happening in the backend of LEAN not near the algorithm level so no line numbers are shown. We will think about this however maybe there is a way to know more.Â
The material on this website is provided for informational purposes only and does not constitute an offer to sell, a solicitation to buy, or a recommendation or endorsement for any security or strategy, nor does it constitute an offer to provide investment advisory services by QuantConnect. In addition, the material offers no opinion with respect to the suitability of any security or specific investment. QuantConnect makes no guarantees as to the accuracy or completeness of the views expressed in the website. The views are subject to change, and may have become unreliable for various reasons, including changes in market conditions or economic circumstances. All investments involve risk, including loss of principal. You should consult with an investment professional before making any investment decisions.
Conor Flynn
The material on this website is provided for informational purposes only and does not constitute an offer to sell, a solicitation to buy, or a recommendation or endorsement for any security or strategy, nor does it constitute an offer to provide investment advisory services by QuantConnect. In addition, the material offers no opinion with respect to the suitability of any security or specific investment. QuantConnect makes no guarantees as to the accuracy or completeness of the views expressed in the website. The views are subject to change, and may have become unreliable for various reasons, including changes in market conditions or economic circumstances. All investments involve risk, including loss of principal. You should consult with an investment professional before making any investment decisions.
To unlock posting to the community forums please complete at least 30% of Boot Camp.
You can continue your Boot Camp training progress from the terminal. We hope to see you in the community soon!