sasjs / cli

Command line interface for creating, compiling, and building SAS® projects
https://cli.sasjs.io
MIT License
37 stars 5 forks source link

Build issue caused by specific code #1227

Closed mblauw-sas closed 2 years ago

mblauw-sas commented 2 years ago

The following two lines of code were present in my job:

/*Name_corrected2=translate(trim(Name_corrected),'_','`~!@#$%^&*()+-=[]\{}|;:",./<>?°²³µ ');
/* Name_corrected2=translate(trim(Name_corrected),'_','/','(',')','?','²','#','°C','µ','³'); */

Compilation of that job worked correctly. While building, however, these two lines caused about 50 lines to be excluded from the built code.

allanbowe commented 2 years ago

I was able to reproduce with these steps:

sasjs create mathieu -t jobs
cd mathieu
code .

I then pasted the two lines above into jobs/load/runjob1.sas. After running sasjs c I can see that everything is fine:

image

But after running sasjs b the rest of the file is truncated:

image
ghost commented 2 years ago

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

The release is available on:

Your semantic-release bot :package::rocket: