Build 136 Dev 5 : Do not update the custom Project with the snippets of build 136,



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)


Attachments
Build 136 do not update Custom Project.mp4
(7.88 MiB)
log_2022_08_16.log
(1.27 MiB)
  • Votes +1
  • Project StrategyQuant X
  • Type Bug
  • Status Fixed
  • Priority Normal

History

E
#1

Emmanuel

16.08.2022 08:55

Task created

E
#2

Emmanuel

16.08.2022 08:55
Voted for this task.
TT
#3

Tamas

16.08.2022 14:28
Hello, ok I understand. Can you please attach the project xml file ? 
E
#4

Emmanuel

16.08.2022 17:27

Attachment image-0.png added

Attachment Custom Project test from Build 135.cfx added

image-0.png
(55.83 KiB)
Custom Project test from Build 135.cfx
(47.13 KiB)
Hello


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



g
#5

Lee Guan Chuan

29.08.2022 11:04

Status changed from New to Fixed

E
#6

Emmanuel

07.10.2022 13:17
I am using B136 dev 5

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]




E
#7

Emmanuel

07.10.2022 13:17

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)


E
#8

Emmanuel

07.10.2022 13:36
to go around this problem, I cloned a donttradeonweekend snippets in B136 dev5


Why SQX is searching snippets from B135 ? This is snippets was never in B136

g
#9

Lee Guan Chuan

10.10.2022 08:02
Hi Emmanuel,


I have updated the logic that will skip loading the Trading option if the snippets don't exist.


Thank you.



E
#10

Emmanuel

24.10.2022 17:47
it looks like the information are stored as well in the template, like in the custom project


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



g
#11

Lee Guan Chuan

25.10.2022 05:49
Hi Emmanuel,


Do you mean DontTradeOnWeekendsClone? This is because DontTradeOnWeekends should be the classes that come with SQX.


This is what I did

  1. Import the project into the SQX Build 136. If I open the project file and check, yes the DontTradeOnWeekendsClone is still in the file. This is because the project has been loaded into SQX without any savings. (saving from Build 136, it is exactly what it is from Build 135)
  2. I start the project, or I add a new task, or I make any changes. If we open the project file and check again, the DontTradeOnWeekends is not there anymore. This is because when we perform the saving and detect the snippet doesn't exist anymore. 


Let me know if this is clear to me, if not I can record a video and show it to you.


Thank you :)


Votes: +1

Drop files to upload

or

choose files

Max size: 5MB

Not allowed: exe, msi, application, reg, php, js, htaccess, htpasswd, gitignore

...
Wait please