In Build 136 Dev 5, If we Load a Custom Project made by Build 135 with other snippets,
Build 136 Dev 5 will look for the snippets of Build 135 at each start , even if we do not use it anymore in Build 135
Build 136 Do not update the custom Project with the snippets of build 136, and keep the reference of the snippets of Build 135 inside the custom project
Each time we can see this error from a missing old snippets from Build 135 in the log even if the custom project has been saved in Build 136
(Please see the attached video)
Attachment image-0.png added
Attachment Custom Project test from Build 135.cfx added
Here is a small Custom Project made by Build 135, which include the snippets don't trade on the week end clone
Build 136 do not have this snippet and do not need this snippets and log an error each time it is starting with a Custom Project from Build 135
And I still have this error with the previous snippets of B135
13:14:57.314 [Thread-56035] ERROR c.s.lib.snippets.CustomClasses - Exc.
java.lang.NoSuchFieldException: DontTradeOnWeekends
at java.base/java.lang.Class.getField(Class.java:2092) ~[na:na]
at com.strategyquant.tradinglib.propertygrid.ParametersTableItemProperties.setParameterValue(Unknown Source) ~[SQTradingLib.jar:na]
at com.strategyquant.tradinglib.propertygrid.ParametersTableItem.setFromParameterEl(Unknown Source) ~[SQTradingLib.jar:na]
at com.strategyquant.tradinglib.options.TradingOptionsList.parseOptionsFromXml(Unknown Source) ~[SQTradingLib.jar:na]
at com.strategyquant.plugin.Settings.impl.Options.SettingsOptionsPlugin.readSettings(Unknown Source) ~[na:na]
at com.strategyquant.tradinglib.taskImpl.AbstractTask.setConfig(Unknown Source) ~[SQTradingLib.jar:na]
at com.strategyquant.tradinglib.project.SQProject.initTasksFromConfig(Unknown Source) ~[SQTradingLib.jar:na]
at com.strategyquant.tradinglib.project.SQProject$1.run(Unknown Source) ~[SQTradingLib.jar:na]
Subject changed from Build 136 Dev 3 : Do not update the custom Project with the snippets of build 136, to Build 136 Dev 5 : Do not update the custom Project with the snippets of build 136,
Description changed:
In Build 136 Dev 5, If we Load a Custom Project made by Build 135 with other snippets,
Build 136 Dev 5 will look for the snippets of Build 135 at each start , even if we do not use it anymore in Build 135
Build 136 Do not update the custom Project with the snippets of build 136, and keep the reference of the snippets of Build 135 inside the custom project
Each time we can see this error from a missing old snippets from Build 135 in the log even if the custom project has been saved in Build 136
(Please see the attached video)
Why SQX is searching snippets from B135 ? This is snippets was never in B136
I have updated the logic that will skip loading the Trading option if the snippets don't exist.
Thank you.
if we save the template, , it looks like it is adding the "donttradeonweekend snippets" reference, even if the snippet do not exist in Build 136
Do you mean DontTradeOnWeekendsClone? This is because DontTradeOnWeekends should be the classes that come with SQX.
This is what I did
Let me know if this is clear to me, if not I can record a video and show it to you.
Thank you :)