[Build 126] Source code generator regression

Hello,

I am reporting following regression bug in the source code generator.

In previous SQX builds was presented a detailed error message which custom blocks could not be rendered (example missing) and associated error details.

Now it is replaced with a generic message and error details like template name, relative directory, etc are not reported.

May we get rendering failure details back ?

Thank you.

--------- Example: ---------

This strategy contains block 'XXXX' that is not implemented in Pseudo Code(*.TXT).

Every trading engine has different features and possibilities, and there are certain blocks that are specific to a given trading engine, and don't work on another.
If you want to use this strategy as Pseudo Code(*.TXT) you have to alter this strategy so it doesn't use this block.

If this is a custom block created by you make sure you also added its template to /extend/Code for trading platform(s) you want to support.

Attachments
No attachments
  • Votes +1
  • Project StrategyQuant X
  • Type Bug
  • Status Fixed
  • Priority Normal

History

DB
#1

Enyx

13.02.2020 13:30

Task created

b
#2

bentra

14.02.2020 04:01
Voted for this task.
MF
#3

Mark Fric

16.04.2020 09:04

Status changed from New to Waiting for information

it still works the same, I just tried it when I removed one default block. 


Maybe there is some special case where it doesn't work, could you attach the strategy and a screeshot of what it is showing to you?

DB
#4

Enyx

18.04.2020 14:23

Hello Mark,


Block or strategy is irrelevant. Example below from SQX 122. You can clearly identify which block is missing (and very useful if you do custom indicators).


I can presume error details in new versions are simplified due to new cloud based product portfolio. But for local installations it's still much better to have a more detailed information presented to end user/developer. Thank you for consideration.


An error occured while generating the strategy XML source code.
Exc. Template inclusion failed (for parameter value "./blocks/AOFailing.tpl"):
Template not found for name "MetaTrader4/./blocks/AOFailing.tpl" (normalized: "MetaTrader4/blocks/AOFailing.tpl").
The name was interpreted by this TemplateLoader: FileTemplateLoader(baseDir="XXXXXXXXXXxx\extend\Code").

----
FTL stack trace ("~" means nesting-related):
    - Failed at: #include "./blocks/" + block.@key + "... [in template "MetaTrader4/mt4Blocks.inc" in macro "printBlock" at line 231, column 19]
    - Reached through: @printBlock block?children[0], shift [in template "MetaTrader4/mt4Blocks.inc" in macro "printBlock" at line 218, column 9]
    - Reached through: @printBlock block [in template "MetaTrader4/blocks/AND.tpl" at line 5, column 37]
    - Reached through: #include "./blocks/" + block.@key + "... [in template "MetaTrader4/mt4Blocks.inc" in macro "printBlock" at line 231, column 19]
    - Reached through: @printBlock block?children[0], shift [in template "MetaTrader4/mt4Blocks.inc" in macro "printBlock" at line 218, column 9]
    - Reached through: @printBlock block [in template "MetaTrader4/blocks/AND.tpl" at line 5, column 37]
    - Reached through: #include "./blocks/" + block.@key + "... [in template "MetaTrader4/mt4Blocks.inc" in macro "printBlock" at line 231, column 19]
    - Reached through: @printBlock block?children[0], shift [in template "MetaTrader4/mt4Blocks.inc" in macro "printBlock" at line 218, column 9]
    - Reached through: @printBlock block [in template "MetaTrader4/blocks/AND.tpl" at line 5, column 37]
    ... (Had 27 more, hidden for tersenes) (Hidden 4 "~" lines for terseness)

BR Enyx


MF
#5

Mark Fric

20.04.2020 08:48

Status changed from Waiting for information to Fixed

ok, I added the exception there as well.
DB
#6

Enyx

20.04.2020 12:25
Thank you for fixing this and other reported bug.

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