Extension of TemplateContextType throws UnsatisfiableDependenciesException


I'm trying to make my own Live Template Context for my custom language plugin.
The code for this so far is just

public class SilverStripeTemplateContext extends TemplateContextType {
     protected SilverStripeTemplateContext(@NotNull @NonNls String id, @NotNull String presentableName) {
          super("SilverStripe", "SilverStripe Template");

     public boolean isInContext(@NotNull PsiFile file, int offset) {
          return (file instanceof SilverStripeFile);

However when I attach this on <liveTemplateContext.../> in plugin.xml and then test in the debugger it throws UnsatisfiableDependenciesException when trying to access the Live Templates pane.
The first class listed as an unsatisifiable dependency is java.lang.String which seems really strange. I'm testing on PHPStorm 6.0.2 since that's the main target for my plugin.

1 comment
Comment actions Permalink

Delete the parameters of your constructor. You aren't using them and there's no one who could pass any meaningful values to them.


Please sign in to leave a comment.