I need help by probably someone from JetBrains. I'...
# compiler
k
I need help by probably someone from JetBrains. I'm still writing a compiler plugin and I'm done with the command line part for now and currently working on ide support. My problem is, my code fails to resolve any classes using
ModuleDescriptor::findClassAcrossModuleDependencies(ClassId)
when running in IDEA. It works fine in the command line though. I really don't have any basis to perform debugging on when it comes to IDEA. All I could figure out so far is, that it uses the
JvmAnalyzerFacade
when running in IDEA, which resolves classes differently than the command line facade. Does anyone know what component or so I am missing in order to resolve dependencies correctly?
r
@kralli If you code is public I’d love to see how you are building the IDE support piece as I have to do exactly the same now.
k
They will be available eventually, but as this is part of my bachelor thesis I may not publish anything until I finished it. But I’m certain that I can help you out with getting it to run.
r
thanks, I’ll also keep you posted in any progress in that direction 🙂
k
@dsavvinov Any thoughts on this? The weird part about it is, that I can find
kotlin.*
and
java.lang.*
descriptors, but no third party/library descriptors or any of the current compilation. The
TypeResolver
somehow manages to find these descriptors seemingly.