Hello, I am trying to display, print the AST but I...
# ktlint
m
Hello, I am trying to display, print the AST but I cannot seem to produce any output. I'm using ktlint version 1.0.0 and this command
Copy code
mark@marks-MBP ktlint % ktlint --version                                                                                 
1.0.0
mark@marks-MBP ktlint % echo "fun main() {}" | ktlint  printAST --stdin                                                  
mark@marks-MBP ktlint %
Please, what am I missing?
p
printAST
was removed in
0.49.0
. See https://pinterest.github.io/ktlint/1.0.0/api/custom-rule-set/#abstract-syntax-tree-ast for a better alternative.
m
Thank you. I had searched but couldn't find anything relevant, except for old & closed issues #500 and #529. I will try the PsiViewer plugin.