UnsatisfiableDependenciesException when loading ProjectComponent in Irida
Hi, I've never written a ProjectComponent before. I'm using Irida. I define my ProjectComponent implementation-class correctly in my <project-components> element, and my class has the constructor:
This seems to be correct, but when I load my plugin in an Irida plugin sandbox, I get this exception:
Does anyone know why this would happen, or how to fix it?
Thanks,
-Keith
Please sign in to leave a comment.
This is described in the javadoc. In short you'll have to create a copy of the PsiFile that is not backed by physical file,
transform the copy, get textual representation of it (via getText()) and save this data to the target VirtualFile that you were
supposed to change.
I'm afraid this would not be possible since for PsiFiles you need context in which references will be resolved; otherwise using
PsiFile won't help too much. This context is provided by the project: libraries, other sources, dependencies between them.
--
Best regards,
Eugene Zhuravlev
Software Developer
JetBrains Inc.
http://www.jetbrains.com
"Develop with pleasure!"
I disagree, I think PSI can be very useful without references, if only for the ability to parse a java file into an AST without JTB, and then being able to modify it. I will file this request.
Thanks very much Eugene, this appears to be working great in build 3117.