sasjs / vscode-extension

SAS Linting, Syntax Highlighting, and Code Execution from VS Code

Home Page:https://marketplace.visualstudio.com/items?itemName=SASjs.sasjs-for-vscode

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

`syncDirectories` fails due to log truncation

allanbowe opened this issue ยท comments

The syncDirectories feature hijacks the SAS log for returning JSON - which will remain the case until we address #336

Currently this is an issue on Viya as the lines are force-wrapped despite the options ps=max ls=max; option

So to address, we should simply removed the \n characters to bring the JSON back together.

Eg from:

>>weboutBEGIN<<
{"PROCESSED_DTTM" : "2022-12-21T15:39:32.631368"
, "hashes":
[{"DIRECTORY":"/export/pvs/sasdata/homes/viyademo08f/stephan/extract" ,"FILE_HASH":"F041B4AF15A7F844D20F45BA4F5EE1B4" ,"HASH_DURATION":0.0069699287 ,"FILE_PATH":"/export/pvs/sasdata/homes/viyademo08f/stephan/extract/makedata2.sas" ,"FILE_OR_FOLDER":"file" 
,"LEVEL":1 }
,{"DIRECTORY":"/export/pvs/sasdata/homes/viyademo08f/stephan/load" ,"FILE_HASH":"616C9FA7A70C53AF4D335BE546B62441" ,"HASH_DURATION":0.007089138 ,"FILE_PATH":"/export/pvs/sasdata/homes/viyademo08f/stephan/load/runjob1.test.sas" ,"FILE_OR_FOLDER":"file" ,"LE
VEL":1 }
]
}
>>weboutEND<<

To:

{"PROCESSED_DTTM" : "2022-12-21T15:39:32.631368", "hashes":[{"DIRECTORY":"/export/pvs/sasdata/homes/viyademo08f/stephan/extract","FILE_HASH":"F041B4AF15A7F844D20F45BA4F5EE1B4","HASH_DURATION":0.0069699287,"FILE_PATH":"/export/pvs/sasdata/homes/viyademo08f/stephan/extract/makedata2.sas","FILE_OR_FOLDER":"file","LEVEL":1 },{"DIRECTORY":"/export/pvs/sasdata/homes/viyademo08f/stephan/load","FILE_HASH":"616C9FA7A70C53AF4D335BE546B62441","HASH_DURATION":0.007089138,"FILE_PATH":"/export/pvs/sasdata/homes/viyademo08f/stephan/load/runjob1.test.sas","FILE_OR_FOLDER":"file" ,"LEVEL":1 }]}

๐ŸŽ‰ This issue has been resolved in version 1.26.5 ๐ŸŽ‰

The release is available on:

Your semantic-release bot ๐Ÿ“ฆ๐Ÿš€