I am not writing a plugin. I am writing a separate external tool. I would like to somehow use the PsiViewer (while creating as little “IntelliJ IDEA Scaffolding” as possible).
You are aware of the fact, that someone posted a link to a github doing exactly that in that topic?
Or am I to understand that you don’t want to have to import the import com.intellij.* namespaces or depend on the kotlin compiler? Well they are the place where the kotlin psi is defined so you will have to use them.
My question is: Is there a way to invoke something like PsViewer without firing up the entireity of IntelliJ IDEA. Can I just run the single PsiViewer window ?
(I may be wrong here). I think you think the question I am asking is concerning which libraries I need to import to parse kotlin. The question I am asking is: which libs I need to import / run in order to run-psiviewer.
Sorry, my bad. I am not aware of any way of running intellij plugins outside of intellij. That being said the source for this plugin is at github: GitHub - JetBrains/psiviewer: PSI Viewer for IntelliJ IDEA plugin development
It does not contain a license, so I’s ask the developer before copying and using parts of it.
I don’t think it is possible, but using the sources, you might be able to adapt it to use a different window system, but this will probably be a lot of work. Not sure though.