Plugin stopped working (debug and production)

I created a plugin that was working fine and doing what I wanted buy suddenly if I debug it or even if I deploy it and then try it it does nothing at all.. I click on it several times but it does nothing at all, no even show an error. Any idea on how to fix this?

0
5 comments

Hello Guilherme,

The plugin may not build. Did you check file creation time of the plugin file? 

Did you try to open the plugin in debug mode? You should be able to hit a breakpoint.

0
Avatar
Permanently deleted user

It builds and it runs but it does nothing...

0

it is necessary to debug plugin code, I am afraid.

0
Avatar
Permanently deleted user

I thing upgrading IntelliJ IDEA to the newest version messed up the plugin, it doesn't find Java classes anymore  with

AllClassesGetter.processJavaClasses(
new PlainPrefixMatcher(""),
project,
GlobalSearchScope.projectScope(project),
processor
);

so it does nothing at all.  (processor is never called!!)

0

if

AllClassesGetter

gives problem, check these threads for alternative way to enumerate project files:

https://intellij-support.jetbrains.com/hc/en-us/community/posts/207378145-Obtaining-java-files-in-source-root 

https://intellij-support.jetbrains.com/hc/en-us/community/posts/206101899-Getting-all-java-files-within-a-project  

 

not sure how 

PlainPrefixMatcher

works. You could try to subclass it and override

 public boolean prefixMatches(@NotNull String name) {
0

Please sign in to leave a comment.