sasjs / vscode-extension

SAS Linting, Syntax Highlighting, and Code Execution from VS Code
https://marketplace.visualstudio.com/items?itemName=SASjs.sasjs-for-vscode
MIT License
23 stars 4 forks source link

`syncDirectories` fails due to log truncation #384

Closed allanbowe closed 1 year ago

allanbowe commented 1 year ago

The syncDirectories feature hijacks the SAS log for returning JSON - which will remain the case until we address https://github.com/sasjs/vscode-extension/issues/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 }]}
sasjsbot commented 1 year ago

:tada: This issue has been resolved in version 1.26.5 :tada:

The release is available on:

Your semantic-release bot :package::rocket: