intersystems / isc-codetidy

MIT License
2 stars 5 forks source link

SQL plan insert not working #38

Closed isc-lindensc closed 1 year ago

isc-lindensc commented 1 year ago

Hi,

i have setup this on a customer development environment running on IRIS2022.1.

CodeTidy seems to be working (as in reformatting indents, throwing warnings etc) except for the inclusion of the SQLPlan on compile/save.

The customer environment is not under source control, but the install has added the codytide.composite as sourcecontrol class.

Any ideas?

config settings: ^Config("CodeTidy","brace")=1 ^Config("CodeTidy","codetidy")=0 ^Config("CodeTidy","coscomment")="//" ^Config("CodeTidy","coswhitespace")=1 ^Config("CodeTidy","eslintenabled")=0 ^Config("CodeTidy","formatonsave")=1 ^Config("CodeTidy","indent")=1 ^Config("CodeTidy","indentString")=$c(9) ^Config("CodeTidy","resequence")=0 ^Config("CodeTidy","sqlcase")="U" ^Config("CodeTidy","sqlplan")=2 ^Config("CodeTidy","tweak")="" ^Config("CodeTidy","usemacrocomments")=0

isc-lindensc commented 1 year ago

Found the issue ^Config("CodeTidy","codetidy")=0 has to be set to 1 for this to work.