ProjectComponent has unsatisfiable dependencies: [[interface com.intellij.openapi.project.Project]]

Does anybody have an idea what I did wrong, or is this an Idea bug:
In 3403 I started a new plugin with an empty ProjectComponent (all methods implemented empty, plus constructor with Project parameter).
If I try to start using a plugin run configuration, all I get is:

org.picocontainer.defaults.UnsatisfiableDependenciesException: com.xduke.syncedit.SyncEditProjectComponent has unsatisfiable dependencies: [[interface com.intellij.openapi.project.Project]]

0
Avatar
Permanently deleted user

Make sure that you don't have openapi.jar in the classpath of your
plugin. Otherwise the Project class get's loaded from there and
interferes with the 'original' Project class from IDEA.

Stephen Kelvin wrote:

Does anybody have an idea what I did wrong, or is this an Idea bug:
In 3403 I started a new plugin with an empty ProjectComponent (all
methods implemented empty, plus constructor with Project parameter).
If I try to start using a plugin run configuration, all I get is:

org.picocontainer.defaults.UnsatisfiableDependenciesException:
com.xduke.syncedit.SyncEditProjectComponent has unsatisfiable
dependencies: [[interface com.intellij.openapi.project.Project]]


--
Martin Fuhrer
Fuhrer Engineering AG
http://www.fuhrer.com

0
Avatar
Permanently deleted user

Thanks a lot. Turned out I also had to clean the sandbox directory.

Martin Fuhrer wrote:

Make sure that you don't have openapi.jar in the classpath of your
plugin. Otherwise the Project class get's loaded from there and
interferes with the 'original' Project class from IDEA.

0

how can you remove openapi.jar from the classpath ?
the plugin won't compile anymore

0
Avatar
Permanently deleted user

Hello Koen,

KW> how can you remove openapi.jar from the classpath ? the plugin won't
KW> compile anymore

The openapi.jar needs to be in the classpath of the IDEA SDK used by the
plugin project, not added as a separate library.

--
Dmitry Jemerov
Software Developer
JetBrains, Inc.
http://www.jetbrains.com
"Develop with pleasure!"


0
Avatar
Permanently deleted user

It needs to be part of your IDEA JDK definition, not library.

Koen Weyn wrote:

how can you remove openapi.jar from the classpath ?
the plugin won't compile anymore

0

its not added as a separate library and I'm still seeing this problem.
Any other suggestions ?

0

请先登录再写评论。