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

0
33 comments
Avatar
Permanently deleted user

This would help, but how would I use it to modify the temporary file through the PSI? I need to be able to modify the PSI tree
during the transformation (it would be too >tedious to make the changes myself).


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.

Also, getting a PSI tree for an arbitrary file sounds like a reasonable request for OpenAPI, should I file an SCR?


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!"


0
Avatar
Permanently deleted user

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.

0
Avatar
Permanently deleted user

Thanks very much Eugene, this appears to be working great in build 3117.

0

Please sign in to leave a comment.